From: sashiko-bot@kernel.org
To: "Richard Fitzgerald" <rf@opensource.cirrus.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH RESEND 1/4] ASoC: cs35l56: Remove SDW1 TX source controls and widgets
Date: Wed, 25 Nov 2026 11:29:54 +0000 [thread overview]
Message-ID: <sashiko-outbox-233248@kernel.org> (raw)
In-Reply-To: <20261125110853.741337-2-rf@opensource.cirrus.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] ASoC: cs35l56: missing volatile marking for DP3 input regs
--
commit b3ae50f49f263d1a4523d5cee3a2aa7287b0ace9
Author: Richard Fitzgerald <rf@opensource.cirrus.com>
ASoC: cs35l56: Remove SDW1 TX source controls and widgets
This commit removes the ALSA controls, mux widgets, and regmap default/patch
entries for the SoundWire DP3 mixer source registers, and connects the SDW1
Capture DAI to a dummy siggen source.
> diff --git a/sound/soc/codecs/cs35l56-shared.c b/sound/soc/codecs/cs35l56-shared.c
> index 4d76f17779272..073f7bdd3b0d4 100644
> --- a/sound/soc/codecs/cs35l56-shared.c
> +++ b/sound/soc/codecs/cs35l56-shared.c
> @@ -49,14 +49,6 @@ int cs35l56_set_asp_defaults(struct cs35l56_base *cs35l56_base)
> EXPORT_SYMBOL_NS_GPL(cs35l56_set_asp_defaults, "SND_SOC_CS35L56_SHARED");
>
> static const struct reg_sequence cs35l56_patch[] = {
> - /*
> - * Firmware can change these to non-defaults to satisfy SDCA.
> - * Ensure that they are at known defaults.
> - */
> - { CS35L56_SWIRE_DP3_CH1_INPUT, 0x00000018 },
> - { CS35L56_SWIRE_DP3_CH2_INPUT, 0x00000019 },
> - { CS35L56_SWIRE_DP3_CH3_INPUT, 0x00000029 },
> - { CS35L56_SWIRE_DP3_CH4_INPUT, 0x00000028 },
> { CS35L56_IRQ1_MASK_18, 0x1f7df0ff },
> };
>
> @@ -105,10 +97,6 @@ int cs35l56_set_patch(struct cs35l56_base *cs35l56_base)
> EXPORT_SYMBOL_NS_GPL(cs35l56_set_patch, "SND_SOC_CS35L56_SHARED");
>
> static const struct reg_default cs35l56_reg_defaults[] = {
> - { CS35L56_SWIRE_DP3_CH1_INPUT, 0x00000018 },
> - { CS35L56_SWIRE_DP3_CH2_INPUT, 0x00000019 },
> - { CS35L56_SWIRE_DP3_CH3_INPUT, 0x00000029 },
> - { CS35L56_SWIRE_DP3_CH4_INPUT, 0x00000028 },
> { CS35L56_IRQ1_MASK_1, 0x83ffffff },
> { CS35L56_IRQ1_MASK_2, 0xffff7fff },
> { CS35L56_IRQ1_MASK_4, 0xe0ffffff },
> @@ -121,10 +109,6 @@ static const struct reg_default cs35l56_reg_defaults[] = {
> };
>
> static const struct reg_default cs35l63_reg_defaults[] = {
> - { CS35L56_SWIRE_DP3_CH1_INPUT, 0x00000018 },
> - { CS35L56_SWIRE_DP3_CH2_INPUT, 0x00000019 },
> - { CS35L56_SWIRE_DP3_CH3_INPUT, 0x00000029 },
> - { CS35L56_SWIRE_DP3_CH4_INPUT, 0x00000028 },
> { CS35L56_IRQ1_MASK_1, 0x8003ffff },
> { CS35L56_IRQ1_MASK_2, 0xffff7fff },
> { CS35L56_IRQ1_MASK_4, 0xe0ffffff },
[Severity: Medium]
Should CS35L56_SWIRE_DP3_CH1_INPUT through CS35L56_SWIRE_DP3_CH4_INPUT also
be added to cs35l56_common_volatile_reg() alongside the other
firmware-owned mixer input registers (CS35L56_DACPCM1_INPUT,
CS35L56_DSP1RX1_INPUT, etc.)?
These four registers remain listed in cs35l56_readable_reg(). If they are
read through regmap (for example via regmap debugfs), _regmap_read() caches
the values in the REGCACHE_MAPLE tree. Because they are no longer in
cs35l56_reg_defaults[] or cs35l63_reg_defaults[], regcache_reg_needs_sync()
treats any cached entry without a reg_default as needing sync, so
regcache_sync() in cs35l56_runtime_resume_common() or cs35l56_init() will
write the stale cached values back to the firmware-owned registers.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125110853.741337-1-rf@opensource.cirrus.com?part=1
next prev parent reply other threads:[~2026-11-25 11:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 11:08 [PATCH RESEND 0/4] ASoC: cs35l56: Prepare for SDCA Companion Amp Richard Fitzgerald
2026-11-25 11:08 ` [PATCH RESEND 1/4] ASoC: cs35l56: Remove SDW1 TX source controls and widgets Richard Fitzgerald
2026-11-25 11:29 ` sashiko-bot [this message]
2026-11-25 11:08 ` [PATCH RESEND 2/4] ASoC: cs35l56: Rename the DP3 DAI to cs35l56-ot127 Richard Fitzgerald
2026-11-25 11:08 ` [PATCH RESEND 3/4] ASoC: cs35l56: Eliminate trivial regmap patch Richard Fitzgerald
2026-11-25 11:08 ` [PATCH RESEND 4/4] ASoC: cs35l56: Add test that probe() doesn't write SDW mux registers Richard Fitzgerald
2026-11-25 11:20 ` sashiko-bot
2026-11-25 11:24 ` Richard Fitzgerald
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-233248@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=rf@opensource.cirrus.com \
--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