aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx.h
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2009-09-01 00:19:46 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 22:47:40 -0400
commitda52a55cff643b8e0b346b9894adf5b93946040d (patch)
tree3cc434722b23e5fcc748de24f37054030ef90e8d /drivers/media/video/em28xx/em28xx.h
parent206313db83641022c5ee213ac5f619973a9b427b (diff)
V4L/DVB (12741): em28xx: make video isoc stream work when VBI is enabled
Add code enabling the VBI registers for variants of the em28xx chip that support VBI, and make sure the isoc streaming code continues to work for the video component of the stream (note the video and vbi data arrive intermixed on the same isoc pipe). Note that this version just drops the actual VBI data onto the floor as opposed to processing it. The "#ifdef 0" tags are for the videobuf code that appears in the next patch in this series. We created a separate version of the isoc_copy version for parsing the version of the stream that includes VBI data. In theory, they might be able to be merged at some point in the future, but the initial goal is to ensure that we do not cause any regressions with devices that do not have VBI support. This work was sponsored by EyeMagnet Limited. Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r--drivers/media/video/em28xx/em28xx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h
index 0f2ba9a40d1..1656d2cf34a 100644
--- a/drivers/media/video/em28xx/em28xx.h
+++ b/drivers/media/video/em28xx/em28xx.h
@@ -544,6 +544,12 @@ struct em28xx {
544 enum em28xx_dev_state state; 544 enum em28xx_dev_state state;
545 enum em28xx_io_method io; 545 enum em28xx_io_method io;
546 546
547 /* vbi related state tracking */
548 int capture_type;
549 int vbi_read;
550 unsigned char cur_field;
551
552
547 struct work_struct request_module_wk; 553 struct work_struct request_module_wk;
548 554
549 /* locks */ 555 /* locks */
@@ -639,6 +645,7 @@ int em28xx_audio_setup(struct em28xx *dev);
639 645
640int em28xx_colorlevels_set_default(struct em28xx *dev); 646int em28xx_colorlevels_set_default(struct em28xx *dev);
641int em28xx_capture_start(struct em28xx *dev, int start); 647int em28xx_capture_start(struct em28xx *dev, int start);
648int em28xx_vbi_supported(struct em28xx *dev);
642int em28xx_set_outfmt(struct em28xx *dev); 649int em28xx_set_outfmt(struct em28xx *dev);
643int em28xx_resolution_set(struct em28xx *dev); 650int em28xx_resolution_set(struct em28xx *dev);
644int em28xx_set_alternate(struct em28xx *dev); 651int em28xx_set_alternate(struct em28xx *dev);