aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/videodev2.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2011-07-18 07:40:03 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-08-29 11:37:15 -0400
commiteab00a0da292fa7118aaf20da78e834866de00ae (patch)
tree7e5be2825c3859c39114050a731d97c51d546e48 /include/linux/videodev2.h
parentc9f88aa976b79a26561fb7754a1e0e00ff7626fe (diff)
[media] v4l: events: Define V4L2_EVENT_FRAME_SYNC
Define a frame sync event to tell user space when the reception of a frame starts. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r--include/linux/videodev2.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index fca24cc50436..a5359c6e7577 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -2006,6 +2006,7 @@ struct v4l2_streamparm {
2006#define V4L2_EVENT_VSYNC 1 2006#define V4L2_EVENT_VSYNC 1
2007#define V4L2_EVENT_EOS 2 2007#define V4L2_EVENT_EOS 2
2008#define V4L2_EVENT_CTRL 3 2008#define V4L2_EVENT_CTRL 3
2009#define V4L2_EVENT_FRAME_SYNC 4
2009#define V4L2_EVENT_PRIVATE_START 0x08000000 2010#define V4L2_EVENT_PRIVATE_START 0x08000000
2010 2011
2011/* Payload for V4L2_EVENT_VSYNC */ 2012/* Payload for V4L2_EVENT_VSYNC */
@@ -2032,12 +2033,17 @@ struct v4l2_event_ctrl {
2032 __s32 default_value; 2033 __s32 default_value;
2033}; 2034};
2034 2035
2036struct v4l2_event_frame_sync {
2037 __u32 frame_sequence;
2038};
2039
2035struct v4l2_event { 2040struct v4l2_event {
2036 __u32 type; 2041 __u32 type;
2037 union { 2042 union {
2038 struct v4l2_event_vsync vsync; 2043 struct v4l2_event_vsync vsync;
2039 struct v4l2_event_ctrl ctrl; 2044 struct v4l2_event_ctrl ctrl;
2040 __u8 data[64]; 2045 struct v4l2_event_frame_sync frame_sync;
2046 __u8 data[64];
2041 } u; 2047 } u;
2042 __u32 pending; 2048 __u32 pending;
2043 __u32 sequence; 2049 __u32 sequence;