OSDN Git Service

media: subdev: use streams in v4l2_subdev_link_validate()
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Thu, 15 Jul 2021 13:40:37 +0000 (15:40 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 22 Jan 2023 08:39:04 +0000 (09:39 +0100)
commita6b995ed03ffeb36f06c4a46d8804c24d776de6f
tree7295bb98404a349dc4d3b71fdca90b352b503389
parent2f91e10ee6fd4c0c4abba4d36c013a93560cf514
media: subdev: use streams in v4l2_subdev_link_validate()

Update v4l2_subdev_link_validate() to use routing and streams for
validation.

Instead of just looking at the format on the pad on both ends of the
link, the routing tables are used to collect all the streams going from
the source to the sink over the link, and the streams' formats on both
ends of the link are verified.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-subdev.c