summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-09 13:27:57 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-05 17:03:23 (GMT)
commita652ef60952dd816bf84c7c52e0caf6e71ea5a49 (patch)
tree0ec0ddb6330ed4f2d4e4e59463836751641d7cf5
parent76ea992a036c4a5d3bc606a79ef775dd32fd3daa (diff)
downloadlinux-a652ef60952dd816bf84c7c52e0caf6e71ea5a49.tar.xz
[media] bttv: G_PARM: set readbuffers
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/pci/bt8xx/bttv-driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c
index 546a9f5..fb8ec0a 100644
--- a/drivers/media/pci/bt8xx/bttv-driver.c
+++ b/drivers/media/pci/bt8xx/bttv-driver.c
@@ -2970,6 +2970,9 @@ static int bttv_g_parm(struct file *file, void *f,
struct bttv_fh *fh = f;
struct bttv *btv = fh->btv;
+ if (parm->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
+ return -EINVAL;
+ parm->parm.capture.readbuffers = gbuffers;
v4l2_video_std_frame_period(bttv_tvnorms[btv->tvnorm].v4l2_id,
&parm->parm.capture.timeperframe);