CRs-fixed: (CR)
Change-Id: Ied7f8d30133c3393d1c31f679b65dfb129387f41
Signed-off-by: xff <fangfang.xu@samsung.com>
Reviewed-on: https://gerrit.mot.com/
1335484
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key
#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)
{
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;
#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)
{
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;
#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)
{
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;
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;