From 457e1dcbdbd3f8d43793a74f4d96eaa9d1cb823b Mon Sep 17 00:00:00 2001 From: xff Date: Tue, 12 Mar 2019 16:33:43 +0800 Subject: [PATCH] [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 --- .../module_framework/cis/fimc-is-cis-12a10.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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; -- 2.20.1