From 65e3669fc7e855b83724a3deb4d561f9fbfb9cd9 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sat, 27 Mar 2010 14:09:52 -0300 Subject: [PATCH] --- yaml --- r: 193048 b: refs/heads/master c: 1bcaf4bd53872e70c4fceec6bbb76044325f337f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/videodev2.h | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index babe0903c456..3f2e28a18fe3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: dd96608369be9d3cfc604eaa3a53a2d38f1cb415 +refs/heads/master: 1bcaf4bd53872e70c4fceec6bbb76044325f337f diff --git a/trunk/include/linux/videodev2.h b/trunk/include/linux/videodev2.h index 0f627c5b986b..b5121bec1bd9 100644 --- a/trunk/include/linux/videodev2.h +++ b/trunk/include/linux/videodev2.h @@ -1640,9 +1640,21 @@ struct v4l2_streamparm { * 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 @@ struct v4l2_event_subscription { __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 *