On Mon, Jan 05, 2026 at 04:02:09AM +0100, Sebastian Krzyszkowiak via B4 Relay wrote:
> From: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
>
> If SYSCLK pin is enabled via DAPM, wm8962_configure_bclk may turn it off
> behind DAPM's back, making it assume that the clock is still enabled even
> if it actually isn't, which can end up with it not being enabled for
> playback or capture when it's needed.
>
> Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
> ---
> sound/soc/codecs/wm8962.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
> index 1040740fc80f..843b8c6b40a4 100644
> --- a/sound/soc/codecs/wm8962.c
> +++ b/sound/soc/codecs/wm8962.c
> @@ -2520,7 +2520,8 @@ static void wm8962_configure_bclk(struct snd_soc_component *component)
> usleep_range(500, 1000);
> dspclk = snd_soc_component_read(component, WM8962_CLOCKING1);
>
> - if (snd_soc_dapm_get_bias_level(dapm) != SND_SOC_BIAS_ON)
> + if (snd_soc_dapm_get_bias_level(dapm) != SND_SOC_BIAS_ON
> + && !snd_soc_dapm_get_pin_status(dapm, "SYSCLK"))
Something seems a little weird here. I guess SYSCLK is a supply
widget, so it can technically be on before the card bias level is
fully on. But SYSCLK usually supplies other widgets that would
require the bias to be fully on, so what causes it to be on? Or
is this a transitional state as things are powering up?
Thanks,
Charles