From: Philipp Zabel Date: Mon, 4 May 2015 10:51:06 +0000 (-0300) Subject: [media] videobuf2: return -EPIPE from DQBUF after the last buffer X-Git-Tag: omap-for-v4.3/legacy-v2-signed~140^2~388 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c16218402a000bb25c1277c43ae98c11bcb59bd1;p=pandora-kernel.git [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 Acked-by: Hans Verkuil Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed