RE: [PATCH v1 1/2] v4l: videobuf: Add support for out-of-order buffer dequeuing.

2010-04-22 Thread Pawel Osciak
Responding to my own e-mail here, but I just realized one little thing. >Pawel Osciak wrote: [snip] >+void videobuf_buf_finish(struct videobuf_queue *q, struct videobuf_buffer *vb) >+{ >+ unsigned long flags; >+ >+ spin_lock_irqsave(&q->vb_done_lock, flags); >+ list_add_tail(&vb

[PATCH v1 1/2] v4l: videobuf: Add support for out-of-order buffer dequeuing.

2010-04-21 Thread Pawel Osciak
Drivers can now finish processing on and return video buffers in an arbitrary order. Before this patch, this was possible in a FIFO order only. This is useful e.g. for video codecs, which often need to hold some buffers (e.g. keyframes) for longer periods of time than others. Signed-off-by: Pawel