]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2: vb2: fix queue reallocation and REQBUFS(0) case
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 9 Mar 2011 17:03:24 +0000 (14:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:54:23 +0000 (04:54 -0300)
commit24ce1e3655c2dd433d5eb9cba0adfffe93702daf
tree0508c284a20cbfd5b35a83acab634f5693ee56db
parent3bf5dcd97c3f663e063f07dc6c831ab85624e1af
[media] v4l2: vb2: fix queue reallocation and REQBUFS(0) case

This patch fixes 2 minor bugs in videobuf2 core:
1. Queue should be reallocated if one change the memory access
method without changing the number of buffers.
2. In case of REQBUFS(0), the request should not be passed to the
driver.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-core.c