diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2006-05-23 22:54:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 01:00:15 -0400 |
commit | 3eb731705556b643df2cbae1bc98976335451548 (patch) | |
tree | a7495548ba45f84425ae014cf7bda2a127f8db1a /drivers | |
parent | 419ac5d466db4dba3eb6bd79ffe993b4a4e81b4f (diff) |
V4L/DVB (4002): Adjust VBI offset to match value reported in VBI format
The actual offset of the start of VBI data is incorrectly documented for both
the cx2388x and bt8x8. For the cx2388x, it appears to be about 220 to 224 +
VBI_V_DEL*2. The driver has been incorrectly reporting an offset of 244.
This patch adjusts VBI_V_DEL to 10, so that the offset of 244 is correct.
This is the same offset as the bttv driver, and expected by some software.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/cx88/cx88-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c index 2214235f76d3..c56292d8d93b 100644 --- a/drivers/media/video/cx88/cx88-core.c +++ b/drivers/media/video/cx88/cx88-core.c | |||
@@ -932,9 +932,9 @@ int cx88_set_tvnorm(struct cx88_core *core, struct cx88_tvnorm *norm) | |||
932 | htotal, cx_read(MO_HTOTAL), (u32)tmp64); | 932 | htotal, cx_read(MO_HTOTAL), (u32)tmp64); |
933 | cx_write(MO_HTOTAL, htotal); | 933 | cx_write(MO_HTOTAL, htotal); |
934 | 934 | ||
935 | // vbi stuff | 935 | // vbi stuff, set vbi offset to 10 (for 20 Clk*2 pixels), this makes |
936 | cx_write(MO_VBI_PACKET, ((1 << 11) | /* (norm_vdelay(norm) << 11) | */ | 936 | // the effective vbi offset ~244 samples, the same as the Bt8x8 |
937 | norm_vbipack(norm))); | 937 | cx_write(MO_VBI_PACKET, (10<<11) | norm_vbipack(norm)); |
938 | 938 | ||
939 | // this is needed as well to set all tvnorm parameter | 939 | // this is needed as well to set all tvnorm parameter |
940 | cx88_set_scale(core, 320, 240, V4L2_FIELD_INTERLACED); | 940 | cx88_set_scale(core, 320, 240, V4L2_FIELD_INTERLACED); |