Tomi Valkeinen d00f1a075c media: subdev: add "opposite" stream helper funcs
Add two helper functions to make dealing with streams easier:

v4l2_subdev_routing_find_opposite_end - given a routing table and a pad
+ stream, return the pad + stream on the opposite side of the subdev.

v4l2_subdev_state_get_opposite_stream_format - return a pointer to the
format on the pad + stream on the opposite side from the given pad +
stream.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-01-22 09:41:02 +01:00
..
2022-12-15 10:21:10 -08:00
2022-12-20 08:32:11 -06:00
2022-12-21 09:37:14 -08:00
2022-12-21 16:35:26 -08:00
2022-12-23 11:39:18 -08:00
2022-12-22 11:22:31 -08:00
2022-12-13 15:47:48 -08:00
2022-12-21 09:41:28 -08:00