V4L/DVB (9368): VBI fix for cx88 cards
The attached patch fix VBI support cx88 card. I'm running a capture for hours, getting the closed caption from it[1], and it's working perfect - the output is the same of a bttv card. Please apply this patch as soon as possible. [1] - using zvbi-ntsc-cc of zvbi project. Signed-off-by: Rafael Diniz <diniz@wimobilis.com.br> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
e8deeae24f
commit
b058e3f395
1 changed files with 8 additions and 2 deletions
|
@ -1216,8 +1216,12 @@ static int vidioc_streamon(struct file *file, void *priv, enum v4l2_buf_type i)
|
||||||
struct cx8800_fh *fh = priv;
|
struct cx8800_fh *fh = priv;
|
||||||
struct cx8800_dev *dev = fh->dev;
|
struct cx8800_dev *dev = fh->dev;
|
||||||
|
|
||||||
if (unlikely(fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE))
|
/* We should remember that this driver also supports teletext, */
|
||||||
|
/* so we have to test if the v4l2_buf_type is VBI capture data. */
|
||||||
|
if (unlikely((fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) &&
|
||||||
|
(fh->type != V4L2_BUF_TYPE_VBI_CAPTURE)))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (unlikely(i != fh->type))
|
if (unlikely(i != fh->type))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
@ -1232,8 +1236,10 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
|
||||||
struct cx8800_dev *dev = fh->dev;
|
struct cx8800_dev *dev = fh->dev;
|
||||||
int err, res;
|
int err, res;
|
||||||
|
|
||||||
if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
|
if ((fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) &&
|
||||||
|
(fh->type != V4L2_BUF_TYPE_VBI_CAPTURE))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (i != fh->type)
|
if (i != fh->type)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
Reference in a new issue