[COMMON] fimc-is2: Fix a bug to get uvsp_ctrl from hw_mcsc
authorSunmi Lee <carrotsm.lee@samsung.com>
Mon, 6 Aug 2018 01:46:14 +0000 (10:46 +0900)
committerhskang <hs1218.kang@samsung.com>
Tue, 14 Aug 2018 01:14:12 +0000 (21:14 -0400)
PR JIRA ID: CPR-123

Change-Id: Ia244fc26688116ee385824bc121724238c65580d
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-uvsp-cac.c

index 28a3c61112c1ad4d626296d76ea6976f2ee7b91c..ac0f10bbac362b2960a0050624f5d4f8ced79da6 100644 (file)
@@ -465,6 +465,7 @@ void hw_mcsc_calc_uvsp_radial_ctrl(struct fimc_is_hw_ip *hw_ip,
        struct camera2_shot_ext *shot_ext;
        u32 lsc_center_x, lsc_center_y;
 
+       uvsp_ctrl = &hw_mcsc->uvsp_ctrl;
        lsc_center_x = cal_info->data[0];
        lsc_center_y = cal_info->data[1];
        uvsp_ctrl->biquad_a = cal_info->data[2];
@@ -486,7 +487,6 @@ void hw_mcsc_calc_uvsp_radial_ctrl(struct fimc_is_hw_ip *hw_ip,
                shot_ext->crop_taa_x, shot_ext->crop_taa_y,
                shot_ext->bds_ratio_x, shot_ext->bds_ratio_y);
 
-       uvsp_ctrl = &hw_mcsc->uvsp_ctrl;
        uvsp_ctrl->binning_x = shot_ext->binning_ratio_x * shot_ext->bds_ratio_x * 1024;
        uvsp_ctrl->binning_y = shot_ext->binning_ratio_y * shot_ext->bds_ratio_y * 1024;
        if (shot_ext->bds_ratio_x && shot_ext->bds_ratio_y) {