summaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-omap-psp-2.6.32/cam/0034-omap3isp-Fix-Wrong-check-on-non-interlaced-sensor-on.patch
blob: ce9cb1a364c5748292b41cf819e600973e30ed35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 242df5600b1bb1173670846eac802840d4601de0 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 9 Jul 2010 16:56:18 -0500
Subject: [PATCH 34/71] omap3isp: Fix Wrong check on non-interlaced sensor on isr

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 drivers/media/video/isp/isp.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/media/video/isp/isp.c b/drivers/media/video/isp/isp.c
index 29dd005..2ef2d58 100644
--- a/drivers/media/video/isp/isp.c
+++ b/drivers/media/video/isp/isp.c
@@ -978,11 +978,12 @@ static irqreturn_t omap34xx_isp_isr(int irq, void *_pdev)
 	}
 
 	if (irqstatus & CCDC_VD0) {
-		if (isp->pipeline.pix.field == V4L2_FIELD_INTERLACED) {
+		if (((isp->pipeline.pix.field == V4L2_FIELD_INTERLACED) &&
+		     (isp->current_field != 0)) ||
+		    (isp->pipeline.pix.field != V4L2_FIELD_INTERLACED)) {
 			/* Skip even fields, and process only odd fields */
-			if (isp->current_field != 0)
-				if (RAW_CAPTURE(isp))
-					isp_buf_process(dev, bufs);
+			if (RAW_CAPTURE(isp))
+				isp_buf_process(dev, bufs);
 		}
 		if (!ispccdc_busy(&isp->isp_ccdc))
 			ispccdc_config_shadow_registers(&isp->isp_ccdc);
-- 
1.6.6.1