[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)
commitef33d901db3026643f1c415562d633dfc6c5e9bb
tree130d3282d3626cb4084bba94a24399c6888da1af
parent0da4ab984b1753b160b5fa840ae98b87228ac3dc
[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