From a88d155f073ea33c090b60100696b52d40a488c9 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 21 Apr 2022 09:37:52 +0000 Subject: [PATCH] drm/amd/display: fix audio format not updated after edid updated From Charlene Liu b054e8183fbdec15955311956df8a9ce47e0ab6d in linux 5.15.y/5.15.35 5e8a71cf13bc9184fee915b2220be71b4c6cac74 in mainline linux --- sys/dev/pci/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c b/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c index df49952ffab..be7ec701d25 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c +++ b/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c @@ -1626,8 +1626,8 @@ 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) + /*compare audio info*/ + if (memcmp(&old_stream->audio_info, &stream->audio_info, sizeof(stream->audio_info)) != 0) return false; return true; -- 2.20.1