Commit 2d73eabe authored by Camille Cho's avatar Camille Cho Committed by Alex Deucher

drm/amd/display: Only set default brightness for OLED

[Why]
We used to unconditionally set backlight path as AUX for panels capable
of backlight adjustment via DPCD in set default brightness.

[How]
This should be limited to OLED panel only since we control backlight via
PWM path for SDR mode in LCD HDR panel.
Reviewed-by: default avatarKrunoslav Kovac <krunoslav.kovac@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarCamille Cho <Camille.Cho@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a8e380fd
...@@ -4914,9 +4914,7 @@ bool dc_link_set_default_brightness_aux(struct dc_link *link) ...@@ -4914,9 +4914,7 @@ bool dc_link_set_default_brightness_aux(struct dc_link *link)
{ {
uint32_t default_backlight; uint32_t default_backlight;
if (link && if (link && link->dpcd_sink_ext_caps.bits.oled == 1) {
(link->dpcd_sink_ext_caps.bits.hdr_aux_backlight_control == 1 ||
link->dpcd_sink_ext_caps.bits.sdr_aux_backlight_control == 1)) {
if (!dc_link_read_default_bl_aux(link, &default_backlight)) if (!dc_link_read_default_bl_aux(link, &default_backlight))
default_backlight = 150000; default_backlight = 150000;
// if < 5 nits or > 5000, it might be wrong readback // if < 5 nits or > 5000, it might be wrong readback
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment