From: Hans Verkuil Date: Fri, 25 May 2012 14:51:31 +0000 (-0300) Subject: [media] v4l2-ioctl: set readbuffers to 2 in g_parm X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0c142c86991551b8b9675ab72609f7a29ee2e1e3;p=linux-beck.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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)