Re: [PATCH v3 1/9] ASoC: dt-bindings: qcom,qaif-cpu: Add binding

Srinivas Kandagatla <[email protected]>
Newsgroups gmane.linux.ports.arm.msm,gmane.linux.sound,gmane.linux.drivers.devicetree,gmane.linux.kernel
Message-ID <[email protected]>

On 8/26/26 10:39 AM, Harendra Gautam wrote:
>>> + * CIF (Codec Interface) VA TX DAI IDs -- capture from voice activity codec.
>>> + * WRDMA channels collect audio from the VA codec and write it to memory.
>>> + */
>>> +#define QAIF_CDC_DMA_VA_TX0  246
>>> +#define QAIF_CDC_DMA_VA_TX1  247
>>> +#define QAIF_CDC_DMA_VA_TX2  248
>>> +#define QAIF_CDC_DMA_VA_TX3  249
>>> +#define QAIF_CDC_DMA_VA_TX4  250
>>> +#define QAIF_CDC_DMA_VA_TX5  251
>>> +#define QAIF_CDC_DMA_VA_TX6  252
>>> +#define QAIF_CDC_DMA_VA_TX7  253
>>> +#define QAIF_CDC_DMA_VA_TX8  254
>>> +#define QAIF_CDC_DMA_VA_TX9  255
>>> +
>> These DAI IDs exceed the LPASS_MAX_PORT limit, which will cause sound
>> card registration to fail.
>>
>> Check sound/soc/qcom/common.c, as the current indices (246-255) are
>> beyond the supported LPASS port range.
>>
>> Best Regards,
>> Rafi.
> Thanks for pointing this out. We can either add the range check for
> min/max QAIF DAI IDs in qcom/common.c or introduce a common helper in
> qcom/common.h to validate the supported DAI IDs across Qualcomm
> platforms.

You should add these ids to
include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h instead to avoid
conflicts with common code.

--srini
> -Harendra
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.