From 21473ea5c88c31475860b648abe494dc1bdfc4e1 Mon Sep 17 00:00:00 2001 From: wangdw10 Date: Wed, 9 Oct 2019 11:02:02 +0800 Subject: [PATCH] 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 --- .../sensor/module_framework/fimc-is-interface-sensor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.20.1