From: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
To: Srinivas Kandagatla <srini@kernel.org>,
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>
Cc: linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
Subject: Re: [PATCH v6 v6 3/9] ASoC: qcom: lpass-rx-macro: Add shikra compatible
Date: Thu, 12 Nov 2026 15:39:18 +0530 [thread overview]
Message-ID: <27de4b46-4fdc-493a-abd2-f28f22ed6c4a@oss.qualcomm.com> (raw)
In-Reply-To: <c1dc47d0-676e-4b88-b904-34d193e61808@kernel.org>
On 11/9/2026 8:45 PM, Srinivas Kandagatla wrote:
>
>
> On 11/6/26 12:33 PM, Mohammad Rafi Shaik wrote:
>> Add shikra RX macro compatible data and hook it into the LPASS codec
>> v4.1 flow.
>>
>> The RX macro register layout of LPASS codec v4.1 matches the v2.5+
>> layout, so reuse the existing v2.5 register access helpers, controls
>> and widgets for it.
>>
>> v4.1 additionally requires the FS counter to be bypassed before it is
>> enabled during MCLK enable. This is a property of the codec version and
>> not of the board, so key it off the version detected by the VA macro
>> rather than off match data.
>>
>> Reviewed-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
>> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
>> ---
>> sound/soc/codecs/lpass-macro-common.h | 3 +++
>> sound/soc/codecs/lpass-rx-macro.c | 14 ++++++++++++++
>> 2 files changed, 17 insertions(+)
>>
>> diff --git a/sound/soc/codecs/lpass-macro-common.h b/sound/soc/codecs/lpass-macro-common.h
>> index 573b2145e1c4..b52665b11e35 100644
>> --- a/sound/soc/codecs/lpass-macro-common.h
>> +++ b/sound/soc/codecs/lpass-macro-common.h
>> @@ -30,6 +30,7 @@ enum lpass_codec_version {
>> LPASS_CODEC_VERSION_2_7,
>> LPASS_CODEC_VERSION_2_8,
>> LPASS_CODEC_VERSION_2_9,
>> + LPASS_CODEC_VERSION_4_1,
>> };
>> case LPASS_CODEC_VERSION_2_8:
>> + case LPASS_CODEC_VERSION_4_1:
>> rx->rxn_reg_stride = 0xc0;
>> rx->rxn_reg_stride2 = 0x0;
>> + rx->fs_cnt_bypass = (rx->codec_version == LPASS_CODEC_VERSION_4_1);
>
> This does not look great, can we move this to of data?
>
The FS control bypass is version-specific rather than SoC-specific. I
initially handled this through OF match data, but later moved it to the
codec-version check since the behavior depends on the codec version.
Best Regards,
Rafi.
> --srini
>
>> def_count = ARRAY_SIZE(rx_defaults) + ARRAY_SIZE(rx_2_5_defaults);
>> reg_defaults = kmalloc_objs(struct reg_default, def_count);
>> if (!reg_defaults)
>> @@ -3951,6 +3962,9 @@ static const struct of_device_id rx_macro_dt_match[] = {
>> }, {
>> .compatible = "qcom,sc8280xp-lpass-rx-macro",
>> .data = (void *)LPASS_MACRO_FLAG_HAS_NPL_CLOCK,
>> + }, {
>> + .compatible = "qcom,shikra-lpass-rx-macro",
>> + .data = (void *)LPASS_MACRO_FLAG_HAS_NPL_CLOCK,
>> },
>> { }
>> };
>>
>
next prev parent reply other threads:[~2026-11-12 10:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 12:32 [PATCH v6 0/9] ASoC: qcom: Add shikra and Hawi LPASS macro support Mohammad Rafi Shaik
2026-11-06 12:33 ` [PATCH v6 v6 1/9] ASoC: dt-bindings: qcom: Add Shikra RX and VA macro codecs Mohammad Rafi Shaik
2026-11-06 12:33 ` [PATCH v6 v6 2/9] ASoC: qcom: lpass-macro-common: Add missing v2.9 version string Mohammad Rafi Shaik
2026-11-06 12:33 ` [PATCH v6 v6 3/9] ASoC: qcom: lpass-rx-macro: Add shikra compatible Mohammad Rafi Shaik
2026-11-09 15:15 ` Srinivas Kandagatla
2026-11-12 10:09 ` Mohammad Rafi Shaik [this message]
2026-11-06 12:33 ` [PATCH v6 v6 4/9] ASoC: qcom: lpass-va-macro: " Mohammad Rafi Shaik
2026-11-11 1:20 ` Mark Brown
2026-11-12 10:17 ` Mohammad Rafi Shaik
2026-11-12 10:20 ` Mohammad Rafi Shaik
2026-11-06 12:33 ` [PATCH v6 v6 5/9] ASoC: qcom: lpass-va-macro: Add SoundWire microphone support Mohammad Rafi Shaik
2026-11-09 15:23 ` Srinivas Kandagatla
2026-11-06 12:33 ` [PATCH v6 v6 6/9] ASoC: dt-bindings: qcom: Add Hawi LPASS macro codecs Mohammad Rafi Shaik
2026-11-10 8:39 ` Krzysztof Kozlowski
2026-11-06 12:33 ` [PATCH v6 v6 7/9] ASoC: dt-bindings: qcom: Add Maili " Mohammad Rafi Shaik
2026-11-09 11:40 ` Krzysztof Kozlowski
2026-11-06 12:33 ` [PATCH v6 v6 8/9] ASoC: qcom: lpass-tx-macro: Add support for Bolero v4.0 Mohammad Rafi Shaik
2026-11-11 1:20 ` Mark Brown
2026-11-06 12:33 ` [PATCH v6 v6 9/9] ASoC: qcom: lpass: Add support for LPASS codec v4.0 Mohammad Rafi Shaik
2026-11-09 15:02 ` Srinivas Kandagatla
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=27de4b46-4fdc-493a-abd2-f28f22ed6c4a@oss.qualcomm.com \
--to=mohammad.rafi.shaik@oss.qualcomm.com \
--cc=ajay.nandam@oss.qualcomm.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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=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
all inboxes | Powered by JetHome®