diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2015-05-04 13:51:06 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-12 09:53:06 +0300 |
commit | c16218402a000bb25c1277c43ae98c11bcb59bd1 (patch) | |
tree | cccdee965d974306a2ad6e67aeb0cc0ae356bc40 /security/smack/smackfs.c | |
parent | dc199241624a2fd85d9b0d8303babd60feadd0e6 (diff) | |
download | linux-c16218402a000bb25c1277c43ae98c11bcb59bd1.tar.xz |
[media] videobuf2: return -EPIPE from DQBUF after the last buffer
If the last buffer was dequeued from a capture queue, let poll return
immediately and let DQBUF return -EPIPE to signal there will no more
buffers to dequeue until STREAMOFF.
The driver signals the last buffer by setting the V4L2_BUF_FLAG_LAST.
To reenable dequeuing on the capture queue, the driver must explicitly
call vb2_clear_last_buffer_queued. The last buffer queued flag is
cleared automatically during STREAMOFF.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'security/smack/smackfs.c')
0 files changed, 0 insertions, 0 deletions