]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: Implement videobuf2 .wait_prepare and .wait_finish operations
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 21 Jan 2013 09:51:41 +0000 (06:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 6 Feb 2013 11:33:58 +0000 (09:33 -0200)
commita15a9576c95491066308dde7df6f6c06867b0ddf
tree80bcfd35aec18bb5c7bbb610219f33bc1e3982c9
parent3fb9bf7a48c4c4d28c3b8b54296365339d162246
[media] uvcvideo: Implement videobuf2 .wait_prepare and .wait_finish operations

Those optional operations are used to release and reacquire the queue
lock when videobuf2 needs to perform operations that sleep for a long
time, such as waiting for a buffer to be complete. Implement them to
avoid blocking qbuf or streamoff calls when a dqbuf is in progress.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/uvc/uvc_queue.c