From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796418695; b=ok5k8nmYBBvYQ9yfRjkN3yJ5BEv4KL3Np+Bbjl5//SJUV6V15smFxlK8zrx8CbNDw1B9 hAWd9dwhtZCTVr7TDFYAk/VyjVxNcxEqUb/rxbuSv+Lk0vFDm0t49C8ehzshNRYAHMb14 ijuDEyxxSiEWzy9uuFxac7DZTUqqhyurqUXacpFc/1yj9pbA8BY26NDR6gWU0wbTLggR0 zHGIznoc3mpVYlK5cWeoTJqUjz445rRc5nSF4tnEPJVzTrZ1oB0FfF9bE/G77dTEuUvLj yKg6cg2WbJIzPeTalSPEfuIxv0vWtxLveoOTHHGDteDKBBPOqlNAJK/IEi1v/ndiekg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796418695; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=5pGd8c+TKu8rotNWNtt+/ByTazuHFLWIFwNv6Zimf6s=; b=0Yt7zCfBs/z9l1eOKjIT6PVb+UIUa5G2zzOh1S9MgMqBjti4Wfa8ne9IKrhoqY4fnBdM 9vbe3/2ltkg2iDp+hMPYwZg2iqZB8PEvSrpV2g2W09jIfTG4hPGY19eRG9M4O3RI3Jjms uosHrRritU3Hxud9Nn5zf6zsBipXsA4Hm1YZV1pNpI698A44BzlhBqnKSIrIgZ8am2OVY 4E8U1L2I5b6hvgQKNSlIwxCUrO090PuHR82fPJlVNtsgv+SmncMRaC1C/jNM2uYnOgCeY Iq0IRyWarilAS+5aESu5zQv5cK/EQjxDVlMvvqvYhPYrqQDJWd+xCfmmIxi3lnspaPg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eRu2CS7j; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 936DF606A322 for ; Fri, 4 Dec 2026 21:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eRu2CS7j Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25A3E1F00936; Fri, 4 Dec 2026 21:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796418695; bh=5pGd8c+TKu8rotNWNtt+/ByTazuHFLWIFwNv6Zimf6s=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=eRu2CS7jOU8ZWTKUSa03ftGkxfeRwWZPRnSRzjAWKIzgxfpHJ2Q1q/GK/1vofnDH8 iUSaGtnrgWu0q3LO1Q2JXiEA3ZoGDUI90Lqb85+mrlF6zLFf+goYhfnCdND1HnJSbC z1TLYLcblEyE8TjyXXP7YICU3zIXp8dR6jDVKdMVoXlz/d53bFp54wNNnfu8j3lM/8 UjAEjc+hlT703e2Z4OAy1MnzuitXG63utmefw5QuOGoVALREuBkDkhCcCFqK0h+Niv 5Ll98mSg3Nve3/b9L69/HsXAe84HL09HHTiKhCUEZszovu7S466xtOS6A+SIAYICKj QrnltbaO+vrWQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5] ASoC: wm8731: activate the interface after the inputs, before the outputs Reply-To: sashiko-reviews@lists.linux.dev To: "Rafael Diniz" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261204205446.2564033-1-rafael@riseup.net> References: <20261204205446.2564033-1-rafael@riseup.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 21:11:34 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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_APA= NA, 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 =3D snd_soc_dapm_to_component(w->da= pm); > + > + 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-re= view@b4 --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204205446.2564= 033-1-rafael@riseup.net?part=3D1