From: sashiko-bot@kernel.org
To: "Ajay Kumar Nandam" <ajay.nandam@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 5/5] ASoC: qcom: sc8280xp: Add shikra-iqs-evk compatible support
Date: Thu, 10 Sep 2026 15:13:29 +0000 [thread overview]
Message-ID: <20260910151329.D1B371F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260910-shikra-machine-v2-v2-5-9bf6bad589d8@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Clock provider collision on the I2S bus: both CPU and Codec DAIs are configured as clock providers, resulting in a bus collision on the bitclock and frame clock lines.
--
commit 38d45c7da72e3c695c8ea9cd9e58fbc7be8c7070
Author: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
ASoC: qcom: sc8280xp: Add shikra-iqs-evk compatible support
Add machine driver support for the Qualcomm Shikra IQS EVK board.
The Shikra IQS platform uses a third-party MAX98091 codec with
modem-DSP support.
> diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c
> index 5bcdaa1927048..0551110a685f6 100644
> --- a/sound/soc/qcom/sc8280xp.c
> +++ b/sound/soc/qcom/sc8280xp.c
[ ... ]
> @@ -543,6 +557,19 @@ static const struct qcom_snd_soc_common shikra_cqs_priv_data = {
> .codec_sysclk_set = true,
> };
>
> +static const struct qcom_snd_soc_common shikra_iqs_priv_data = {
> + .driver_name = "shikra",
> + .dapm_widgets = shikra_iqs_dapm_widgets,
> + .num_dapm_widgets = ARRAY_SIZE(shikra_iqs_dapm_widgets),
> + .controls = shikra_iqs_controls,
> + .num_controls = ARRAY_SIZE(shikra_iqs_controls),
> + .codec_dai_fmt = SND_SOC_DAIFMT_CBP_CFP |
> + SND_SOC_DAIFMT_NB_NF |
> + SND_SOC_DAIFMT_I2S,
[Severity: High]
Does this configuration cause a clock provider collision on the I2S bus?
Here in shikra_iqs_priv_data, codec_dai_fmt configures the codec as the
clock provider (SND_SOC_DAIFMT_CBP_CFP). However, cpu_dai_fmt is left
uninitialized.
During audio playback, when sc8280xp_snd_hw_params() is called, an
uninitialized cpu_dai_fmt triggers a fallback path:
sc8280xp_snd_hw_params() {
...
if (data->priv->cpu_dai_fmt) {
...
} else {
ret = snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_BP_FP);
...
}
...
}
This fallback configures the CPU DAI as a clock provider as well. With
both the codec and the CPU configured to actively drive the bitclock and
frame clock lines, will this lead to a regression with an electrical
collision on the bus?
If the CPU is intended to be the master (as implied by mi2s_bclk_enable
being true), the codec should be configured with SND_SOC_DAIFMT_CBC_CFC.
If the codec is the intended master, cpu_dai_fmt should be explicitly set
to SND_SOC_DAIFMT_BC_FC.
> + .codec_sysclk_set = true,
> + .mi2s_bclk_enable = true,
> +};
> +
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260910-shikra-machine-v2-v2-0-9bf6bad589d8@oss.qualcomm.com?part=5
prev parent reply other threads:[~2026-09-10 15:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 15:02 [PATCH v2 0/5] ASoC: qcom: Shikra machine driver and DT binding support Ajay Kumar Nandam
2026-09-10 15:02 ` [PATCH v2 1/5] ASoC: dt-bindings: qcom,sm8250: add Shikra sound card compatibles Ajay Kumar Nandam
2026-09-10 15:02 ` [PATCH v2 2/5] ASoC: qcom: sc8280xp: Extend hw_params for QAIF backends Ajay Kumar Nandam
2026-09-10 15:19 ` sashiko-bot
2026-09-10 15:02 ` [PATCH v2 3/5] ASoC: qcom: sc8280xp: Add shikra-cqm-evk compatible support Ajay Kumar Nandam
2026-09-10 15:02 ` [PATCH v2 4/5] ASoC: qcom: sc8280xp: Add shikra-cqs-evk " Ajay Kumar Nandam
2026-09-10 15:02 ` [PATCH v2 5/5] ASoC: qcom: sc8280xp: Add shikra-iqs-evk " Ajay Kumar Nandam
2026-09-10 15:13 ` sashiko-bot [this message]
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=20260910151329.D1B371F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ajay.nandam@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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