Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1062706ybl; Wed, 14 Aug 2019 10:06:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWnjrVuHDCtOIWw9/Cs+caAJMBiwje7ezq1zbjF5qXZCDzSCFFEtJN43FK0wTBWWCzv+Tf X-Received: by 2002:aa7:9477:: with SMTP id t23mr981560pfq.29.1565802410713; Wed, 14 Aug 2019 10:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802410; cv=none; d=google.com; s=arc-20160816; b=YP7oRewbhdAxZjgj5Lx2C6MuKjXQnxGzLlLOiETEe2WGXb+x1Bkt8b1acLOTFydQ/d XG3oTVDgev0swY5W/KqSinVfO/WWsis4BV742KHXfLLkbQEzIbCNrlbCH0jcT5eiNW/b PhXN0yJEtqG5QBEMlEaBprbuDetBoinAo3saa5t8uElpmyhcGvpHue3VlPllI7JiUCeK 6B6++EkzPyMkjK9PmpXNv12WnGAhCczYJwZwQreuZKTLZ4g/2W1Gu3mxCWxVgu/4J4us cURsRc1KIgl7XJazDKs2EHzv8uRiYmifUuFHW3czHzLP96tf82J1FY2W/kPt4zOda7tQ /PKQ== 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=ZZwCkneBCQaeBicDXfv9E2qTnBPKUhWc9JC0fX/onr8=; b=lK5cTHjTpD8H7Ml8erV+Je4IsTCLrUId8jRAfVkJfkHH4Qgl1gfXF9U2szW6fyDzlC f+z4o0cmdd8ErDyLUTOZWJ2zuJb6cHcET+teZrptQEWIObaJGp/KAWlbv2/JYLJTb2q8 PZXcbYdccn70g5795BoYS8Q6lij+uE+iiaTV3Szn00Ij8lVyjIAZAfVG5Hg5Z+l9caul jx/8uaZA63nX7iecPWFDjHCfjorcpq/zYGiatfn6PCXOcDmurRCGm/w6e0bIAOktrpiU eo/acsMnMCbROsgp4hP6xA1AiGi0pmf5puAUO8s1zILP9iKvsMb5/+da6YwRb8oGSkcc AhYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fasj9VBR; 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 o37si194213pjb.94.2019.08.14.10.06.34; Wed, 14 Aug 2019 10:06:50 -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=Fasj9VBR; 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 S1729364AbfHNRFG (ORCPT + 99 others); Wed, 14 Aug 2019 13:05:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:53940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729347AbfHNRFC (ORCPT ); Wed, 14 Aug 2019 13:05: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 99CA6208C2; Wed, 14 Aug 2019 17:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802302; bh=L7r9ww7SAYVEu2l/41sseOOYt9QNi2ZZXDy86XLK94A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fasj9VBRk/9zmQ3IEfmGAFeIq0gunTsdJlQL/YArD/ZTEz55XOulFbwOlXb022bOk t/R7fl1GlGP+xIr+aXRsFMJUsdt+moKmcyMfWzcA8cfTEhrAujozcP7OcWEQcVgYUV SzXCKdhXezO3Al4divuO0UX8PC3KjKRp98mSnibE= 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 5.2 073/144] drm/amd/display: Increase size of audios array Date: Wed, 14 Aug 2019 19:00:29 +0200 Message-Id: <20190814165802.912559590@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@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 6f5ab05d64677..6f0cc718fbd75 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h +++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h @@ -169,7 +169,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 4c8e2c6fb6dbc..72266efd826cf 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