]> git.baikalelectronics.ru Git - kernel.git/commit
[media] vb2: fix vb2_poll for output streams
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 24 Jul 2014 12:19:37 +0000 (09:19 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 25 Jul 2014 22:20:04 +0000 (19:20 -0300)
commite8f917fc77356c83781151b3c80e2d188c317532
treee63809b5b71c44fcf2d8df9ec48c9ae715078145
parent3b04470bce3b14d9453e1a4e272e847a89de00e1
[media] vb2: fix vb2_poll for output streams

vb2_poll should always return POLLOUT | POLLWRNORM as long as there
are fewer buffers queued than there are buffers available. Poll for
an output stream should only wait if all buffers are queued and nobody
is dequeuing them.

Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c