Skip to content

Commit 2d73eab

Browse files
Camille Choalexdeucher
authored andcommitted
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: Krunoslav Kovac <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Camille Cho <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent a8e380f commit 2d73eab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4914,9 +4914,7 @@ bool dc_link_set_default_brightness_aux(struct dc_link *link)
49144914
{
49154915
uint32_t default_backlight;
49164916

4917-
if (link &&
4918-
(link->dpcd_sink_ext_caps.bits.hdr_aux_backlight_control == 1 ||
4919-
link->dpcd_sink_ext_caps.bits.sdr_aux_backlight_control == 1)) {
4917+
if (link && link->dpcd_sink_ext_caps.bits.oled == 1) {
49204918
if (!dc_link_read_default_bl_aux(link, &default_backlight))
49214919
default_backlight = 150000;
49224920
// if < 5 nits or > 5000, it might be wrong readback

0 commit comments

Comments
 (0)