summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMustapha Ghaddar <mghaddar@amd.com>2021-11-15 23:56:42 +0100
committerAlex Deucher <alexander.deucher@amd.com>2021-12-01 23:06:06 +0100
commit5ceaebcda9061c04f439c93961f0819878365c0f (patch)
tree768dc9e34939ef4d1e0ba96deabfafda2119765b
parentdrm/amd/display: Clear DPCD lane settings after repeater training (diff)
downloadlinux-5ceaebcda9061c04f439c93961f0819878365c0f.tar.xz
linux-5ceaebcda9061c04f439c93961f0819878365c0f.zip
drm/amd/display: Fix for the no Audio bug with Tiled Displays
[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: Jun Lei <Jun.Lei@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Mustapha Ghaddar <mustapha.ghaddar@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_resource.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index c32fdccd4d92..dcbfae210493 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -1664,6 +1664,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;
}