drm/amd/display: fix duplicate aux command with AMD aux backlight

when using AMD aux backlight control, we avoid sending backlight
update commands to DMUB firmware because it is controlled by aux commands
in driver.

Reviewed-by: Iswara Nagulendran <iswara.nagulendran@amd.com>
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Harry VanZyllDeJong <hvanzyll@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Harry VanZyllDeJong 2025-09-17 16:46:13 -04:00 committed by Alex Deucher
parent 04226ae1bc
commit 9dddfac98e

View File

@ -710,7 +710,8 @@ bool dcn31_set_backlight_level(struct pipe_ctx *pipe_ctx,
panel_cntl->inst,
panel_cntl->pwrseq_inst);
dmub_abm_set_backlight(dc, backlight_level_params, panel_cntl->inst);
if (backlight_level_params->control_type != BACKLIGHT_CONTROL_AMD_AUX)
dmub_abm_set_backlight(dc, backlight_level_params, panel_cntl->inst);
return true;
}