summaryrefslogtreecommitdiff
path: root/meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6.34-hack-to-fix-aava-camera-sensor-issue.patch
blob: c7e1a5372ee9cb4918d9e8fd5f458c6ce70a8067 (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
From 67b3a2d6716bfa9d308b26729a2cdeeffb6e8218 Mon Sep 17 00:00:00 2001
From: Prajwal Mohan <prajwal.karur.mohan@intel.com>
Date: Thu, 13 May 2010 16:39:43 -0700
Subject: [PATCH] dirty hack to fix aava camera sensor issue

Signed-off-by: Prajwal Mohan <prajwal.karur.mohan@intel.com>
Patch-mainline: 2.6.34
---
 drivers/media/video/mrstci/mrstov2650/mrstov2650.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/mrstci/mrstov2650/mrstov2650.c b/drivers/media/video/mrstci/mrstov2650/mrstov2650.c
index 7f0d478..ce24139 100644
--- a/drivers/media/video/mrstci/mrstov2650/mrstov2650.c
+++ b/drivers/media/video/mrstci/mrstov2650/mrstov2650.c
@@ -1111,7 +1111,11 @@ static int ov2650_detect(struct i2c_client *client)
 	ov2650_wakeup();
 
 	ov2650_read(client, OV2650_PID_L, &value);
+	#ifdef CONFIG_MRST_DRM_AAVA
+	if (value != 0x66)
+	#else
 	if (value != 0x52)
+	#endif
 		return -ENODEV;
 
 	return 0;
-- 
1.6.2.5