Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=43d0dfcfc654fa18b6dd91b9483273b44112997f
Commit:     43d0dfcfc654fa18b6dd91b9483273b44112997f
Parent:     5332bdbe9aae9e1a8fc5daaca6c75f05bc37d310
Author:     Hans Verkuil <[EMAIL PROTECTED]>
AuthorDate: Sat Mar 10 06:24:30 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 15:44:23 2007 -0300

    V4L/DVB (5402): Add vsync_field to the union in video_event for 
VIDEO_EVENT_VSYNC
    
    VIDEO_EVENT_VSYNC needs to tell the application which field it was that
    received a VSYNC (odd/even/progressive). The vsync_field was added to the
    union in video_event for this purpose.
    
    Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 include/linux/dvb/video.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/linux/dvb/video.h b/include/linux/dvb/video.h
index a96da40..0c2a1c7 100644
--- a/include/linux/dvb/video.h
+++ b/include/linux/dvb/video.h
@@ -120,6 +120,13 @@ struct video_command {
        };
 };
 
+/* FIELD_UNKNOWN can be used if the hardware does not know whether
+   the Vsync is for an odd, even or progressive (i.e. non-interlaced)
+   field. */
+#define VIDEO_VSYNC_FIELD_UNKNOWN      (0)
+#define VIDEO_VSYNC_FIELD_ODD          (1)
+#define VIDEO_VSYNC_FIELD_EVEN         (2)
+#define VIDEO_VSYNC_FIELD_PROGRESSIVE  (3)
 
 struct video_event {
        int32_t type;
@@ -131,6 +138,7 @@ struct video_event {
        union {
                video_size_t size;
                unsigned int frame_rate;        /* in frames per 1000sec */
+               unsigned char vsync_field;      /* unknown/odd/even/progressive 
*/
        } u;
 };
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to