[media] s5p-fimc: Reinitialize the pipeline properly after VIDIOC_STREAMOFF
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 16 Mar 2012 14:47:51 +0000 (11:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 10 Apr 2012 18:22:47 +0000 (15:22 -0300)
commitaa333122c9c7d11d7d8486db09869517995af0a8
treed0e6e1f0e2d0113d8b2f68bf8d1fbb181ccd0ffa
parent20676a4c9503dbcbb283c4c6565426dc63b81775
[media] s5p-fimc: Reinitialize the pipeline properly after VIDIOC_STREAMOFF

This patch prevents blocking on DQBUF at a video capture node in some
conditions, after STREAOMOFF/STREAMON sequence. The ST_CAPT_SUSPEND
flag should not be set during normal stream off, otherwise the
capture engine is not properly enabled at stream on.

Reported-by: Bernard Debbasch <b.debbasch@ssi.samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c