fimc-is2: fix ITS scene0 test_read_write
authorwangdw10 <wangdw10@lenovo.com>
Wed, 9 Oct 2019 03:02:02 +0000 (11:02 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:32:12 +0000 (17:32 +0800)
update exposure metadata update timing to fix exposure
mismatch for raw and jpg case

Change-Id: I7bf61b8d89da819ce8974e2c7f887c3ed6ed2e3a
Signed-off-by: wangdw10 <wangdw10@mt.com>
Reviewed-on: https://gerrit.mot.com/1433855
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

drivers/media/platform/exynos/fimc-is2/sensor/module_framework/fimc-is-interface-sensor.c

index bcc05155793cdef3e31831f32cab3e6706b0b58c..6bf7fdb764987923b8d90f745c5d2f7539ee03e6 100755 (executable)
@@ -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;
                }
        }