Skip to content

Commit 51496c7

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 <alex.hung@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Ray Wu <ray.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent fe7645d commit 51496c7

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

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

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

36453645
luminance_range = &conn_base->display_info.luminance_range;
36463646

3647-
if (luminance_range->max_luminance) {
3648-
caps->aux_min_input_signal = luminance_range->min_luminance;
3647+
if (luminance_range->max_luminance)
36493648
caps->aux_max_input_signal = luminance_range->max_luminance;
3650-
} else {
3651-
caps->aux_min_input_signal = 0;
3649+
else
36523650
caps->aux_max_input_signal = 512;
3653-
}
3651+
3652+
if (luminance_range->min_luminance)
3653+
caps->aux_min_input_signal = luminance_range->min_luminance;
3654+
else
3655+
caps->aux_min_input_signal = 1;
36543656

36553657
min_input_signal_override = drm_get_panel_min_brightness_quirk(aconnector->drm_edid);
36563658
if (min_input_signal_override >= 0)

0 commit comments

Comments
 (0)