media: subdev: add v4l2_subdev_set_routing_with_fmt() helper
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 25 Aug 2021 10:24:09 +0000 (12:24 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 22 Jan 2023 08:41:49 +0000 (09:41 +0100)
commit5b0d85b379747b09d8b4630fdb5c8a8d74122f0f
tree108914d782e98baac0fb7a5cbe0af13471d65f5d
parent72c5fbcaa33d88b3e642da7c07741bf5364ce12c
media: subdev: add v4l2_subdev_set_routing_with_fmt() helper

v4l2_subdev_set_routing_with_fmt() is the same as
v4l2_subdev_set_routing(), but additionally initializes all the streams
with the given format.

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>
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h