projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76ea992
)
[media] bttv: G_PARM: set readbuffers
author
Hans Verkuil
<hans.verkuil@cisco.com>
Sun, 9 Sep 2012 13:27:57 +0000
(10:27 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 5 Mar 2013 17:03:23 +0000
(14:03 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/bt8xx/bttv-driver.c
patch
|
blob
|
history
diff --git
a/drivers/media/pci/bt8xx/bttv-driver.c
b/drivers/media/pci/bt8xx/bttv-driver.c
index
546a9f5
..
fb8ec0a
100644
(file)
--- 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);