[media] s5p-fimc: fix ISR and buffer handling for fimc-capture
authorSungchun Kang <sungchun.kang@samsung.com>
Mon, 7 Feb 2011 18:59:46 +0000 (15:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:54:13 +0000 (04:54 -0300)
commit8ec737ffccd7fab629e28427b4d0581ce62ffedd
tree5f6539a5dad7db0b78f6270e0bafdfe53111777c
parent4174ebf5ebd7a09589ff8ff3bc3246ea0a9bd356
[media] s5p-fimc: fix ISR and buffer handling for fimc-capture

In some cases fimc H/W did not stop although there were no output
buffers available. So the capture deactivation interrupt routine
is modified and the state of ST_CAPT_RUN is cleared only
in the LAST-IRQ call.

After LAST-IRQ is generated, H/W pointer will be skipped by 1 frame.
(reference by user manual) So, S/W pointer should be increased too.

Reviewed-by Jonghun Han <jonghun.han@samsung.com>
Signed-off-by: Sungchun Kang <sungchun.kang@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c
drivers/media/video/s5p-fimc/fimc-core.c