Re: [PATCH v5 3/5] [media] videobuf2: return -EPIPE from DQBUF after the last buffer

2015-04-27 Thread Hans Verkuil
On 04/20/2015 10:28 AM, Philipp Zabel wrote: 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

[PATCH v5 3/5] [media] videobuf2: return -EPIPE from DQBUF after the last buffer

2015-04-20 Thread Philipp Zabel
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