Skip to content

Commit 6d396e7

Browse files
committed
drm/amd/display: Disable common modes for LVDS
[Why] Common modes are added to LVDS for compatibility in clone mode, but not all panels support them. Non-native modes were disabled in the past but this caused problems because compositors didn't use scaling for non native modes. Now non-native modes on LVDS will enable the scaler by default. [How] Check the connector type. If the connector is LVDS avoid adding common modes. Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 0c3c2e3 commit 6d396e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8374,7 +8374,8 @@ static int amdgpu_dm_connector_get_modes(struct drm_connector *connector)
83748374
drm_add_modes_noedid(connector, 1920, 1080);
83758375
} else {
83768376
amdgpu_dm_connector_ddc_get_modes(connector, drm_edid);
8377-
if (encoder && connector->connector_type != DRM_MODE_CONNECTOR_eDP)
8377+
if (encoder && (connector->connector_type != DRM_MODE_CONNECTOR_eDP) &&
8378+
(connector->connector_type != DRM_MODE_CONNECTOR_LVDS))
83788379
amdgpu_dm_connector_add_common_modes(encoder, connector);
83798380
amdgpu_dm_connector_add_freesync_modes(connector, drm_edid);
83808381
}

0 commit comments

Comments
 (0)