Commit 91b66c47 authored by Bhawanpreet Lakha's avatar Bhawanpreet Lakha Committed by Alex Deucher

drm/amd/display: Set RMX_ASPECT as default

Setting this allows for display scaling by default
Signed-off-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f8195e59
...@@ -2994,9 +2994,11 @@ int amdgpu_dm_connector_atomic_set_property(struct drm_connector *connector, ...@@ -2994,9 +2994,11 @@ int amdgpu_dm_connector_atomic_set_property(struct drm_connector *connector,
rmx_type = RMX_FULL; rmx_type = RMX_FULL;
break; break;
case DRM_MODE_SCALE_NONE: case DRM_MODE_SCALE_NONE:
default:
rmx_type = RMX_OFF; rmx_type = RMX_OFF;
break; break;
default:
rmx_type = RMX_ASPECT;
break;
} }
if (dm_old_state->scaling == rmx_type) if (dm_old_state->scaling == rmx_type)
...@@ -3101,7 +3103,7 @@ void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector) ...@@ -3101,7 +3103,7 @@ void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector)
state = kzalloc(sizeof(*state), GFP_KERNEL); state = kzalloc(sizeof(*state), GFP_KERNEL);
if (state) { if (state) {
state->scaling = RMX_OFF; state->scaling = RMX_ASPECT;
state->underscan_enable = false; state->underscan_enable = false;
state->underscan_hborder = 0; state->underscan_hborder = 0;
state->underscan_vborder = 0; state->underscan_vborder = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment