From: sashiko-bot@kernel.org
To: "Mohammad Rafi Shaik" <mohammad.rafi.shaik@oss.qualcomm.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v1 2/3] ASoC: qcom: qdsp6: lpass-ports: add support for QAIF AIF MI2S and TDM dais
Date: Fri, 18 Sep 2026 13:50:52 +0000 [thread overview]
Message-ID: <20260918135053.13B431F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260918-qaif_dai_id_support-v1-2-ed863c0e5e45@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] qdsp6: reversed RX and TX slot masks for AIF_TDM DAIs
--
commit 055572fdc6d4e48c783378d1d4ba29423dfc1ef4
Author: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
ASoC: qcom: qdsp6: lpass-ports: add support for QAIF AIF MI2S and TDM dais
This patch adds support for Qualcomm Audio Interface (QAIF) AIF MI2S and
TDM DAIs in the DAI driver. These DAIs are used in Shikra, Hawi, and Nord
based Qualcomm platform devices.
> diff --git a/sound/soc/qcom/qdsp6/q6apm-lpass-dais.c b/sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
> index e204fd59e5129..83f2711bceeaa 100644
> --- a/sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
> +++ b/sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
> @@ -386,6 +386,7 @@ static int q6tdm_set_tdm_slot(struct snd_soc_dai *dai,
>
> switch (dai->id) {
> case PRIMARY_TDM_RX_0 ... QUINARY_TDM_TX_7:
> + case AIF_TDM_RX_0 ... AIF_TDM_TX_12:
> slot_mask = (dai->id & 0x1) ? tx_mask : rx_mask;
[Severity: High]
Does this logic incorrectly flip the intended slot masks for the newly added
AIF_TDM DAIs?
The active mask is selected via the bitwise parity check (dai->id & 0x1).
For the legacy PRIMARY_TDM_RX_0 (24, even), this evaluates to 0 and correctly
selects rx_mask.
However, since AIF_TDM_RX_0 is defined as 179 (odd), wouldn't this evaluate
to 1 and incorrectly select tx_mask? Similarly, AIF_TDM_TX_0 is 180 (even)
and would incorrectly select rx_mask.
Could this fundamental mismatch result in zeroed or swapped slot masks,
leading to audio failure or dropped streams on these new TDM interfaces?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260918-qaif_dai_id_support-v1-0-ed863c0e5e45@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-09-18 13:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-18 13:31 [PATCH 0/3] ASoC: qcom: Add QAIF AIF MI2S and TDM DAI support Mohammad Rafi Shaik
2026-09-18 13:31 ` [PATCH v1 1/3] ASoC: dt-bindings: qcom: add QAIF AIF MI2S and TDM dai ids Mohammad Rafi Shaik
2026-09-18 13:31 ` [PATCH v1 2/3] ASoC: qcom: qdsp6: lpass-ports: add support for QAIF AIF MI2S and TDM dais Mohammad Rafi Shaik
2026-09-18 13:50 ` sashiko-bot [this message]
2026-09-18 20:50 ` Srinivas Kandagatla
2026-09-18 13:31 ` [PATCH v1 3/3] ASoC: qcom: sc8280xp: Handle AIF MI2S and TDM interfaces Mohammad Rafi Shaik
2026-09-18 21:00 ` Srinivas Kandagatla
2026-09-22 3:29 ` [PATCH 0/3] ASoC: qcom: Add QAIF AIF MI2S and TDM DAI support Prasad Kumpatla
2026-09-24 18:39 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260918135053.13B431F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=mohammad.rafi.shaik@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox