mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08: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
@ -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 New Issue
Block a user