Skip to contentSkip to conversation

videodev2: add new event type V4L2_EVENT_SIGNALCHANGED

PATCH New Mikhail Domrachev 1 participant 1 message Mar 31, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 2/3 videodev2: add new event type V4L2_EVENT_SIGNALCHANGED

Applications subscribed for this event can be notified about changes of TV standard.

---
 Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | 7 +++++++
 include/uapi/linux/videodev2.h                             | 1 +
 2 files changed, 8 insertions(+)
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +7 -0
index 5c70b61..dc7cb9f 100644
@@ -155,6 +155,13 @@
 	    </entry>
 	  </row>
 	  <row>
+	    <entry><constant>V4L2_EVENT_SIGNALCHANGED</constant></entry>
+	    <entry>5</entry>
+	    <entry>This event is triggered when TV standard of the input signal is changed.
+		   New detected standard of type &v4l2-std-id; placed to u.data[] field of &v4l2-event;
+	    </entry>
+	  </row>
+	  <row>
 	    <entry><constant>V4L2_EVENT_PRIVATE_START</constant></entry>
 	    <entry>0x08000000</entry>
 	    <entry>Base event number for driver-private events.</entry>
include/uapi/linux/videodev2.h +1 -0
index e35ad6c..45094f2 100644
@@ -1765,6 +1765,7 @@ struct v4l2_streamparm {
 #define V4L2_EVENT_EOS				2
 #define V4L2_EVENT_CTRL				3
 #define V4L2_EVENT_FRAME_SYNC			4
+#define V4L2_EVENT_SIGNALCHANGED		5
 #define V4L2_EVENT_PRIVATE_START		0x08000000
 
 /* Payload for V4L2_EVENT_VSYNC */
Signature · 1 line
1.8.5.3