media: v4l2-subdev: Add subdev .(enable|disable)_streams() operations
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 13 Dec 2021 14:11:56 +0000 (15:11 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 22 Jan 2023 08:50:06 +0000 (09:50 +0100)
commitd0749adb30706f4e3af452698db96f671444341a
tree6cc9a1b6883651c7b69b94d68e6f485b57a92f97
parentc4a73f316d04594689dffcae8d800787e4fc9f75
media: v4l2-subdev: Add subdev .(enable|disable)_streams() operations

Add two new subdev pad operations, .enable_streams() and
.disable_streams(), to allow control of individual streams per pad. This
is a superset of what the video .s_stream() operation implements.

To help with handling of backward compatibility, add two wrapper
functions around those operations, and require their usage in drivers.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
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