camera rk30: ov2655 mirror and flip is initialized wrong , fix it.
authorroot <root@zyc-desktop.(none)>
Wed, 16 May 2012 09:21:05 +0000 (17:21 +0800)
committerroot <root@zyc-desktop.(none)>
Wed, 16 May 2012 09:21:24 +0000 (17:21 +0800)
drivers/media/video/ov2655.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index f31b005..c12a5a4
@@ -118,14 +118,14 @@ static struct reginfo sensor_init_data[] =
     {0x360b, 0x00},
     {0x30b0, 0xff},
     {0x30b1, 0xff},
-    {0x30b2, 0x26},
+    {0x30b2, 0x24},
 
     {0x300e, 0x34},
     {0x300f, 0xa6},
     {0x3010, 0x81},
     {0x3082, 0x01},
     {0x30f4, 0x01},
-    {0x3090, 0x3b},//0x33},
+    {0x3090, 0x33},//0x3b},
     {0x3091, 0xc0},
     {0x30ac, 0x42},
 
@@ -317,7 +317,7 @@ static struct reginfo sensor_init_data[] =
     {0x3379, 0x80},
 
     {0x3069, 0x84},
-    {0x307c, 0x13},//0x10},
+    {0x307c, 0x10},//0x13},
     {0x3087, 0x02},
 
     {0x3300, 0xfc},
@@ -334,22 +334,6 @@ static struct reginfo sensor_init_data[] =
 
     {0x3086, 0x0f},
     {0x3086, 0x00},
-#if 0
-    //night mode
-    {0x300e, 0x34},
-    {0x3011, 0x00},
-    {0x302c, 0x00},
-    {0x3071, 0x00},
-    {0x3070, 0xb9},
-    {0x301c, 0x02},
-    {0x3073, 0x00},
-    {0x3072, 0x9a},
-    {0x301d, 0x03},
-    {0x3014, 0x0c},
-    {0x3015, 0x50},//add 5 dummy frame
-    {0x302e, 0x00},
-    {0x302d, 0x00},
-#endif
 
     {0x0, 0x0}   //end flag
 
@@ -361,10 +345,9 @@ static struct reginfo sensor_720p[]=
 /* 1600X1200 UXGA */
 static struct reginfo sensor_uxga[] =
 {
-#if 1
-  //  {0x3086,0x01},  //sleep off
+
     {0x300E, 0x34},
-    {0x3011, 0x00},
+    {0x3011, 0x01},
     {0x3012, 0x00},
     {0x302a, 0x05},
     {0x302b, 0xCB},
@@ -397,19 +380,7 @@ static struct reginfo sensor_uxga[] =
     {0x331C, 0x00},
     {0x331D, 0x6C},
     {0x3302, 0x01},
-  //  {0x3086,0x00}, //sleep on
-#else
-    {0x300e, 0x38},
-    {0x3011, 0x00},
-    {0x302c, 0x00},
-    {0x3071, 0x00},
-    {0x3070, 0x5d},
-    {0x301c, 0x0d},
-    {0x3073, 0x00},
-    {0x3072, 0x4e},
-    {0x301d, 0x0f},
 
-#endif
     {0x0, 0x0},
 };
 
@@ -507,7 +478,7 @@ static struct reginfo sensor_vga[] =
 {
  //   {0x3086,0x00},  //sleep off
     {0x300E, 0x34},
-    {0x3011, 0x00},
+    {0x3011, 0x01},
     {0x3012, 0x10},
     {0x302a, 0x02},
     {0x302b, 0xE6},