V4L/DVB: v4l: add VSYNC and EOS events for use with ivtv
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Родитель
dd96608369
Коммит
1bcaf4bd53
|
@ -1640,9 +1640,21 @@ struct v4l2_streamparm {
|
||||||
* E V E N T S
|
* 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 {
|
struct v4l2_event {
|
||||||
__u32 type;
|
__u32 type;
|
||||||
union {
|
union {
|
||||||
|
struct v4l2_event_vsync vsync;
|
||||||
__u8 data[64];
|
__u8 data[64];
|
||||||
} u;
|
} u;
|
||||||
__u32 pending;
|
__u32 pending;
|
||||||
|
@ -1656,9 +1668,6 @@ struct v4l2_event_subscription {
|
||||||
__u32 reserved[7];
|
__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
|
* A D V A N C E D D E B U G G I N G
|
||||||
*
|
*
|
||||||
|
|
Загрузка…
Ссылка в новой задаче