Patch "drm/amd/display: Fix for the no Audio bug with Tiled Displays" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amd-display-fix-for-the-no-audio-bug-with-tiled-.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 328db4fdfb5f617513e3fa55c03ab3cdb0269d6f
Author: Mustapha Ghaddar <mghaddar@xxxxxxx>
Date:   Mon Nov 15 17:56:42 2021 -0500

    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: Jun Lei <Jun.Lei@xxxxxxx>
    Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@xxxxxxx>
    Signed-off-by: Mustapha Ghaddar <mustapha.ghaddar@xxxxxxx>
    Tested-by: Daniel Wheeler <daniel.wheeler@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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 f25ac17f47fa9..95a5310e9e661 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -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;
 }
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux