Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1079965ybl; Wed, 14 Aug 2019 10:22:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFuQ4yXPYxJoA0rgg3pLf1DuGyhO1Ns5TUwKx4Sg1FmMr21pygdTE/FKusgG/KnRM4MZQt X-Received: by 2002:a17:90a:bf92:: with SMTP id d18mr801869pjs.128.1565803328573; Wed, 14 Aug 2019 10:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565803328; cv=none; d=google.com; s=arc-20160816; b=La+/4H0JEVwpZp3/QchyKjxEHx8YAskFwHmZQ1pXvbnkPPdZqeRu1dAzmC37qmXObN jqIbRwUVeiQVsFZwRmg+GszPemKE7tyW/QSnM2DbQnlcgyCpF0nkl/YqTA8vipGK3A4I 5CDBNpHa4RTK4RL7BWhlu3PdGqbuC1zYClqj+Q0HTF4dYs4iBZX5X/N+92KeVe8ILQBM S9oSAAp36Fz3WTBLWxeyVPnJeXcBcAXwYL77ZqOwcnWPCbgke051VMLv487uGrvnjDbK EYijNbtuneYbT1ymR8hwvYDpTQSytwfKHpStB1Ads+GJnGeigc2GXKFNNDstoYnY1M7M PX6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6uTQXgmtcxD/AA2XC9yykA6Q2jYABofcziQTO3LB+q4=; b=k0mv6/g56d2z6jw/rNOk/kx9E4ib62yRJWSY5W5x34KLeyTtCeHlxVBft3DpNk/9yK dfFFRrRNYHOTqO3IdGpG+YZDCtLFenncjPaZG+nKWrfhJJsfsGB/IRDitkqFfb9Q8Gd5 rG/oyGEX39Q7EG77W/6qUpws960O61zdGdkGZh9oS7VYvA9K6iQHZ/gS1xlUX1v5OHz4 OzQ4MUE5xljOdAg3ZVGaI7QWk8ItwzxCpNPkRq1JKZD0sbmfDHNX+XrN1sptuSUul2Cl z2m5MHrnQnrVaCEoXbVpN4WflgVIzz/+WmxWoaJHB8wNHgSWkXB1VF6JmjbIJ/zduFuC WbPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BqyolR44; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si210640pgk.46.2019.08.14.10.21.52; Wed, 14 Aug 2019 10:22:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BqyolR44; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729966AbfHNRLE (ORCPT + 99 others); Wed, 14 Aug 2019 13:11:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:34148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728169AbfHNRLC (ORCPT ); Wed, 14 Aug 2019 13:11:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F3EC2084D; Wed, 14 Aug 2019 17:11:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802661; bh=J4dSbfCwkT11Ar3nuoF9znqGCtoVQNozFYMuMTM2jMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BqyolR44QTWJt6EZp2N4IpBs20tklemsDYBQepJnYFl0FRtiKf6aquYPN/v2m0NBM OlsO02DQ3realMafwYhKfNEB/+zR/A/2jvL3A+9V/0dxAFKp0ZwSObzRg0hFtBoiIF l8kBgq8paRa0ckqGwewHaYowN4oSaOx5gpThADbE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tai Man , Joshua Aberback , Leo Li , Alex Deucher , Sasha Levin Subject: [PATCH 4.19 43/91] drm/amd/display: Increase size of audios array Date: Wed, 14 Aug 2019 19:01:06 +0200 Message-Id: <20190814165751.443972078@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165748.991235624@linuxfoundation.org> References: <20190814165748.991235624@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 7352193a33dfc9b69ba3bf6a8caea925b96243b1 ] [Why] The audios array defined in "struct resource_pool" is only 6 (MAX_PIPES) but the max number of audio devices (num_audio) is 7. In some projects, it will run out of audios array. [How] Incraese the audios array size to 7. Signed-off-by: Tai Man Reviewed-by: Joshua Aberback Acked-by: Leo Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/inc/core_types.h | 2 +- drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h index c0b9ca13393b6..f4469fa5afb55 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h +++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h @@ -159,7 +159,7 @@ struct resource_pool { struct clock_source *clock_sources[MAX_CLOCK_SOURCES]; unsigned int clk_src_count; - struct audio *audios[MAX_PIPES]; + struct audio *audios[MAX_AUDIOS]; unsigned int audio_count; struct audio_support audio_support; diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h b/drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h index cf7433ebf91a0..71901743a9387 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h @@ -34,6 +34,7 @@ * Data types shared between different Virtual HW blocks ******************************************************************************/ +#define MAX_AUDIOS 7 #define MAX_PIPES 6 struct gamma_curve { -- 2.20.1