From: Srinivasa Rao Mandadapu Date: Thu, 10 Feb 2022 12:50:14 +0000 (+0530) Subject: ASoC: qcom: Add macro for lpass DAI id's max limit X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=77d0ffef793da818741127f4905a3e3d45d05ac7;p=linux.git ASoC: qcom: Add macro for lpass DAI id's max limit 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 Link: https://lore.kernel.org/r/1644497415-25291-3-git-send-email-quic_srivasam@quicinc.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index 67ef497166af1..c0f0247e68191 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)