[COMMON] media: fimc-is2: Setting a long values for 2P6(code sync)
authordan huh <dan.huh@samsung.com>
Mon, 19 Jun 2017 05:12:02 +0000 (14:12 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:36 +0000 (17:05 +0900)
PR JIRA ID : CPR-38

Change-Id: Ia6cca2b4f41f1009f8fdf6e159b90c80a0a50176
Signed-off-by: dan huh <dan.huh@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2p6.c

index abe79e1cd6986f2df63035cae380d0ec24039753..af1ba82ca446196feea09df30d10003656c33929 100644 (file)
@@ -890,14 +890,10 @@ int sensor_2p6_cis_set_exposure_time(struct v4l2_subdev *subdev, struct ae_param
        if (ret < 0)
                goto p_err;
 
-#ifdef S5K2P6_USE_WDR
        /* Long exposure */
-       if (cis_data->companion_data.enable_wdr == true) {
-               ret = fimc_is_sensor_write16(client, 0x021E, long_coarse_int);
-               if (ret < 0)
-                       goto p_err;
-       }
-#endif
+       ret = fimc_is_sensor_write16(client, 0x021E, long_coarse_int);
+       if (ret < 0)
+               goto p_err;
 
        dbg_sensor(1, "[MOD:D:%d] %s, vsync_cnt(%d), vt_pic_clk_freq_mhz (%d),"
                KERN_CONT "line_length_pck(%d), min_fine_int (%d)\n", cis->id, __func__,
@@ -1558,15 +1554,11 @@ int sensor_2p6_cis_set_digital_gain(struct v4l2_subdev *subdev, struct ae_param
        if (ret < 0)
                goto p_err;
 
-#ifdef S5K2P6_USE_WDR
        /* Long digital gain */
-       if (cis_data->companion_data.enable_wdr == true) {
-               dgains[0] = dgains[1] = dgains[2] = dgains[3] = long_gain;
-               ret = fimc_is_sensor_write16_array(client, 0x3062, dgains, 4);
-               if (ret < 0)
-                       goto p_err;
-       }
-#endif
+       dgains[0] = dgains[1] = dgains[2] = dgains[3] = long_gain;
+       ret = fimc_is_sensor_write16_array(client, 0x3062, dgains, 4);
+       if (ret < 0)
+               goto p_err;
 
 #ifdef DEBUG_SENSOR_TIME
        do_gettimeofday(&end);