diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-05-25 11:51:31 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-11 18:09:33 -0300 |
commit | 0c142c86991551b8b9675ab72609f7a29ee2e1e3 (patch) | |
tree | 05171776bbb35420cb95bea3a16326fb32a03f25 /drivers/media/video | |
parent | 3e1141e2ce5667301a74ca2ef396d9bd5e995f7f (diff) | |
download | linux-0c142c86991551b8b9675ab72609f7a29ee2e1e3.tar.bz2 |
[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')
-rw-r--r-- | drivers/media/video/v4l2-ioctl.c | 1 |
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) |