]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitc50240ec26c42852eb97f291f633f588582215c6
tree5f6539a5dad7db0b78f6270e0bafdfe53111777c
parentfb5325d15392fc8c1a7255837c9bd2596e1e860e
[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