[media] v4l2-subdev: allow subdev to send an event to the v4l2_device notify function
authorjean-michel.hautbois@vodalys.com <jean-michel.hautbois@vodalys.com>
Wed, 18 Mar 2015 10:21:47 +0000 (07:21 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 20 May 2015 16:40:02 +0000 (13:40 -0300)
All drivers use custom notifications, in particular when source changes.
The bridge only has to map the subdev that sends it to whatever video node it is connected to.

Signed-off-by: Jean-Michel Hautbois <jean-michel.hautbois@vodalys.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Documentation/video4linux/v4l2-framework.txt
include/media/v4l2-subdev.h

index 59e619f9bbf54558f69a97405100d036b09d20d6..75d5c18d689aaaaa14b7e365c9650d0502c95799 100644 (file)
@@ -1129,6 +1129,10 @@ available event type is 'class base + 1'.
 An example on how the V4L2 events may be used can be found in the OMAP
 3 ISP driver (drivers/media/platform/omap3isp).
 
+A subdev can directly send an event to the v4l2_device notify function with
+V4L2_DEVICE_NOTIFY_EVENT. This allows the bridge to map the subdev that sends
+the event to the video node(s) associated with the subdev that need to be
+informed about such an event.
 
 V4L2 clocks
 -----------
index 8f5da73dacff9f8c72af150918ec4fd88a9ec253..dc20102ff600bc9834ed6d83963cfc09816a8c0e 100644 (file)
@@ -40,6 +40,8 @@
 #define V4L2_SUBDEV_IR_TX_NOTIFY               _IOW('v', 1, u32)
 #define V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ     0x00000001
 
+#define        V4L2_DEVICE_NOTIFY_EVENT                _IOW('v', 2, struct v4l2_event)
+
 struct v4l2_device;
 struct v4l2_ctrl_handler;
 struct v4l2_event_subscription;