drm/amd/display: fix audio format not updated after edid updated
authorjsg <jsg@openbsd.org>
Thu, 21 Apr 2022 09:37:52 +0000 (09:37 +0000)
committerjsg <jsg@openbsd.org>
Thu, 21 Apr 2022 09:37:52 +0000 (09:37 +0000)
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

index df49952..be7ec70 100644 (file)
@@ -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;