mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
[media] bttv: G_PARM: set readbuffers
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
76ea992a03
commit
a652ef6095
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue