Skip to content

Commit 39d8145

Browse files
superm1alexdeucher
authored andcommitted
drm/amd/display: Don't allow OLED to go down to fully off
[Why] OLED panels can be fully off, but this behavior is unexpected. [How] Ensure that minimum luminance is at least 1. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4338 Reviewed-by: Alex Hung <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Ray Wu <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 51496c7)
1 parent 84f2902 commit 39d8145

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,13 +3610,15 @@ static void update_connector_ext_caps(struct amdgpu_dm_connector *aconnector)
36103610

36113611
luminance_range = &conn_base->display_info.luminance_range;
36123612

3613-
if (luminance_range->max_luminance) {
3614-
caps->aux_min_input_signal = luminance_range->min_luminance;
3613+
if (luminance_range->max_luminance)
36153614
caps->aux_max_input_signal = luminance_range->max_luminance;
3616-
} else {
3617-
caps->aux_min_input_signal = 0;
3615+
else
36183616
caps->aux_max_input_signal = 512;
3619-
}
3617+
3618+
if (luminance_range->min_luminance)
3619+
caps->aux_min_input_signal = luminance_range->min_luminance;
3620+
else
3621+
caps->aux_min_input_signal = 1;
36203622

36213623
min_input_signal_override = drm_get_panel_min_brightness_quirk(aconnector->drm_edid);
36223624
if (min_input_signal_override >= 0)

0 commit comments

Comments
 (0)