Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: don't share plls if monitors differ in audio support

Enabling audio may enable different pll dividers. Don't share
plls if the monitors differ in audio support.

bug:
https://bugzilla.kernel.org/show_bug.cgi?id=98751

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org

+3 -1
+3 -1
drivers/gpu/drm/radeon/atombios_crtc.c
··· 1798 1798 if ((crtc->mode.clock == test_crtc->mode.clock) && 1799 1799 (adjusted_clock == test_adjusted_clock) && 1800 1800 (radeon_crtc->ss_enabled == test_radeon_crtc->ss_enabled) && 1801 - (test_radeon_crtc->pll_id != ATOM_PPLL_INVALID)) 1801 + (test_radeon_crtc->pll_id != ATOM_PPLL_INVALID) && 1802 + (drm_detect_monitor_audio(radeon_connector_edid(test_radeon_crtc->connector)) == 1803 + drm_detect_monitor_audio(radeon_connector_edid(radeon_crtc->connector)))) 1802 1804 return test_radeon_crtc->pll_id; 1803 1805 } 1804 1806 }