From: Pallavi Kulkarni <[EMAIL PROTECTED]>
OMAP3ISP: Fix Random System freeze on still capture
This patch removes a 10ms delay which was being invoked at VD0
interrupt time, making the CCDC be re-enabled AFTER VSync, which
caused 5MP frames to be lost in the pipeline.
Signed-off-by: Pallavi Kulkarni <[EMAIL PROTECTED]>
Signed-off-by: Sergio Aguirre <[EMAIL PROTECTED]>
---
drivers/media/video/isp/isp.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
Index: omapkernel/drivers/media/video/isp/isp.c
===================================================================
--- omapkernel.orig/drivers/media/video/isp/isp.c
+++ omapkernel/drivers/media/video/isp/isp.c
@@ -1258,7 +1258,19 @@ void isp_stop()
ispccdc_enable_lsc(0);
ispccdc_enable(0);
isppreview_enable(0);
+ while (isppreview_busy() && (timeout < 100)) {
+ timeout++;
+ mdelay(10);
+ }
+
+ timeout = 0;
ispresizer_enable(0);
+ while (ispresizer_busy() && (timeout < 100)) {
+ timeout++;
+ mdelay(10);
+ }
+
+ timeout = 0;
isp_save_ctx();
omap_writel(omap_readl(ISP_SYSCONFIG) |
ISP_SYSCONFIG_SOFTRESET, ISP_SYSCONFIG);
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html