Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] v4l2-subdev: allow subdev to send an event to the v4l2_device notify function

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>

authored by

jean-michel.hautbois@vodalys.com and committed by
Mauro Carvalho Chehab
17e48468 ce0eff01

+6
+4
Documentation/video4linux/v4l2-framework.txt
··· 1129 1129 An example on how the V4L2 events may be used can be found in the OMAP 1130 1130 3 ISP driver (drivers/media/platform/omap3isp). 1131 1131 1132 + A subdev can directly send an event to the v4l2_device notify function with 1133 + V4L2_DEVICE_NOTIFY_EVENT. This allows the bridge to map the subdev that sends 1134 + the event to the video node(s) associated with the subdev that need to be 1135 + informed about such an event. 1132 1136 1133 1137 V4L2 clocks 1134 1138 -----------
+2
include/media/v4l2-subdev.h
··· 40 40 #define V4L2_SUBDEV_IR_TX_NOTIFY _IOW('v', 1, u32) 41 41 #define V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ 0x00000001 42 42 43 + #define V4L2_DEVICE_NOTIFY_EVENT _IOW('v', 2, struct v4l2_event) 44 + 43 45 struct v4l2_device; 44 46 struct v4l2_ctrl_handler; 45 47 struct v4l2_event_subscription;