Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1922363pxb; Wed, 9 Feb 2022 07:21:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkCN3TzmCdr/dgLj/hBqvYKAAyjCP2qSXz/4TKaCQhJa/bIt/39ju117F9wSu250lGC1kP X-Received: by 2002:a17:90b:4b88:: with SMTP id lr8mr3937544pjb.166.1644420092073; Wed, 09 Feb 2022 07:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644420092; cv=none; d=google.com; s=arc-20160816; b=htT2diC3q+VkO2onMKxcGIO8hTWBCHNV/8b6HsFr8UnQ357HZjEasS7BltVn6Jvf3h /y5uBO7zX5t6rPlfypV7JTQmxehBxfB3At4w8fJ7ZWDbkLUoGntOj60HMRja6KnUlnYc L+Ms9ukwLjM6n1lY7lDwjyO0I+uIurPBjPXePxMeWFcImZB8H2O0MDfIDX9MM4hGXfsV Lh+gD6PBhtMlozIWgjywKnuMSvcqemQNFqnsEkugOmJsvW7VVgBhStbUPp2Rr1qw5fY2 1q07EXMn0KLM6s4L85yYJ73e1aShjjUg2NBFHp3AShKRAgZ2okoi9A/YWMAYoVYhXxVH p5uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PDtWJ7GDxflGkYJwL2AyjsW7Lmm6JxmZExV6IQLorC4=; b=fRDtFAR9/GTVuoIUVNFLvbolhLbI8fFWbPJlcxY2D0q1gf1H3LsW1jCQpmjABhqhFf AbKnHZSMz3AAoGwOOX7oWeXtfJ7S0B5Q1po4Fm/zDzxAReE70auZWcDkr6hIcUQ7vHVf 2Lp10q5bt1+vAQRb5Z7KO0AqwXQNPvabMLFPgy4tw3WcOnOPIgehwIP5cwAQetF5gkkl MVUCeLinZ8VIUoNj4D80WVD1kLhZm9U4nwLGapXTSEQZwi9Mox6MCm5RWYKRHiv+jva4 pI5c/1OZ7A2SnXG4FF+BAb27s5Wpnn+M4F1Fo+43XopKuZrQ61fOtqs4eUNjhPAFaZuH qArg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=svXBDPzm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 138si2222988pgf.188.2022.02.09.07.21.17; Wed, 09 Feb 2022 07:21:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=svXBDPzm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233413AbiBIN1b (ORCPT + 99 others); Wed, 9 Feb 2022 08:27:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233109AbiBIN1U (ORCPT ); Wed, 9 Feb 2022 08:27:20 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86593C05CB9E; Wed, 9 Feb 2022 05:27:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644413242; x=1675949242; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=PDtWJ7GDxflGkYJwL2AyjsW7Lmm6JxmZExV6IQLorC4=; b=svXBDPzmipf38Oyml6j2SHKV5aFozGotB6niJTB2zJ+77gTuhTUMt69V q+TwAdFQ3OPF0/gr88Hn2qrNqujwzDKKHVYaE7HHSHMzrWt0vdImiPFP6 aSXUOwQLWOqrov9G83C0BHyQaqbdE4UySo2mzXn3JTNpNha4E+2IPvsmQ U=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 09 Feb 2022 05:27:20 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2022 05:27:19 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 9 Feb 2022 05:26:52 -0800 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 9 Feb 2022 05:26:47 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [RESEND v8 2/3] ASoC: qcom: Add macro for lpass DAI id's max limit Date: Wed, 9 Feb 2022 18:56:20 +0530 Message-ID: <1644413181-26358-3-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1644413181-26358-1-git-send-email-quic_srivasam@quicinc.com> References: <1644413181-26358-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Add macro for lpass DAI id's max limit to create static arrays and for array boundary checks. Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index 67ef497..c0f0247 100644 --- a/sound/soc/qcom/lpass.h +++ b/sound/soc/qcom/lpass.h @@ -16,6 +16,7 @@ #include "lpass-hdmi.h" #define LPASS_AHBIX_CLOCK_FREQUENCY 131072000 +#define LPASS_MAX_PORTS (LPASS_CDC_DMA_VA_TX8 + 1) #define LPASS_MAX_MI2S_PORTS (8) #define LPASS_MAX_DMA_CHANNELS (8) #define LPASS_MAX_HDMI_DMA_CHANNELS (4) -- 2.7.4