From: sashiko-bot@kernel.org
To: "Mohammad Rafi Shaik" <mohammad.rafi.shaik@oss.qualcomm.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v8 8/9] ASoC: qcom: lpass-tx-macro: Add support for Hawi
Date: Mon, 30 Nov 2026 21:57:34 +0000 [thread overview]
Message-ID: <sashiko-outbox-242056@kernel.org> (raw)
In-Reply-To: <20261201-add_shikra_support-v8-8-5e56d0ad3810@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] ASoC: qcom: lpass-tx-macro: missing DAPM routes for
RX_SWR_MIC in v15 map
- [Low] ASoC: qcom: lpass-tx-macro: mixing __free() with goto in
tx_macro_probe()
- [Low] ASoC: qcom: lpass-tx-macro: inaccurate REGCACHE_MAPLE and lpr
clk changelog
--
commit ce335ab4043c37e515899654610f6ccb3e6a7f9d
Author: Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
ASoC: qcom: lpass-tx-macro: Add support for Hawi
This commit adds support for the Hawi (Bolero v4.0 / LPASS v15) TX macro,
including register defaults, regmap configuration, an optional lpr clock,
and v15-specific DAPM widgets and routes.
> Use REGCACHE_MAPLE
> for the TX macro regmap since the register defaults are sparse and the
> v4.0 layout extends the register range.
[Severity: Low]
This isn't a bug, but tx_regmap_config was already switched to
REGCACHE_MAPLE in commit 8ed9306885eb ("ASoC: codecs: lpass-tx-macro:
switch cache to REGCACHE_MAPLE") and is not changed here. Meanwhile, the
changelog does not mention adding support for the optional "lpr" clock.
> diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c
> index 45dd079683b05..9bb5b792e918e 100644
> --- a/sound/soc/codecs/lpass-tx-macro.c
> +++ b/sound/soc/codecs/lpass-tx-macro.c
[ ... ]
> @@ -2073,6 +2155,418 @@ static const struct snd_soc_dapm_route tx_audio_map_v9_2[] = {
> {"TX SMIC MUX7", "SWR_MIC11", "TX SWR_INPUT11"},
> };
>
> +static const char * const adc_mux_text_v9_3[] = {
> + "MSM_DMIC", "SWR_MIC", "ANC_FB_TUNE1", "RX_SWR_MIC"
> +};
[ ... ]
> +static const struct snd_soc_dapm_route tx_audio_map_v15[] = {
> + /* DEC0 */
> + {"TX DEC0 MUX", "SWR_MIC", "TX SMIC MUX0"},
> + {"TX SMIC MUX0", NULL, "TX_SWR_CLK"},
> + {"TX SMIC MUX0", "SWR_MIC0", "TX WSA MUX0"},
> + {"TX SMIC MUX0", "SWR_MIC1", "TX WSA MUX0"},
> + {"TX SMIC MUX0", "SWR_MIC2", "TX WSA MUX0"},
> + {"TX SMIC MUX0", "SWR_MIC3", "TX WSA MUX0"},
> + {"TX SMIC MUX0", "SWR_MIC4", "TX WSA MUX0"},
> + {"TX SMIC MUX0", "SWR_MIC5", "TX WSA MUX0"},
> + {"TX SMIC MUX0", "SWR_MIC6", "TX WSA MUX0"},
> + {"TX SMIC MUX0", "SWR_MIC7", "TX WSA MUX0"},
> + {"TX WSA MUX0", "NO_WSA", "TX PORT SEL MUX0"},
> + {"TX WSA MUX0", "WSA1", "TX PORT SEL MUX0"},
> + {"TX WSA MUX0", "WSA2", "TX PORT SEL MUX0"},
> + {"TX WSA MUX0", "WSA3", "TX PORT SEL MUX0"},
> + {"TX WSA MUX0", "WSA4", "TX PORT SEL MUX0"},
> + {"TX PORT SEL MUX0", "PORT0", "TX SWR_INPUT"},
> + {"TX PORT SEL MUX0", "PORT1", "TX SWR_INPUT"},
> + {"TX PORT SEL MUX0", "PORT2", "TX SWR_INPUT"},
> + {"TX PORT SEL MUX0", "PORT3", "TX SWR_INPUT"},
> + {"TX PORT SEL MUX0", "PORT4", "TX SWR_INPUT"},
[Severity: Medium]
Are DAPM routes for "RX_SWR_MIC" missing from tx_audio_map_v15[] for
TX DEC0 MUX through TX DEC7 MUX?
adc_mux_text_v9_3[] adds "RX_SWR_MIC" to the v15 decimator muxes, but
neither tx_audio_map[] nor tx_audio_map_v15[] connects an input route for
that control value. Selecting "RX_SWR_MIC" on any TX DECn MUX leaves the
mux without a connected DAPM input path, so the widget never powers up and
tx_macro_enable_dec() is never called.
[ ... ]
> @@ -2296,6 +2803,9 @@ static int tx_macro_probe(struct platform_device *pdev)
> struct device_node *np = dev->of_node;
> struct tx_macro *tx;
> void __iomem *base;
> + struct reg_default *reg_defaults __free(kfree) = NULL;
> + struct regmap_config *reg_config __free(kfree) = NULL;
> + size_t def_count;
> int ret, reg;
[ ... ]
> - tx->regmap = devm_regmap_init_mmio(dev, base, &tx_regmap_config);
> + reg_config = kmemdup(&tx_regmap_config, sizeof(*reg_config), GFP_KERNEL);
> + if (!reg_config) {
> + ret = -ENOMEM;
> + goto err;
> + }
[Severity: Low]
This isn't a bug, but tx_macro_probe() mixes __free(kfree) variables with
goto-based error handling, and declares reg_config as NULL at the top of
the function instead of defining and initializing it at its kmemdup() call
site. Per the cleanup.h conventions, it is preferred not to mix __free()
with goto unwinding in the same function, or to declare __free() variables
at their point of initialization when they have function scope.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-add_shikra_support-v8-0-5e56d0ad3810@oss.qualcomm.com?part=8
next prev parent reply other threads:[~2026-11-30 21:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 21:33 [PATCH v8 0/9] ASoC: qcom: Add shikra and Hawi LPASS macro support Mohammad Rafi Shaik
2026-11-30 21:33 ` [PATCH v8 1/9] ASoC: dt-bindings: qcom: Add Shikra RX and VA macro codecs Mohammad Rafi Shaik
2026-11-30 21:33 ` [PATCH v8 2/9] ASoC: qcom: lpass-macro-common: Add missing v2.9 version string Mohammad Rafi Shaik
2026-11-30 21:33 ` [PATCH v8 3/9] ASoC: qcom: lpass-rx-macro: Add shikra compatible Mohammad Rafi Shaik
2026-11-30 21:33 ` [PATCH v8 4/9] ASoC: qcom: lpass-va-macro: " Mohammad Rafi Shaik
2026-11-30 21:46 ` sashiko-bot
2026-11-30 21:34 ` [PATCH v8 5/9] ASoC: qcom: lpass-va-macro: Add SoundWire microphone support Mohammad Rafi Shaik
2026-11-30 21:47 ` sashiko-bot
2026-11-30 21:34 ` [PATCH v8 6/9] ASoC: dt-bindings: qcom: Add Hawi LPASS macro codecs Mohammad Rafi Shaik
2026-11-30 21:34 ` [PATCH v8 7/9] ASoC: dt-bindings: qcom: Add Maili " Mohammad Rafi Shaik
2026-11-30 21:34 ` [PATCH v8 8/9] ASoC: qcom: lpass-tx-macro: Add support for Hawi Mohammad Rafi Shaik
2026-11-30 21:57 ` sashiko-bot [this message]
2026-11-30 21:34 ` [PATCH v8 9/9] ASoC: qcom: lpass: " Mohammad Rafi Shaik
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=sashiko-outbox-242056@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mohammad.rafi.shaik@oss.qualcomm.com \
--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