drm/amd/display: Set RMX_ASPECT as default
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Fri, 16 Nov 2018 16:36:21 +0000 (11:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Nov 2018 20:45:57 +0000 (15:45 -0500)
Setting this allows for display scaling by default

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index b837683737acae992f828c3a1452f69ebe15bf84..83b9606499527d077b47e7336d28abedc2f65a9c 100644 (file)
@@ -2994,9 +2994,11 @@ int amdgpu_dm_connector_atomic_set_property(struct drm_connector *connector,
                        rmx_type = RMX_FULL;
                        break;
                case DRM_MODE_SCALE_NONE:
-               default:
                        rmx_type = RMX_OFF;
                        break;
+               default:
+                       rmx_type = RMX_ASPECT;
+                       break;
                }
 
                if (dm_old_state->scaling == rmx_type)
@@ -3101,7 +3103,7 @@ void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector)
        state = kzalloc(sizeof(*state), GFP_KERNEL);
 
        if (state) {
-               state->scaling = RMX_OFF;
+               state->scaling = RMX_ASPECT;
                state->underscan_enable = false;
                state->underscan_hborder = 0;
                state->underscan_vborder = 0;