From: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
To: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>,
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,
Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>,
Sarath Ganapathiraju <sarath.ganapathiraju@oss.qualcomm.com>,
ajay.nandam@oss.qualcomm.com
Subject: Re: [PATCH v4 7/8] ASoC: qcom: lpass-tx-macro: Add support for Bolero v4.0
Date: Fri, 25 Sep 2026 15:52:45 +0530 [thread overview]
Message-ID: <2c37b9fa-9810-482d-8ca3-67072a0f9072@oss.qualcomm.com> (raw)
In-Reply-To: <20260922-add_shikra_support-v1-7-6c6cb6444caf@oss.qualcomm.com>
On 9/22/2026 3:12 PM, Mohammad Rafi Shaik wrote:
> From: Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
>
> Hawi integrates the Bolero v4.0 TX macro, which extends the v9.x TX
> macro with a port-select stage in the SWR microphone input path and an
> adaptive filter (ADPT) block.
>
> Add the additional CFG2 mux registers and per-path CFG2 registers to the
> register map, extend the maximum register offset to cover the new ADPT
> control register, and describe the new v4.0 decimator, SWR microphone,
> WSA and port-select mux widgets and their routes.
>
> The ADPT block has to be disabled before a decimator is enabled. This
> register only exists on v4.0, so gate the write on a has_adpt flag set
> from the match data rather than issuing it unconditionally.
>
> Add the "qcom,hawi-lpass-tx-macro" compatible and its match data to
> select the new widgets and routes.
>
> Co-developed-by: Sarath Ganapathiraju <sarath.ganapathiraju@oss.qualcomm.com>
> Signed-off-by: Sarath Ganapathiraju <sarath.ganapathiraju@oss.qualcomm.com>
> Signed-off-by: Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
> ---
> sound/soc/codecs/lpass-macro-common.h | 1 +
> sound/soc/codecs/lpass-tx-macro.c | 442 +++++++++++++++++++++++++++++++++-
> 2 files changed, 442 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/codecs/lpass-macro-common.h b/sound/soc/codecs/lpass-macro-common.h
> index b52665b11e35..707b22a6bda6 100644
> --- a/sound/soc/codecs/lpass-macro-common.h
> +++ b/sound/soc/codecs/lpass-macro-common.h
> @@ -16,6 +16,7 @@ enum lpass_version {
> LPASS_VER_9_2_0,
> LPASS_VER_10_0_0,
> LPASS_VER_11_0_0,
> + LPASS_VER_15_0_0,
> };
>
> enum lpass_codec_version {
> diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c
> index 6deaaabe43af..b1eee16e968c 100644
> --- a/sound/soc/codecs/lpass-tx-macro.c
> +++ b/sound/soc/codecs/lpass-tx-macro.c
> @@ -67,6 +67,14 @@
> #define CDC_TX_INP_MUX_ADC_MUX6_CFG1 (0x0134)
> #define CDC_TX_INP_MUX_ADC_MUX7_CFG0 (0x0138)
> #define CDC_TX_INP_MUX_ADC_MUX7_CFG1 (0x013C)
> +#define CDC_TX_INP_MUX_ADC_MUX0_CFG2 (0x0140)
> +#define CDC_TX_INP_MUX_ADC_MUX1_CFG2 (0x0144)
> +#define CDC_TX_INP_MUX_ADC_MUX2_CFG2 (0x0148)
> +#define CDC_TX_INP_MUX_ADC_MUX3_CFG2 (0x014C)
> +#define CDC_TX_INP_MUX_ADC_MUX4_CFG2 (0x0150)
> +#define CDC_TX_INP_MUX_ADC_MUX5_CFG2 (0x0154)
> +#define CDC_TX_INP_MUX_ADC_MUX6_CFG2 (0x0158)
> +#define CDC_TX_INP_MUX_ADC_MUX7_CFG2 (0x015C)
> #define CDC_TX_ANC0_CLK_RESET_CTL (0x0200)
> #define CDC_TX_ANC0_MODE_1_CTL (0x0204)
> #define CDC_TX_ANC0_MODE_2_CTL (0x0208)
> @@ -108,6 +116,16 @@
> #define CDC_TX0_TX_PATH_SEC5 (0x0424)
> #define CDC_TX0_TX_PATH_SEC6 (0x0428)
> #define CDC_TX0_TX_PATH_SEC7 (0x042C)
> +#define CDC_TX0_TX_PATH_CFG2 (0x0430)
> +#define CDC_TX1_TX_PATH_CFG2 (0x04B0)
> +#define CDC_TX2_TX_PATH_CFG2 (0x0530)
> +#define CDC_TX3_TX_PATH_CFG2 (0x05B0)
> +#define CDC_TX4_TX_PATH_CFG2 (0x0630)
> +#define CDC_TX5_TX_PATH_CFG2 (0x06B0)
> +#define CDC_TX6_TX_PATH_CFG2 (0x0730)
> +#define CDC_TX7_TX_PATH_CFG2 (0x07B0)
> +#define CDC_ADPT0_ADPT_CTRL (0x0800)
> +
> #define CDC_TX0_MBHC_CTL_EN_MASK BIT(6)
> #define CDC_TX1_TX_PATH_CTL (0x0480)
> #define CDC_TX1_TX_PATH_CFG0 (0x0484)
> @@ -186,7 +204,7 @@
> #define CDC_TX7_TX_PATH_SEC4 (0x07A0)
> #define CDC_TX7_TX_PATH_SEC5 (0x07A4)
> #define CDC_TX7_TX_PATH_SEC6 (0x07A8)
> -#define TX_MAX_OFFSET (0x07A8)
> +#define TX_MAX_OFFSET (CDC_ADPT0_ADPT_CTRL)
>
These registers look v4.0-specific from the commit message, but
TX_MAX_OFFSET, tx_defaults[] and tx_is_rw_register() are updated in the
shared regmap configuration used by all TX macro variants.
The explicit CDC_ADPT0_ADPT_CTRL write is gated with has_adpt, but
regcache_sync() can still sync the new default registers on older
non-v4.0 hardware because the regmap config/default table is shared.
Should this use a v4.0-specific regmap_config/default table, similar to
the VA macro, or are the CFG2/ADPT registers guaranteed to be
harmless/present on all TX macro variants?
> #define TX_MACRO_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\
next prev parent reply other threads:[~2026-09-25 10:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 9:42 [PATCH v4 0/8] ASoC: qcom: Add shikra and Hawi LPASS macro support Mohammad Rafi Shaik
2026-09-22 9:42 ` [PATCH v4 1/8] ASoC: dt-bindings: qcom: Add Shikra RX and VA macro codecs Mohammad Rafi Shaik
2026-09-23 8:42 ` Krzysztof Kozlowski
2026-09-22 9:42 ` [PATCH v4 2/8] ASoC: qcom: lpass-macro-common: Add missing v2.9 version string Mohammad Rafi Shaik
2026-09-24 5:43 ` Ajay Kumar Nandam
2026-09-22 9:42 ` [PATCH v4 3/8] ASoC: qcom: lpass-rx-macro: Add shikra compatible Mohammad Rafi Shaik
2026-09-24 6:14 ` Ajay Kumar Nandam
2026-09-22 9:42 ` [PATCH v4 4/8] ASoC: qcom: lpass-va-macro: " Mohammad Rafi Shaik
2026-09-25 7:23 ` Ajay Kumar Nandam
2026-09-22 9:42 ` [PATCH v4 5/8] ASoC: qcom: lpass-va-macro: Add SoundWire microphone support Mohammad Rafi Shaik
2026-09-25 9:21 ` Ajay Kumar Nandam
2026-09-22 9:42 ` [PATCH v4 6/8] ASoC: dt-bindings: qcom: Add Hawi LPASS macro codecs Mohammad Rafi Shaik
2026-09-22 9:42 ` [PATCH v4 7/8] ASoC: qcom: lpass-tx-macro: Add support for Bolero v4.0 Mohammad Rafi Shaik
2026-09-22 15:49 ` Mark Brown
2026-09-25 10:22 ` Ajay Kumar Nandam [this message]
2026-09-22 9:42 ` [PATCH v4 8/8] ASoC: qcom: lpass: Add support for LPASS codec v4.0 Mohammad Rafi Shaik
2026-09-25 11:02 ` Ajay Kumar Nandam
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=2c37b9fa-9810-482d-8ca3-67072a0f9072@oss.qualcomm.com \
--to=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=mohammad.rafi.shaik@oss.qualcomm.com \
--cc=perex@perex.cz \
--cc=prasad.kumpatla@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sarath.ganapathiraju@oss.qualcomm.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
all inboxes | Powered by JetHome®