]> 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)
commit220ffaeff6c88dad49b4b6b9bd1f27f2666a9949
tree130d3282d3626cb4084bba94a24399c6888da1af
parent2c2426d7bcadcf2bc070815bd22cf04800ffd7d1
[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