]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: Return all buffers to vb2 at stream stop and start failure
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 21 Oct 2014 19:37:55 +0000 (16:37 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 25 Nov 2014 10:42:33 +0000 (08:42 -0200)
commit8eb1fb9d6bdb95bee82d3107ce71adc70d75272c
tree130d3282d3626cb4084bba94a24399c6888da1af
parent0961723d82b790676821a8b7077c32a4c1329e04
[media] uvcvideo: Return all buffers to vb2 at stream stop and start failure

videobuf2 requires drivers to give back ownership of all queue buffers
in the stop_streaming operation, as well as in the start_streaming
operation in case of failure. Mark all queued buffers as done in the
error or queued state.

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