From: xff Date: Tue, 12 Mar 2019 08:33:43 +0000 (+0800) Subject: [COMMON] fimc-is2: fix register setting error when dual_sync is disable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73f104bb495fa771d5eba4f9ad7cdab4e1ef5ca1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: fix register setting error when dual_sync is disable CRs-fixed: (CR) Change-Id: I804ae664a2c578e24b0c52960d43c78424e978c8 Signed-off-by: xff Reviewed-on: https://gerrit.mot.com/1319592 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dawei Wang Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c index dbb7eacec606..f7e409f24aed 100755 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-12a10.c @@ -880,12 +880,15 @@ int sensor_12a10_cis_set_frame_duration(struct v4l2_subdev *subdev, u32 frame_du ret = fimc_is_sensor_write16(client, 0x380e, frame_length_lines); if (ret < 0) goto p_err; - ret = fimc_is_sensor_write8(client, 0x3826, ((frame_length_lines * 2 - 4) & 0xFF00) >> 8); - if (ret < 0) - goto p_err; - ret = fimc_is_sensor_write8(client, 0x3827, (frame_length_lines * 2 - 4) & 0xFF); - if (ret < 0) - goto p_err; + if(cis_data->dual_sync_enable) + { + ret = fimc_is_sensor_write8(client, 0x3826, ((frame_length_lines * 2 - 4) & 0xFF00) >> 8); + if (ret < 0) + goto p_err; + ret = fimc_is_sensor_write8(client, 0x3827, (frame_length_lines * 2 - 4) & 0xFF); + if (ret < 0) + goto p_err; + } cis_data->cur_frame_us_time = frame_duration; cis_data->frame_length_lines = frame_length_lines;