Re: [RFC][PATCH 1/2] media: vb2: return for polling if a buffer is available

2013-04-11 Thread Marek Szyprowski
Hello, On 4/1/2013 8:40 AM, Seung-Woo Kim wrote: The vb2_poll() does not need to wait next vb_buffer_done() if there is already a buffer in done_list of queue, but current vb2_poll() always waits. So done_list is checked before calling poll_wait(). Signed-off-by: Seung-Woo Kim Acked-by: Mare

[RFC][PATCH 1/2] media: vb2: return for polling if a buffer is available

2013-03-31 Thread Seung-Woo Kim
The vb2_poll() does not need to wait next vb_buffer_done() if there is already a buffer in done_list of queue, but current vb2_poll() always waits. So done_list is checked before calling poll_wait(). Signed-off-by: Seung-Woo Kim --- drivers/media/v4l2-core/videobuf2-core.c |3 ++- 1 files ch