diff --git a/drivers/amlogic/media/osd/osd_hw.c b/drivers/amlogic/media/osd/osd_hw.c index e9aee2f2a721..573d6a34f768 100644 --- a/drivers/amlogic/media/osd/osd_hw.c +++ b/drivers/amlogic/media/osd/osd_hw.c @@ -6381,6 +6381,7 @@ static void generate_blend_din_table(struct hw_osd_blending_s *blending) blending->din_reoder_sel; } +#ifdef FREESCAL_CHECK static bool is_freescale_para_changed(u32 index) { static int first[HW_OSD_COUNT - 1] = {1}; @@ -6405,6 +6406,7 @@ static bool is_freescale_para_changed(u32 index) first[index] = 0; return freescale_update; } +#endif static int osd_setting_blending_scope(u32 index) { @@ -8625,7 +8627,7 @@ static int osd_setting_order(u32 output_index) if (osd_hw.enable[i]) { struct hw_osd_reg_s *osd_reg = &hw_osd_reg_array[i]; - update = is_freescale_para_changed(i); + /* update = is_freescale_para_changed(i); */ if (!osd_hw.osd_afbcd[i].enable) canvas_config(osd_hw.fb_gem[i].canvas_idx, osd_hw.fb_gem[i].addr, @@ -8663,10 +8665,10 @@ static int osd_setting_order(u32 output_index) osd_hw.reg[OSD_FREESCALE_COEF].update_func(i); if (update || osd_update_window_axis) { osd_set_scan_mode(i); - osd_hw.reg[DISP_FREESCALE_ENABLE] - .update_func(i); osd_update_window_axis = false; } + osd_hw.reg[DISP_FREESCALE_ENABLE] + .update_func(i); if (osd_hw.premult_en[i] && !osd_hw.blend_bypass) VSYNCOSD_WR_MPEG_REG_BITS( osd_reg->osd_mali_unpack_ctrl, 0x1, 28, 1);