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

Commit 8fc2f28e authored by Mustapha Ghaddar's avatar Mustapha Ghaddar Committed by Greg Kroah-Hartman
Browse files

drm/amd/display: Fix for the no Audio bug with Tiled Displays



[ Upstream commit 5ceaebcda9061c04f439c93961f0819878365c0f ]

[WHY]
It seems like after a series of plug/unplugs we end up in a situation
where tiled display doesnt support Audio.

[HOW]
The issue seems to be related to when we check streams changed after an
HPD, we should be checking the audio_struct as well to see if any of its
values changed.

Reviewed-by: default avatarJun Lei <Jun.Lei@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarMustapha Ghaddar <mustapha.ghaddar@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c0315e93
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1546,6 +1546,10 @@ bool dc_is_stream_unchanged(
	if (old_stream->ignore_msa_timing_param != stream->ignore_msa_timing_param)
		return false;

	// Only Have Audio left to check whether it is same or not. This is a corner case for Tiled sinks
	if (old_stream->audio_info.mode_count != stream->audio_info.mode_count)
		return false;

	return true;
}