mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[media] v4l2-ioctl: set readbuffers to 2 in g_parm
If g_parm is handled automatically, then set readbuffers to 2, which is the minimum number of buffers videobuf uses. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
3e1141e2ce
commit
0c142c8699
1 changed files with 1 additions and 0 deletions
|
|
@ -1680,6 +1680,7 @@ static long __video_do_ioctl(struct file *file,
|
|||
break;
|
||||
|
||||
ret = 0;
|
||||
p->parm.capture.readbuffers = 2;
|
||||
if (ops->vidioc_g_std)
|
||||
ret = ops->vidioc_g_std(file, fh, &std);
|
||||
if (ret == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue