diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-18 20:16:00 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-18 20:16:00 +0200 |
commit | cfc5c4e6bc9c0c61bb5696b0198117b9d34ddc3f (patch) | |
tree | bc544724c395da18cc3e6871292284f50c5c9b86 /linux/drivers/media/video/ivtv/ivtv-vbi.c | |
parent | d9dfbb9adf32defc0309c29ce0267d28b7d5de38 (diff) | |
download | mediapointer-dvb-s2-cfc5c4e6bc9c0c61bb5696b0198117b9d34ddc3f.tar.gz mediapointer-dvb-s2-cfc5c4e6bc9c0c61bb5696b0198117b9d34ddc3f.tar.bz2 |
ivtv: fix VBI reinsertion decoding
From: Hans Verkuil <hverkuil@xs4all.nl>
- Invalid VBI packets should result in an empty VBI frame, not
in an zero-sized frame that causes the reader to incorrectly
return a 0 (EOF) value.
- PIO completion should not reset the sg_pending_size field.
- The DMA offset detection code should be ignored for PIO transfers:
it somehow messes up the data on the card and is not needed anyway
for PIO.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-vbi.c')
-rw-r--r-- | linux/drivers/media/video/ivtv/ivtv-vbi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-vbi.c b/linux/drivers/media/video/ivtv/ivtv-vbi.c index a7282a91b..a58c833c2 100644 --- a/linux/drivers/media/video/ivtv/ivtv-vbi.c +++ b/linux/drivers/media/video/ivtv/ivtv-vbi.c @@ -163,8 +163,8 @@ static int ivtv_convert_ivtv_vbi(struct ivtv *itv, u8 *p) linemask[1] = 0xf; p += 4; } else { - /* unknown VBI data stream */ - return 0; + /* unknown VBI data, convert to empty VBI frame */ + linemask[0] = linemask[1] = 0; } for (i = 0; i < 36; i++) { int err = 0; |