projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e1141e
)
[media] v4l2-ioctl: set readbuffers to 2 in g_parm
author
Hans Verkuil
<hans.verkuil@cisco.com>
Fri, 25 May 2012 14:51:31 +0000
(11:51 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 11 Jun 2012 21:09:33 +0000
(18:09 -0300)
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>
drivers/media/video/v4l2-ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/v4l2-ioctl.c
b/drivers/media/video/v4l2-ioctl.c
index 91be4e871f43644c2052c942092a3f808688c9a8..d7fa8962d8b3129940514cb487d0d75a8931dbdd 100644
(file)
--- 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)