camera: fix ov5642 driver white balance(auto) may be error after capture frequently
authorddl <ddl@rockchip.com>
Fri, 20 May 2011 10:19:45 +0000 (18:19 +0800)
committerddl <ddl@rockchip.com>
Sat, 21 May 2011 08:14:11 +0000 (16:14 +0800)
drivers/media/video/ov5642.c

index 1c35779913374cebd8210b87db708cb6d6b9b922..ecbb0969c6c260c4aedb22f6e72f92b7105510cb 100755 (executable)
@@ -2483,8 +2483,8 @@ static struct reginfo sensor_svga[] =
 {0x3827,0x08},
 {0x3a00,0x78},
        { 0x3011,  0x08 },
-       { 0x3c01, 0x80  },
-       { 0x3c00, 0x00  },
+       { 0x3c01, 0x00  },
+       { 0x3c00, 0x00  }, 
 {0x3a08,0x09},
 {0x3a09,0x60},
 {0x3a0a,0x07},
@@ -2695,10 +2695,24 @@ static  struct reginfo sensor_ClrFmt_UYVY[]=
 #if CONFIG_SENSOR_WhiteBalance
 static  struct reginfo sensor_WhiteB_Auto[]=
 {
-    {0x3406,0x00},
-       {0x5183,0x80},
-       {0x5191,0xff},
-       {0x5192,0x00},
+    {0x3406 ,0x0 },
+    {0x5192 ,0x04},
+    {0x5191 ,0xf8},
+    {0x518d ,0x26},
+    {0x518f ,0x42},
+    {0x518e ,0x2b},
+    {0x5190 ,0x42},
+    {0x518b ,0xd0},
+    {0x518c ,0xbd},
+    {0x5187 ,0x18},
+    {0x5188 ,0x18},
+    {0x5189 ,0x56},
+    {0x518a ,0x5c},
+    {0x5186 ,0x1c},
+    {0x5181 ,0x50},
+    {0x5184 ,0x20},
+    {0x5182 ,0x11},
+    {0x5183 ,0x0 },
        {0x0000,0x00}
 };
 /* Cloudy Colour Temperature : 6500K - 8000K  */