Re: [PATCH v3] ASoC: qcom: sc8280xp: Derive TDM channels from DT mask
From: Prasad Kumpatla
Date: Mon Nov 02 2026 - 06:08:46 EST
On 10/31/2026 1:53 PM, Shawn Guo wrote:
Derive the backend channel count of TDM DAIs from the cpu DAI TDMLGTM,
slot mask in the DT, using the same DAI ID ranges and tx/rx mask
selection as q6tdm_set_tdm_slot(), so the channel count always matches
the number of slots programmed into the DSP. Each board then gets the
channel count its dai-link describes, e.g. 4/4 on Nord RRD, 6/4 on
RIDE. Keep the default of two when the link has no TDM slot
description, and fail the fixup on an invalid one.
Signed-off-by: Shawn Guo <shengchao.guo@xxxxxxxxxxxxxxxx>
---
Changes for v3:
- Propagate qcom_snd_get_dai_tdm_slots() errors other than -ENOENT
instead of silently falling back to two channels (Prasad)
- Link to v2: https://lore.kernel.org/all/20261029022340.591372-1-shengchao.guo@xxxxxxxxxxxxxxxx/
Reviewed-by: Prasad Kumpatla<prasad.kumpatla@xxxxxxxxxxxxxxxx>
Thanks,
Prasad