From: sashiko-bot@kernel.org
To: "Rafael Diniz" <rafael@riseup.net>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH v5] ASoC: wm8731: activate the interface after the inputs, before the outputs
Date: Fri, 04 Dec 2026 21:11:34 +0000 [thread overview]
Message-ID: <sashiko-outbox-250680@kernel.org> (raw)
In-Reply-To: <20261204205446.2564033-1-rafael@riseup.net>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] ASoC: wm8731: wm8731_converters_event() always powers both
ADC and DAC
--
commit 3a21f7d89c4cd04bdd9a8f2d6aa51fb8fa79dcf4
Author: Rafael Diniz <rafael@riseup.net>
ASoC: wm8731: activate the interface after the inputs, before the outputs
This commit replaces the ACTIVE DAPM supply widget with a shared
Converters supply that powers both the ADC and DAC before activating the
digital audio interface, and moves OUTPD to a separate Outputs widget so
the interface activates before the outputs power up.
Link: https://github.com/raspberrypi/linux/issues/7776
> diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
> index f22f57b05ff27..b19f7b106f5a6 100644
> --- a/sound/soc/codecs/wm8731.c
> +++ b/sound/soc/codecs/wm8731.c
> @@ -167,18 +167,105 @@ SOC_DAPM_SINGLE("HiFi Playback Switch", WM8731_APANA, 4, 1, 0),
[ ... ]
> +#define WM8731_PWR_CONVERTERS (WM8731_PWR_ADCPD | WM8731_PWR_DACPD)
[ ... ]
> +static int wm8731_converters_event(struct snd_soc_dapm_widget *w,
> + struct snd_kcontrol *kcontrol, int event)
> +{
> + struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
> +
> + switch (event) {
> + case SND_SOC_DAPM_PRE_PMU:
> + snd_soc_component_update_bits(component, WM8731_PWR,
> + WM8731_PWR_CONVERTERS, 0);
> + break;
[Severity: Medium]
As reported by Mark Brown on v3 [1], should single-direction streams
unconditionally power up both the ADC and DAC?
Because Converters supplies both widgets in wm8731_intercon, clearing
WM8731_PWR_CONVERTERS powers the unused converter on every playback-only
or capture-only stream, regressing active power draw even on
playback-only platforms like sound/soc/atmel/sam9g20_wm8731.c.
Could the converters stay independently controlled when the codec is in
clock-consumer mode?
[1] https://lore.kernel.org/r/179605768224.253439.5326941105161680687.b4-review@b4
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204205446.2564033-1-rafael@riseup.net?part=1
prev parent reply other threads:[~2026-12-04 21:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 20:54 [PATCH v5] ASoC: wm8731: activate the interface after the inputs, before the outputs Rafael Diniz
2026-12-04 21:11 ` sashiko-bot [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=sashiko-outbox-250680@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=rafael@riseup.net \
--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