]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: imx-mipi-csis: Use v4l2_subdev_enable_streams()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 19 Jun 2024 23:24:31 +0000 (02:24 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 27 Jun 2024 11:06:47 +0000 (13:06 +0200)
commit7b9b9306cba0d60c6e8551366fba3bbbffb929e1
treec59c267d07ce3af26aa27948ca03d3c4eaea9945
parent40f8c2bfa616ed486af5b9e9d14248e4172a5bdc
media: imx-mipi-csis: Use v4l2_subdev_enable_streams()

To support sources that implement the .enable_streams() and
.disable_streams() operations, replace the manual calls to the subdev
.s_stream() operation with the v4l2_subdev_enable_streams() and
v4l2_subdev_disable_streams() helpers. The helpers fall back to
.s_stream() if the source doesn't implement the new operations, so
backward compatibility is preserved.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/nxp/imx-mipi-csis.c