The patch number 14728 was added via Douglas Schilling Landgraf 
<[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Hans Verkuil  <[email protected]>
v4l: add VSYNC and EOS events for use with ivtv


Priority: normal

Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Douglas Schilling Landgraf <[email protected]>


---

 linux/include/linux/videodev2.h |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff -r 75f813685a0c -r 9a10ffe72a89 linux/include/linux/videodev2.h
--- a/linux/include/linux/videodev2.h   Tue May 11 02:50:13 2010 -0300
+++ b/linux/include/linux/videodev2.h   Tue May 11 02:51:11 2010 -0300
@@ -1640,9 +1640,21 @@
  *     E V E N T S
  */
 
+#define V4L2_EVENT_ALL                         0
+#define V4L2_EVENT_VSYNC                       1
+#define V4L2_EVENT_EOS                         2
+#define V4L2_EVENT_PRIVATE_START               0x08000000
+
+/* Payload for V4L2_EVENT_VSYNC */
+struct v4l2_event_vsync {
+       /* Can be V4L2_FIELD_ANY, _NONE, _TOP or _BOTTOM */
+       __u8 field;
+} __attribute__ ((packed));
+
 struct v4l2_event {
        __u32                           type;
        union {
+               struct v4l2_event_vsync vsync;
                __u8                    data[64];
        } u;
        __u32                           pending;
@@ -1656,9 +1668,6 @@
        __u32                           reserved[7];
 };
 
-#define V4L2_EVENT_ALL                         0
-#define V4L2_EVENT_PRIVATE_START               0x08000000
-
 /*
  *     A D V A N C E D   D E B U G G I N G
  *


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/9a10ffe72a89a7641d16e1ba6483baba59ae5eb1

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to