summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-ioctl.c
diff options
context:
space:
mode:
authorHans Verkuil2012-05-25 16:51:31 +0200
committerMauro Carvalho Chehab2012-06-11 23:09:33 +0200
commit0c142c86991551b8b9675ab72609f7a29ee2e1e3 (patch)
tree05171776bbb35420cb95bea3a16326fb32a03f25 /drivers/media/video/v4l2-ioctl.c
parent[media] smsusb: add autodetection support for USB ID 2040:f5a0 (diff)
downloadkernel-qcow2-linux-0c142c86991551b8b9675ab72609f7a29ee2e1e3.tar.gz
kernel-qcow2-linux-0c142c86991551b8b9675ab72609f7a29ee2e1e3.tar.xz
kernel-qcow2-linux-0c142c86991551b8b9675ab72609f7a29ee2e1e3.zip
[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 <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/v4l2-ioctl.c')
-rw-r--r--drivers/media/video/v4l2-ioctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c
index 91be4e871f43..d7fa8962d8b3 100644
--- a/drivers/media/video/v4l2-ioctl.c
+++ b/drivers/media/video/v4l2-ioctl.c
@@ -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)