Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2826510pxb; Thu, 10 Feb 2022 06:28:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVhF5HWu0ZfCArcTQ+LtNUrNnpfq3rp31S8DPeCWBZaTvP70hPMDSHQjFtoBIfW4x38aGv X-Received: by 2002:a17:90a:190e:: with SMTP id 14mr2901283pjg.210.1644503301067; Thu, 10 Feb 2022 06:28:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644503301; cv=none; d=google.com; s=arc-20160816; b=I48i3hIyqLsqhCrCbXFui6qmn3E6IeEs5Us5671j62q7nfw226MN2Ij1u+E067CEZJ jQoKT+0f8sSTyXQ9NC0+CsiETzvDb3Rx7I8iqLtj0vsmVX9HpIZNYEtt51AfNuDnPMyb pLQIh8a0NBn0MSm6s4LElEEzgWG81rO61vkxcu1PdIccdnElSxnXDpqSHd+q2yfZETN4 U212prRsBrsbK6OVpcHLTYVBjxe7u9xts98hD1/sNYWAHKtMRXxycbuNpWOXgoJ9oD0r t6V331BoeGi6OV+t1IXVtRTQCVSU6nIsApjt1l2G8dm5At7kj/jrAUcwAVqKtrU7waxq XuXw== 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=3NkLyf8YjoDB7EMOS+OlgAJ3b1Asm8x6iRWfkSknr3o=; b=QARY/ukIgcy9rMSSOSkd1Ye2GPFkwKNfFdPnmjEAfZY/5lCzLv/3qIkNRetUI56LRv HAK5tNCUAnRIGc/z44kFwAfA4ELrLQ8k2rqikl6ffkUZ3sF+yKtJO7IUvYhI5ZBWlEX4 h+GLpSJHBe/tlESqGfkGiu3YcPX3Cu9MMJfFsIUl+B2Bh162hXVtE4IvD4Sq7cPSbUD8 srkG5HVFXF706LMHODm+Qqs/nYajwqhF3DtLV9MgsN+9X9XnFG8M247B1UcuSYOWxz61 ftSp/iGqooJZ43prarEAx/vmuRNLNywm9kbk7qTaRu+uhKPz7vij5HoYOTw/KqFVbF2F SZ1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=SHxpysRE; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mr24si1418635pjb.68.2022.02.10.06.28.05; Thu, 10 Feb 2022 06:28:21 -0800 (PST) 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=@quicinc.com header.s=qcdkim header.b=SHxpysRE; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241766AbiBJMvG (ORCPT + 99 others); Thu, 10 Feb 2022 07:51:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241731AbiBJMvF (ORCPT ); Thu, 10 Feb 2022 07:51:05 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FE842636; Thu, 10 Feb 2022 04:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644497467; x=1676033467; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=3NkLyf8YjoDB7EMOS+OlgAJ3b1Asm8x6iRWfkSknr3o=; b=SHxpysREvGsh6aLpRaqB8PvLyYdoxsXL1SgMjduimRViX05OaQ9YExop Mzi+60HgGCAwHA8G22AzHUVq5zHf1OzAUiJOI5+SIzHDzmXD8v3bDggvR ZZPrPenKv7rJ3oXn3po65aXAKsHc8gbJFw+3Y7kTyS56RkRzfFTyb3fhC 8=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 10 Feb 2022 04:51:07 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 04:51:06 -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; Thu, 10 Feb 2022 04:50:45 -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; Thu, 10 Feb 2022 04:50:40 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v9 2/3] ASoC: qcom: Add macro for lpass DAI id's max limit Date: Thu, 10 Feb 2022 18:20:14 +0530 Message-ID: <1644497415-25291-3-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1644497415-25291-1-git-send-email-quic_srivasam@quicinc.com> References: <1644497415-25291-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: nasanex01b.na.qualcomm.com (10.46.141.250) 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 Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu --- 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