media: subdev: add v4l2_subdev_routing_validate() helper
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 21 Dec 2021 10:23:58 +0000 (11:23 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 22 Jan 2023 08:42:43 +0000 (09:42 +0100)
commit69c0fe7ae78b9ed696b5a5d8eaae7ca622c6f7ca
tree90ea1a3f0c569bf8b0c6932ce25665bc23551ae2
parent5b0d85b379747b09d8b4630fdb5c8a8d74122f0f
media: subdev: add v4l2_subdev_routing_validate() helper

Add a v4l2_subdev_routing_validate() helper for verifying routing for
common cases like only allowing non-overlapping 1-to-1 streams.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h