aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-video.c
diff options
context:
space:
mode:
authorSteven Toth <stoth@kernellabs.com>2011-10-10 10:09:54 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-14 16:11:15 -0400
commit5ab27e6d31be4a794a44477b94aa56dd625eb0f2 (patch)
tree4fe86021ecf03bd6ed4bcc9ae2a4d216a1a18589 /drivers/media/video/cx23885/cx23885-video.c
parent4f9c41439c495b4685393cf865418f7e6425fe60 (diff)
[media] cx23885: add vbi buffer formatting, window changes and video core changes
Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-video.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-video.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c
index 53d9f9dd927d..cb9e05f92feb 100644
--- a/drivers/media/video/cx23885/cx23885-video.c
+++ b/drivers/media/video/cx23885/cx23885-video.c
@@ -1070,7 +1070,8 @@ static int vidioc_streamon(struct file *file, void *priv,
1070 struct cx23885_dev *dev = fh->dev; 1070 struct cx23885_dev *dev = fh->dev;
1071 dprintk(1, "%s()\n", __func__); 1071 dprintk(1, "%s()\n", __func__);
1072 1072
1073 if (unlikely(fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)) 1073 if ((fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) &&
1074 (fh->type != V4L2_BUF_TYPE_VBI_CAPTURE))
1074 return -EINVAL; 1075 return -EINVAL;
1075 if (unlikely(i != fh->type)) 1076 if (unlikely(i != fh->type))
1076 return -EINVAL; 1077 return -EINVAL;
@@ -1087,7 +1088,8 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
1087 int err, res; 1088 int err, res;
1088 dprintk(1, "%s()\n", __func__); 1089 dprintk(1, "%s()\n", __func__);
1089 1090
1090 if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) 1091 if ((fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) &&
1092 (fh->type != V4L2_BUF_TYPE_VBI_CAPTURE))
1091 return -EINVAL; 1093 return -EINVAL;
1092 if (i != fh->type) 1094 if (i != fh->type)
1093 return -EINVAL; 1095 return -EINVAL;