From 543817e4420660d9ecc7ff228d32c18636ff0c6a Mon Sep 17 00:00:00 2001 From: ddl Date: Fri, 10 Jun 2011 10:07:52 +0800 Subject: [PATCH] camera: fix gc0309 is mirror, and turn up mt9t111 i2c speed --- drivers/media/video/gc0309.c | 4 ++-- drivers/media/video/mt9t111.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/video/gc0309.c b/drivers/media/video/gc0309.c index b05c2f5b4e56..8d5b12bf9686 100755 --- a/drivers/media/video/gc0309.c +++ b/drivers/media/video/gc0309.c @@ -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}, diff --git a/drivers/media/video/mt9t111.c b/drivers/media/video/mt9t111.c index bb764b1b7cb3..221e4422863c 100755 --- a/drivers/media/video/mt9t111.c +++ b/drivers/media/video/mt9t111.c @@ -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 -- 2.34.1