From: Richard Acayan <mailingradian@gmail.com>
To: Srinivas Kandagatla <srini@kernel.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Wesley Cheng <quic_wcheng@quicinc.com>,
Johan Hovold <johan@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org,
devicetree@vger.kernel.org,
Nickolay Goppen <setotau@mainlining.org>
Subject: Re: [PATCH 09/10] ASoC: qcom: add sdm660 internal sound card support
Date: Fri, 20 Feb 2026 10:49:39 -0500 [thread overview]
Message-ID: <aZiCkxWLHzgvHnvP@rdacayan> (raw)
In-Reply-To: <05873ad7-ca35-4542-b064-5b401f7bd069@kernel.org>
On Mon, Feb 16, 2026 at 01:34:20PM +0000, Srinivas Kandagatla wrote:
> On 2/11/26 2:03 AM, Richard Acayan wrote:
(snip)
> > + case INT0_MI2S_RX:
> > + data->int0_mi2s_clk_count++;
> > + if (data->int0_mi2s_clk_count == 1)
> > + snd_soc_dai_set_sysclk(cpu,
> > + Q6AFE_LPASS_CLK_ID_INT0_MI2S_IBIT,
> > + MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK);
> > +
> > + /*
> > + * Downstream specifies that the AFE is a clock consumer, but
> > + * the sound is distorted (loud on the right channel and sped
> > + * up) unless we set it as a producer.
> This comment does not make any value, Who is driving the bit clk and
> frame clock is totally depended on the hw setup on the platform, Driving
> incorrect clock would lead to such issues. Does the codec drive on the
> platform that you are testing?
I dug into the downstream Q6AFE driver a bit more. It actually inverts
the logic and specifies that the codec is a clock consumer (instead of
taking Q6AFE's perspective), so it is equivalent to setting
SND_SOC_DAIFMT_CBP_CFP.
Downstream (https://android.googlesource.com/kernel/msm-extra/+/530cffa4cc977a348753831b163eb9d3302b954a/asoc/msm-dai-q6-v2.c#4347):
case SND_SOC_DAIFMT_CBS_CFS:
mi2s_dai_data->rx_dai.mi2s_dai_data.port_config.i2s.ws_src = 1;
mi2s_dai_data->tx_dai.mi2s_dai_data.port_config.i2s.ws_src = 1;
break;
Mainline (sound/soc/qcom/q6afe.c):
#define AFE_PORT_CONFIG_I2S_WS_SRC_INTERNAL 0x1
...
case SND_SOC_DAIFMT_BP_FP:
pcfg->i2s_cfg.ws_src = AFE_PORT_CONFIG_I2S_WS_SRC_INTERNAL;
break;
I don't think the downstream code needs to be explained so I would
simply drop these code comments.
> > + */
> > + snd_soc_dai_set_fmt(cpu, SND_SOC_DAIFMT_CBP_CFP);
next prev parent reply other threads:[~2026-02-20 15:49 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-11 2:02 [PATCH 00/10] SDM660 internal sound card support Richard Acayan
2026-02-11 2:02 ` [PATCH 01/10] ASoC: dt-bindings: qcom,sm8250: add compatible for sdm660-internal Richard Acayan
2026-02-11 2:11 ` Dmitry Baryshkov
2026-02-11 6:51 ` Krzysztof Kozlowski
2026-02-11 21:55 ` Nickolay Goppen
2026-02-12 7:16 ` Krzysztof Kozlowski
2026-02-12 9:34 ` Konrad Dybcio
2026-02-14 3:38 ` Richard Acayan
2026-02-16 10:53 ` Konrad Dybcio
2026-02-16 13:57 ` Dmitry Baryshkov
2026-02-16 14:32 ` Konrad Dybcio
2026-02-24 2:05 ` Richard Acayan
2026-02-11 2:02 ` [PATCH 02/10] ASoC: dt-bindings: qcom: q6dsp: add internal mi2s support Richard Acayan
2026-02-11 2:02 ` [PATCH 03/10] ASoC: dt-bindings: pm8916-analog-codec: Add PM660L compatible Richard Acayan
2026-02-11 6:54 ` Krzysztof Kozlowski
2026-02-12 9:54 ` Konrad Dybcio
2026-02-11 2:02 ` [PATCH 04/10] ASoC: dt-bindings: msm8916-digital-codec: Add SDM660 compatible Richard Acayan
2026-02-11 6:57 ` Krzysztof Kozlowski
2026-02-11 2:02 ` [PATCH 05/10] ASoC: qdsp6: q6dsp-lpass-ports: add internal mi2s support Richard Acayan
2026-02-11 2:02 ` [PATCH 06/10] ASoC: qdsp6: q6afe: " Richard Acayan
2026-02-11 2:02 ` [PATCH 07/10] ASoC: qdsp6: q6afe-dai: " Richard Acayan
2026-02-11 2:03 ` [PATCH 08/10] ASoC: qdsp6: q6routing: " Richard Acayan
2026-02-11 2:03 ` [PATCH 09/10] ASoC: qcom: add sdm660 internal sound card support Richard Acayan
2026-02-16 13:34 ` Srinivas Kandagatla
2026-02-20 15:49 ` Richard Acayan [this message]
2026-02-11 2:03 ` [PATCH 10/10] ASoC: msm8916-wcd-analog: add quirk for cajon 2.0 Richard Acayan
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=aZiCkxWLHzgvHnvP@rdacayan \
--to=mailingradian@gmail.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=quic_wcheng@quicinc.com \
--cc=robh@kernel.org \
--cc=setotau@mainlining.org \
--cc=srini@kernel.org \
--cc=tiwai@suse.com \
/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