Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a10f0df0 authored by Alex Deucher's avatar Alex Deucher
Browse files

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: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 990ed272
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -1798,7 +1798,9 @@ static int radeon_get_shared_nondp_ppll(struct drm_crtc *crtc)
			if ((crtc->mode.clock == test_crtc->mode.clock) &&
			if ((crtc->mode.clock == test_crtc->mode.clock) &&
			    (adjusted_clock == test_adjusted_clock) &&
			    (adjusted_clock == test_adjusted_clock) &&
			    (radeon_crtc->ss_enabled == test_radeon_crtc->ss_enabled) &&
			    (radeon_crtc->ss_enabled == test_radeon_crtc->ss_enabled) &&
			    (test_radeon_crtc->pll_id != ATOM_PPLL_INVALID))
			    (test_radeon_crtc->pll_id != ATOM_PPLL_INVALID) &&
			    (drm_detect_monitor_audio(radeon_connector_edid(test_radeon_crtc->connector)) ==
			     drm_detect_monitor_audio(radeon_connector_edid(radeon_crtc->connector))))
				return test_radeon_crtc->pll_id;
				return test_radeon_crtc->pll_id;
		}
		}
	}
	}