]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: vsp1: Fix pipeline stop timeout
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 23 Jun 2014 20:15:02 +0000 (17:15 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Jul 2014 15:44:50 +0000 (12:44 -0300)
commit1594709820e4ae11adef8705227b17d4d0122ff1
tree38b39eb67c4df0e1ae98bd3a6c6ff74ade5b53ad
parentd35252e6480fa0a155dbc0ca01a54939478bae1d
[media] v4l: vsp1: Fix pipeline stop timeout

If the pipeline was already stopped when stopping the stream, no
frame end interrupt will be generated and the driver will time out
waiting for the pipeline to stop.

Fix this by setting the pipeline state to STOPPED when the pipeline is
idle waiting for frames to process, and to STOPPING at stream stop time
only when the pipeline is currently RUNNING.

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