Skip to content

Commit 572a8ea

Browse files
alexdeuchersashalevin
authored andcommitted
drm/radeon: adjust pll when audio is not enabled
[ Upstream commit 7fe04d6 ] Fixes display problems with some monitors when audio is not enabled. Bugs: https://bugs.freedesktop.org/show_bug.cgi?id=89505 https://bugzilla.kernel.org/show_bug.cgi?id=94171 Plus several reports on IRC. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent 742b16a commit 572a8ea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/gpu/drm/radeon/atombios_crtc.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,9 @@ static u32 atombios_adjust_pll(struct drm_crtc *crtc,
580580
else
581581
radeon_crtc->pll_flags |= RADEON_PLL_PREFER_LOW_REF_DIV;
582582

583+
/* if there is no audio, set MINM_OVER_MAXP */
584+
if (!drm_detect_monitor_audio(radeon_connector_edid(connector)))
585+
radeon_crtc->pll_flags |= RADEON_PLL_PREFER_MINM_OVER_MAXP;
583586
if (rdev->family < CHIP_RV770)
584587
radeon_crtc->pll_flags |= RADEON_PLL_PREFER_MINM_OVER_MAXP;
585588
/* use frac fb div on APUs */

0 commit comments

Comments
 (0)