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

Commit f033680d authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher
Browse files

drm/amd/display: try to find matching audio inst for enc inst first



[Description]
in eDP+ HDMI/DP clone or extended configuration, audio inst changed from inst 1 to inst0.
No failure related this though, just playback device endpoint inst changed.
Also  remove one addition register read.

Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c984d06b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -87,9 +87,7 @@ static void dce110_update_generic_info_packet(
	 */
	uint32_t max_retries = 50;

	REG_GET(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, &regval);
	/*we need turn on clock before programming AFMT block*/
	if (regval != 1)
	REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);

	if (REG(AFMT_VBI_PACKET_CONTROL1)) {