Skip to content

Commit b448d30

Browse files
hersen wualexdeucher
authored andcommitted
drm/amd/display: OLED panel backlight adjust not work with external display connected
[Why] amdgpu_dm->backlight_caps is for single eDP only. the caps are upddated for very connector. Real eDP caps will be overwritten by other external display. For OLED panel, caps->aux_support is set to 1 for OLED pnael. after external connected, caps+.aux_support is set to 0. This causes OLED backlight adjustment not work. [How] within update_conector_ext_caps, backlight caps will be updated only for eDP connector. Cc: [email protected] Signed-off-by: hersen wu <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 3168470 commit b448d30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,13 +2019,18 @@ static void update_connector_ext_caps(struct amdgpu_dm_connector *aconnector)
20192019
struct amdgpu_display_manager *dm;
20202020
struct drm_connector *conn_base;
20212021
struct amdgpu_device *adev;
2022+
struct dc_link *link = NULL;
20222023
static const u8 pre_computed_values[] = {
20232024
50, 51, 52, 53, 55, 56, 57, 58, 59, 61, 62, 63, 65, 66, 68, 69,
20242025
71, 72, 74, 75, 77, 79, 81, 82, 84, 86, 88, 90, 92, 94, 96, 98};
20252026

20262027
if (!aconnector || !aconnector->dc_link)
20272028
return;
20282029

2030+
link = aconnector->dc_link;
2031+
if (link->connector_signal != SIGNAL_TYPE_EDP)
2032+
return;
2033+
20292034
conn_base = &aconnector->base;
20302035
adev = conn_base->dev->dev_private;
20312036
dm = &adev->dm;

0 commit comments

Comments
 (0)