[media] rcar_vin: helper function for streaming stop
authorIan Molton <ian.molton@codethink.co.uk>
Mon, 26 Jan 2015 17:08:39 +0000 (14:08 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 12:41:23 +0000 (10:41 -0200)
commit4abec46833c923c1be8dfee1d4eb1fff12cceb21
tree3b90fb5171d7abcdbce783688f63e530fe1a49ee
parent650b1815ffa7b39947cdc33568d3113134d999ec
[media] rcar_vin: helper function for streaming stop

The code that tests that capture from a stream has stopped is
presently insufficient and the potential for a race condition
exists where frame capture may generate an interrupt between
requesting the capture process halt and freeing buffers.

This patch refactors code out of rcar_vin_videobuf_release() and
into rcar_vin_wait_stop_streaming(), and ensures there are calls
in places where we need to know that capturing has finished.

Signed-off-by: Ian Molton <ian.molton@codethink.co.uk>
Signed-off-by: William Towle <william.towle@codethink.co.uk>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/rcar_vin.c