Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3784302pxb; Tue, 19 Apr 2022 09:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYKPusVaZNyYYNuRPdEA87Za4t6888sgdjPWazie7iViZkvNbPmYsj3+Q5ylhUgY9quTpb X-Received: by 2002:a05:6a00:803:b0:50a:9874:c204 with SMTP id m3-20020a056a00080300b0050a9874c204mr2919021pfk.57.1650386691459; Tue, 19 Apr 2022 09:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650386691; cv=none; d=google.com; s=arc-20160816; b=aN0OmITNgbKVTabXebKETQG6eedXdUvOS8B6Jtpft5vwXOZK8NJIZnYljj5w0LIfXZ lQzeciVYc+OvB4iRxm8pP+2htzpr/BvqwHy2Ywlom5NnCF6vfloWWvFPqcOesE8NHt1M 6Bsn3RW1HJWDIDhaaBWEDZrqO5fRqMYN/GnyhrUF/ETtNh0xELulPwemsrAFuOltylOd G+tGgTbIEtVzsosnd2D0hl8vyzpHrIrfs0reN1MnC6pCzDNSHnQ3hWNb5zw/x1MQ8wLX VM22mUjPhvGj8cHVMdPUOvjcW6tWl//FdBNsKWqOAV3IHrqN3V9Am0J5txlW/mCEVSc8 wGEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3q1jnlKXLsTwuclVydIpeg4aKMnkvCRO7xkrmhEyimU=; b=hv4HZ9lkap05gLxDucsawWCJmQIXCKOXnDDlAUzKMNJ1DABXYA/Rztl9Rj7lEpuuXq e+tC7BHRxKN0GBpi5nJBFxh7Zzk3zXBBjDmH6wHNrSHJ4xQncQB3wvLBvZuNmhiI0I5e sMcfOQz0kMpFmjUQ2Y90vOwDUi76fP6gr48Zm2u6XaRlLh3GBSDnd1zQYWjOa8sEEaCS f9QuoIBRxS5pvdZMzCAhHi8+WQKgmABs79gvH9ynepmjivfF93Hy+WeFYAJ80MlvUwGT fVIpip1e203TRU/BBV1uGrQ+gyvs98pDMfw9J7QlZ2go7p/9tJAvUhsTrnrCBJEc5i3J GwKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=anzIyJEE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a170902ce9200b0015164c6214bsi12028633plg.2.2022.04.19.09.44.34; Tue, 19 Apr 2022 09:44:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=anzIyJEE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239417AbiDRMg6 (ORCPT + 99 others); Mon, 18 Apr 2022 08:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239042AbiDRMa2 (ORCPT ); Mon, 18 Apr 2022 08:30:28 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7020BBF; Mon, 18 Apr 2022 05:23:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 16201CE1077; Mon, 18 Apr 2022 12:23:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BAE1C385A1; Mon, 18 Apr 2022 12:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284625; bh=kHv6hQD5t7JI2Qskfwudj9tOHcppLAkN/iiMY1xPhck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=anzIyJEEYmo0ZmydHfhAci23rTNMQl1HSiEDgz8d4JTXetQkHO6MolWAQdD2Qnfkn oo0W00cI6AVkuOKR+ahWtnVf6bZM8tIkjvwnq6XAh1mLgMC8ADXEzhxhttZlqzqBtU DvLcv9uM21z+KbfXYADA9qa8ZTEfciI1ZzP6Tr8A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alvin Lee , Aric Cyr , Alex Hung , Charlene Liu , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.17 135/219] drm/amd/display: fix audio format not updated after edid updated Date: Mon, 18 Apr 2022 14:11:44 +0200 Message-Id: <20220418121210.673122656@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Charlene Liu [ Upstream commit 5e8a71cf13bc9184fee915b2220be71b4c6cac74 ] [why] for the case edid change only changed audio format. driver still need to update stream. Reviewed-by: Alvin Lee Reviewed-by: Aric Cyr Acked-by: Alex Hung Signed-off-by: Charlene Liu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 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 ac3071e38e4a..f0a97b82c33a 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -1667,8 +1667,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.35.1