camera: fix gc0309 is mirror, and turn up mt9t111 i2c speed
authorddl <ddl@rockchip.com>
Fri, 10 Jun 2011 02:07:52 +0000 (10:07 +0800)
committerddl <ddl@rockchip.com>
Fri, 10 Jun 2011 02:09:20 +0000 (10:09 +0800)
drivers/media/video/gc0309.c
drivers/media/video/mt9t111.c

index b05c2f5b4e56f82e1f6b4b65d1737dea32d3b4e6..8d5b12bf96864e1562ecdd947dce1158602bc58b 100755 (executable)
@@ -69,7 +69,7 @@ module_param(debug, int, S_IRUGO|S_IWUSR);
 #define CONFIG_SENSOR_Mirror        0
 #define CONFIG_SENSOR_Flip          0
 
-#define CONFIG_SENSOR_I2C_SPEED     100000       /* Hz */
+#define CONFIG_SENSOR_I2C_SPEED     250000       /* Hz */
 /* Sensor write register continues by preempt_disable/preempt_enable for current process not be scheduled */
 #define CONFIG_SENSOR_I2C_NOSCHED   0
 #define CONFIG_SENSOR_I2C_RDWRCHK   0
@@ -138,7 +138,7 @@ static struct reginfo sensor_init_data[] =
        {0x11,0x0d}, 
        {0x12,0x2a}, 
        {0x13,0x00}, 
-       {0x14,0x10},    
+       {0x14,0x11},    
        {0x15,0x0a}, 
        {0x16,0x05}, 
        {0x17,0x01}, 
index bb764b1b7cb36f3f72cd9798100368eef50aba70..221e4422863c6b951fecfc8cb9f630ee43684c4d 100755 (executable)
@@ -74,7 +74,7 @@ module_param(debug, int, S_IRUGO|S_IWUSR);
 #define CONFIG_SENSOR_Focus         1
 
 
-#define CONFIG_SENSOR_I2C_SPEED     100000       /* Hz */
+#define CONFIG_SENSOR_I2C_SPEED     350000       /* Hz */
 /* Sensor write register continues by preempt_disable/preempt_enable for current process not be scheduled */
 #define CONFIG_SENSOR_I2C_NOSCHED   0
 #define CONFIG_SENSOR_I2C_RDWRCHK   0
@@ -6188,7 +6188,7 @@ static const struct v4l2_queryctrl sensor_controls[] =
         .maximum       = 255,
         .step          = 1,
         .default_value = 125,
-    },*/
+    },
        {
         .id            = V4L2_CID_FOCUS_AUTO,
         .type          = V4L2_CTRL_TYPE_BOOLEAN,
@@ -6197,7 +6197,7 @@ static const struct v4l2_queryctrl sensor_controls[] =
         .maximum       = 1,
         .step          = 1,
         .default_value = 0,
-    },/*{
+    },*/{
         .id            = V4L2_CID_FOCUS_CONTINUOUS,
         .type          = V4L2_CTRL_TYPE_BOOLEAN,
         .name          = "Focus Control",
@@ -6205,7 +6205,7 @@ static const struct v4l2_queryctrl sensor_controls[] =
         .maximum       = 1,
         .step          = 1,
         .default_value = 0,
-    },*/
+    },
     #endif
 
        #if CONFIG_SENSOR_Flash