]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: vsp1: Release buffers at stream stop
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 23 Jun 2014 19:57:22 +0000 (16:57 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Jul 2014 15:44:49 +0000 (12:44 -0300)
commitd35252e6480fa0a155dbc0ca01a54939478bae1d
tree3358b1a78c6bbbb9a6e850b29912733faae5989c
parentf02081b1ef0e3b579c28c6a2a090f3864ae1daea
[media] v4l: vsp1: Release buffers at stream stop

videobuf2 expects no buffer to be owned by the driver when the
stop_stream queue operation returns. As the vsp1 driver fails to do so,
a warning is generated at stream top time.

Fix this by releasing all buffers queued on the IRQ queue in the
stop_stream operation handler and marking them as erroneous.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/vsp1/vsp1_video.c