V4L/DVB (4001): Cx88 NTSC VBI fixes
authorMichael Schimek <mschimek@gmx.at>
Mon, 22 May 2006 13:32:11 +0000 (10:32 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 05:00:14 +0000 (02:00 -0300)
VBI (Closed Caption, CC) capturing never worked in NTSC mode with the
cx88 driver.
They were tested with libzvbi and a patched version of tvtime.

Signed-off-by: Michael H. Schimek <mschimek@gmx.at>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-core.c
drivers/media/video/cx88/cx88-vbi.c
drivers/media/video/cx88/cx88.h

index e1092d5d4628de6d078971be4ca62ce1a92c4592..2214235f76d3effbf8eaacbbdd94484e9d006825 100644 (file)
@@ -677,7 +677,7 @@ static unsigned int inline norm_htotal(struct cx88_tvnorm *norm)
 
 static unsigned int inline norm_vbipack(struct cx88_tvnorm *norm)
 {
-       return (norm->id & V4L2_STD_625_50) ? 511 : 288;
+       return (norm->id & V4L2_STD_625_50) ? 511 : 400;
 }
 
 int cx88_set_scale(struct cx88_core *core, unsigned int width, unsigned int height,
index 846faadc9f1c22c20e1373cfa9d35b11a516c54f..aa2a69770098cf48b085d9f35c79f154ec20c9b6 100644 (file)
@@ -34,8 +34,8 @@ void cx8800_vbi_fmt(struct cx8800_dev *dev, struct v4l2_format *f)
        if (dev->core->tvnorm->id & V4L2_STD_525_60) {
                /* ntsc */
                f->fmt.vbi.sampling_rate = 28636363;
-               f->fmt.vbi.start[0] = 10 -1;
-               f->fmt.vbi.start[1] = 273 -1;
+               f->fmt.vbi.start[0] = 10;
+               f->fmt.vbi.start[1] = 273;
 
        } else if (dev->core->tvnorm->id & V4L2_STD_625_50) {
                /* pal */
index 84c87707203bb4361b19de834812e1a621ade9d3..8413e54ef4b8bfdb731291f5dc1052912e534613 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <linux/version.h>
 #include <linux/mutex.h>
-#define CX88_VERSION_CODE KERNEL_VERSION(0,0,5)
+#define CX88_VERSION_CODE KERNEL_VERSION(0,0,6)
 
 #ifndef TRUE
 # define TRUE (1==1)