diff options
author | hongao <hongao@uniontech.com> | 2021-11-11 11:32:07 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-11-22 14:45:02 -0500 |
commit | 6c5af7d2f886bf1f1de9cca3310b24a8d7ceaa47 (patch) | |
tree | 4dd631dc512c1ed4c7a05219633d1a93b16bf7ac /drivers/gpu/drm/amd/display/dmub/src | |
parent | b295ce39912cb10d3bd34fba556e4009b67954db (diff) | |
download | linux-6c5af7d2f886bf1f1de9cca3310b24a8d7ceaa47.tar.gz linux-6c5af7d2f886bf1f1de9cca3310b24a8d7ceaa47.tar.bz2 linux-6c5af7d2f886bf1f1de9cca3310b24a8d7ceaa47.zip |
drm/amdgpu: fix set scaling mode Full/Full aspect/Center not works on vga and dvi connectors
amdgpu_connector_vga_get_modes missed function amdgpu_get_native_mode
which assign amdgpu_encoder->native_mode with *preferred_mode result in
amdgpu_encoder->native_mode.clock always be 0. That will cause
amdgpu_connector_set_property returned early on:
if ((rmx_type != DRM_MODE_SCALE_NONE) &&
(amdgpu_encoder->native_mode.clock == 0))
when we try to set scaling mode Full/Full aspect/Center.
Add the missing function to amdgpu_connector_vga_get_mode can fix this.
It also works on dvi connectors because
amdgpu_connector_dvi_helper_funcs.get_mode use the same method.
Signed-off-by: hongao <hongao@uniontech.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dmub/src')
0 files changed, 0 insertions, 0 deletions