From: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
To: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>,
Shenghao Ding <shenghao-ding@ti.com>, Kevin Lu <kevin-lu@ti.com>,
Baojun Xu <baojun.xu@ti.com>, Sen Wang <sen@ti.com>,
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>,
Srinivas Kandagatla <srini@kernel.org>,
Shawn Guo <shengchao.guo@oss.qualcomm.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v3 7/7] ASoC: qcom: sc8280xp: Add Nord sound card support
Date: Wed, 14 Oct 2026 22:49:53 +0530 [thread overview]
Message-ID: <b2ba86cd-5eb2-40e6-af37-d6d44d244675@oss.qualcomm.com> (raw)
In-Reply-To: <65a55d4c-4a88-4cc0-8c5b-57fc8aecbc8d@oss.qualcomm.com>
On 10/13/2026 2:39 PM, Ajay Kumar Nandam wrote:
>
>
> On 10/9/2026 6:42 PM, Mohammad Rafi Shaik wrote:
>> Add support for the Nord Ride and RRD sound cards by introducing the
>> qcom,nord-sndcard compatible and associated platform-specific data.
>> Nord uses external codecs for its playback and capture paths and requires
>> board-specific DAI and clock configuration. Configure the codec DAI
>> format
>> for DSP_A operation and enable MI2S bit clock handling for the platform.
>> Add a platform-specific sound card initialization callback to configure
>> the ADAU1979 capture codec to use LRCLK as its system clock source. This
>> configuration is done during DAI link initialization so that the codec
>> clock source and associated rate constraints are established before the
>> capture stream is opened.
>>
>> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
>> ---
>
>> +static int nord_snd_init(struct snd_soc_pcm_runtime *rtd)
>> +{
>> + struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
>> + struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0);
>> + int ret;
>> +
>> + switch (cpu_dai->id) {
>> + case AIF_TDM_TX_8:
>> + /*
>> + * adau1979 PLL clocked from LRCLK, no external MCLK. Selecting
>> + * the source also installs the PLL rate constraint, which the
>> + * codec applies from its startup() callback, so it has to be
>> + * in place before the first stream is opened. The frequency is
>> + * unused for an LRCLK-sourced PLL.
>> + */
>> + ret = snd_soc_component_set_sysclk(codec_dai->component,
>> + ADAU1977_SYSCLK,
>> + ADAU1977_SYSCLK_SRC_LRCLK,
>> + 48000, SND_SOC_CLOCK_IN);
>> + if (ret && ret != -ENOTSUPP)
>> + return ret;
>
> If this link is always connected to the ADAU1979, should we be ignoring
> -ENOTSUPP here?
>
> snd_soc_component_set_sysclk() returns -ENOTSUPP when the component does
> not provide a .set_sysclk() callback. In that case we'd continue without
> applying the LRCLK clock source configuration, while the commit message
> states that this setup is required before startup.
>
> Is there a case where AIF_TDM_TX_8 can be paired with a component that
> legitimately lacks .set_sysclk() support?
>
Ack, will fix this in next revision.
Best Regards,
Rafi.
>> + break;
>> + default:
>> + break;
>> + }
>> +
>> + return 0;
>> +}
>> +
>> static int sc8280xp_snd_hw_params(struct snd_pcm_substream *substream,
>> struct snd_pcm_hw_params *params)
>> {
>> @@ -552,6 +593,15 @@ static const struct qcom_snd_soc_common
>> kaanapali_priv_data = {
>> .wcd_jack = true,
>> };
>> +static const struct qcom_snd_soc_common nord_priv_data = {
>> + .driver_name = "nord",
>> + .mi2s_bclk_enable = true,
>> + .codec_dai_fmt = SND_SOC_DAIFMT_CBC_CFC |
>> + SND_SOC_DAIFMT_NB_NF |
>> + SND_SOC_DAIFMT_DSP_A,
>> + .snd_init = nord_snd_init,
>> +};
>> +
>> static const struct qcom_snd_soc_common qcs9100_priv_data = {
>> .driver_name = "sa8775p",
>> .dapm_widgets = sc8280xp_dapm_widgets,
>> @@ -677,6 +727,7 @@ static const struct of_device_id
>> snd_sc8280xp_dt_match[] = {
>> { .compatible = "qcom,hawi-sndcard", .data = &hawi_priv_data },
>> { .compatible = "qcom,kaanapali-sndcard", .data =
>> &kaanapali_priv_data },
>> { .compatible = "qcom,maili-sndcard", .data = &hawi_priv_data },
>> + { .compatible = "qcom,nord-sndcard", .data = &nord_priv_data },
>> { .compatible = "qcom,qcm6490-idp-sndcard", .data =
>> &qcm6490_priv_data },
>> { .compatible = "qcom,qcs615-sndcard", .data = &qcs615_priv_data },
>> { .compatible = "qcom,qcs6490-rb3gen2-sndcard", .data =
>> &qcs6490_priv_data },
>>
>
prev parent reply other threads:[~2026-10-14 17:20 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 13:12 [PATCH v3 0/7] ASoC: qcom: Add Nord audio support Mohammad Rafi Shaik
2026-10-09 13:12 ` [PATCH v3 1/7] ASoC: dt-bindings: ti,pcm1681: Document the optional SCK clock Mohammad Rafi Shaik
2026-10-13 7:01 ` Krzysztof Kozlowski
2026-10-14 17:16 ` Mohammad Rafi Shaik
2026-10-15 8:24 ` Krzysztof Kozlowski
2026-10-09 13:12 ` [PATCH v3 2/7] ASoC: codec: pcm1681: Add optional SCK clock and runtime PM support Mohammad Rafi Shaik
2026-10-09 13:23 ` sashiko-bot
2026-10-10 3:07 ` Wang, Sen
2026-10-09 13:12 ` [PATCH v3 3/7] ASoC: codec: pcm1681: Add TDM support Mohammad Rafi Shaik
2026-10-09 13:20 ` sashiko-bot
2026-10-10 3:12 ` Wang, Sen
2026-10-09 13:12 ` [PATCH v3 4/7] ASoC: dt-bindings: ti,pcm1681: Document the PCM1681 supplies Mohammad Rafi Shaik
2026-10-12 6:25 ` Krzysztof Kozlowski
2026-10-14 17:18 ` Mohammad Rafi Shaik
2026-10-09 13:12 ` [PATCH v3 5/7] ASoC: codec: pcm1681: Enable " Mohammad Rafi Shaik
2026-10-09 13:21 ` sashiko-bot
2026-10-10 3:13 ` Wang, Sen
2026-10-09 13:12 ` [PATCH v3 6/7] ASoC: dt-bindings: qcom,sm8250: Add Nord sound card Mohammad Rafi Shaik
2026-10-09 13:12 ` [PATCH v3 7/7] ASoC: qcom: sc8280xp: Add Nord sound card support Mohammad Rafi Shaik
2026-10-13 9:09 ` Ajay Kumar Nandam
2026-10-14 17:19 ` Mohammad Rafi Shaik [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=b2ba86cd-5eb2-40e6-af37-d6d44d244675@oss.qualcomm.com \
--to=mohammad.rafi.shaik@oss.qualcomm.com \
--cc=ajay.nandam@oss.qualcomm.com \
--cc=baojun.xu@ti.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kevin-lu@ti.com \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=sen@ti.com \
--cc=shengchao.guo@oss.qualcomm.com \
--cc=shenghao-ding@ti.com \
--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