From: Sunmi Lee Date: Tue, 3 Jul 2018 11:01:59 +0000 (+0900) Subject: [COMMON] fimc-is2: Added new function for djag_wb_thres setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=247f6e01bfe4edca600d1fd91f6d194f8a4d5810;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: Added new function for djag_wb_thres setting The djab_wb_thres value is defined according to scale_index. PR JIRA ID: CPR-31 Change-Id: I239a98959eb900bb99c0018df92a59d5d5fca50d Signed-off-by: Sunmi Lee --- diff --git a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-djag.c b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-djag.c index 1047e699f1aa..eab7c77a2a96 100644 --- a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-djag.c +++ b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-djag.c @@ -103,6 +103,7 @@ int fimc_is_hw_mcsc_update_djag_register(struct fimc_is_hw_ip *hw_ip, u32 in_width, in_height; u32 out_width = 0, out_height = 0; const struct djag_setfile_contents *djag_tuneset; + struct djag_wb_thres_cfg *djag_wb = NULL; u32 hratio, vratio, min_ratio; u32 scale_index = MCSC_DJAG_PRESCALE_INDEX_1, backup_in; enum exynos_sensor_position sensor_position; @@ -198,8 +199,12 @@ int fimc_is_hw_mcsc_update_djag_register(struct fimc_is_hw_ip *hw_ip, #ifdef MCSC_USE_DEJAG_TUNING_PARAM djag_tuneset = &hw_mcsc->cur_setfile[sensor_position]->djag[scale_index]; +#if defined(USE_UVSP_CAC) + djag_wb = &hw_mcsc->cur_setfile[sensor_position]->djag_wb[scale_index]; +#endif #endif fimc_is_scaler_set_djag_tunning_param(hw_ip->regs, djag_tuneset); + fimc_is_scaler_set_djag_wb_thres(hw_ip->regs, djag_wb); fimc_is_scaler_set_djag_enable(hw_ip->regs, 1);