[COMMON] fimc-is2: update max register value of again for ov sensor
authorxff <fangfang.xu@samsung.com>
Wed, 10 Apr 2019 12:28:36 +0000 (20:28 +0800)
committerKim Gunho <gunho.kim@samsung.com>
Wed, 7 Aug 2019 13:00:37 +0000 (22:00 +0900)
Change-Id: Ied7f8d30133c3393d1c31f679b65dfb129387f41
Signed-off-by: xff <fangfang.xu@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10ff.c
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-16885c.c

index 4568e5c2f5412bbd2bcbdf1ae2a6b9769cabd340..3beb0596c5e0a4060dc280e1eb67f6a51b183f11 100755 (executable)
@@ -946,7 +946,7 @@ p_err:
 #define REG_1X_MAX_VALUE       0x00F8
 #define REG_2X_MAX_VALUE       0x01F0
 #define REG_4X_MAX_VALUE       0x03E0
-#define REG_8X_MAX_VALUE       0x07F0
+#define REG_8X_MAX_VALUE       0x07C0
 
 static u32 sensor_12a10_again_to_reg_value(u32 again)
 {
@@ -1092,7 +1092,6 @@ int sensor_12a10_cis_set_analog_gain(struct v4l2_subdev *subdev, struct ae_param
        analog_val[0] = (analog_gain & 0xFF00) >> 8;
        analog_val[1] = (analog_gain & 0x00FF);
        ret = fimc_is_sensor_write8_array(client, 0x3508, analog_val, 2);
-       ret = fimc_is_sensor_write8_array(client, 0x350c, analog_val, 2);
        if (ret < 0)
                goto p_err;
 
index 17eaed547be6894acdd4eb789d6c96ca9b3dc50a..5c23043d4e4860f1fd16b16965a66aee29f770e4 100755 (executable)
@@ -938,7 +938,7 @@ p_err:
 #define REG_1X_MAX_VALUE       0x00F8
 #define REG_2X_MAX_VALUE       0x01F0
 #define REG_4X_MAX_VALUE       0x03E0
-#define REG_8X_MAX_VALUE       0x07F0
+#define REG_8X_MAX_VALUE       0x07C0
 
 static u32 sensor_12a10ff_again_to_reg_value(u32 again)
 {
@@ -1084,7 +1084,6 @@ int sensor_12a10ff_cis_set_analog_gain(struct v4l2_subdev *subdev, struct ae_par
        analog_val[0] = (analog_gain & 0xFF00) >> 8;
        analog_val[1] = (analog_gain & 0x00FF);
        ret = fimc_is_sensor_write8_array(client, 0x3508, analog_val, 2);
-       ret = fimc_is_sensor_write8_array(client, 0x350c, analog_val, 2);
        if (ret < 0)
                goto p_err;
 
index 681f91c3ba2cfa53690b8d7d776dacc8bed7622a..36b27aee0a1d1db5df937a1e06208b18d73f400e 100755 (executable)
@@ -938,7 +938,7 @@ p_err:
 #define REG_1X_MAX_VALUE       0x00F8
 #define REG_2X_MAX_VALUE       0x01F0
 #define REG_4X_MAX_VALUE       0x03E0
-#define REG_8X_MAX_VALUE       0x07F0
+#define REG_8X_MAX_VALUE       0x07C0
 
 static u32 sensor_16885c_again_to_reg_value(u32 again)
 {
@@ -1082,7 +1082,6 @@ int sensor_16885c_cis_set_analog_gain(struct v4l2_subdev *subdev, struct ae_para
 
        analog_val[0] = (analog_gain & 0xFF00) >> 8;
        analog_val[1] = (analog_gain & 0x00FF);
-       ret = fimc_is_sensor_write8_array(client, 0x3508, analog_val, 2);
        ret = fimc_is_sensor_write8_array(client, 0x350c, analog_val, 2);
        if (ret < 0)
                goto p_err;
@@ -1140,7 +1139,7 @@ int sensor_16885c_cis_get_analog_gain(struct v4l2_subdev *subdev, u32 *again)
                goto p_err;
        }
 
-       ret = fimc_is_sensor_read16(client, 0x3508, &analog_gain);
+       ret = fimc_is_sensor_read16(client, 0x350C, &analog_gain);
        if (ret < 0)
                goto p_err;