From: wangdw10 Date: Wed, 9 Oct 2019 03:02:02 +0000 (+0800) Subject: fimc-is2: fix ITS scene0 test_read_write X-Git-Tag: MMI-RSA31.Q1-48-36-11~92 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21473ea5c88c31475860b648abe494dc1bdfc4e1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git fimc-is2: fix ITS scene0 test_read_write update exposure metadata update timing to fix exposure mismatch for raw and jpg case Change-Id: I7bf61b8d89da819ce8974e2c7f887c3ed6ed2e3a Signed-off-by: wangdw10 Reviewed-on: https://gerrit.mot.com/1433855 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Biming Li Reviewed-by: Dawei Wang Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/fimc-is-interface-sensor.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/fimc-is-interface-sensor.c index bcc05155793c..6bf7fdb76498 100755 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/fimc-is-interface-sensor.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/fimc-is-interface-sensor.c @@ -971,7 +971,8 @@ int request_sensitivity(struct fimc_is_sensor_interface *itf, } if(sensor_ctl->exposureTime != 0 && module_ctl->valid_sensor_ctrl == true) { - if(sensor_ctl->exposureTime != sensor_peri->cis.expecting_sensor_dm[index].exposureTime) { + if((sensor_ctl->exposureTime != sensor_peri->cis.expecting_sensor_dm[index].exposureTime) && + (sensor_peri->cis.expecting_sensor_dm[index].exposureTime == 0)) { sensor_peri->cis.expecting_sensor_dm[index].exposureTime = sensor_ctl->exposureTime; } }