media: subdev: Add V4L2_SUBDEV_ROUTING_NO_MULTIPLEXING
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Thu, 2 Mar 2023 09:57:48 +0000 (10:57 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 19 Mar 2023 23:39:13 +0000 (00:39 +0100)
commita1299df6718b718256fd9bf6d7f9bed44c826e61
tree71833170020fb3e94d6c93f55c8eb73d946bd8dc
parent698a619a04bee1359358d5cba552f008709b79bc
media: subdev: Add V4L2_SUBDEV_ROUTING_NO_MULTIPLEXING

A common case with subdev routing is that on the subdevice just before
the DMA engines (video nodes), no multiplexing is allowed on the source
pads, as the DMA engine can only handle a single stream.

In some other situations one might also want to do the same check on the
sink side.

Add new routing validation flags to check these:
V4L2_SUBDEV_ROUTING_NO_SINK_MULTIPLEXING and
V4L2_SUBDEV_ROUTING_NO_SOURCE_MULTIPLEXING.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h