diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-05-25 10:51:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-11 17:09:33 -0400 |
commit | 0c142c86991551b8b9675ab72609f7a29ee2e1e3 (patch) | |
tree | 05171776bbb35420cb95bea3a16326fb32a03f25 | |
parent | 3e1141e2ce5667301a74ca2ef396d9bd5e995f7f (diff) |
[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>
-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, | |||
1680 | break; | 1680 | break; |
1681 | 1681 | ||
1682 | ret = 0; | 1682 | ret = 0; |
1683 | p->parm.capture.readbuffers = 2; | ||
1683 | if (ops->vidioc_g_std) | 1684 | if (ops->vidioc_g_std) |
1684 | ret = ops->vidioc_g_std(file, fh, &std); | 1685 | ret = ops->vidioc_g_std(file, fh, &std); |
1685 | if (ret == 0) | 1686 | if (ret == 0) |