From 1d6b3e2a679f56ed7a1ff5aa7643f9e8c8a4e387 Mon Sep 17 00:00:00 2001 From: Dmitry Rokosov Date: Wed, 10 Jun 2026 13:12:26 +0300 Subject: ASoC: meson: t9015: replace idle_bias_off with idle_bias Commit 889dd56f8c03 ("ASoC: soc-dapm: tidyup idle_bias handling - step1") removed the idle_bias_off field from snd_soc_dapm_context and introduced the snd_soc_dapm_get_idle_bias() API as its replacement. Update the t9015 driver to use the new API accordingly. Signed-off-by: Dmitry Rokosov --- sound/soc/meson/t9015.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/meson/t9015.c b/sound/soc/meson/t9015.c index 22f7a8a9423a..ef5452576fa9 100644 --- a/sound/soc/meson/t9015.c +++ b/sound/soc/meson/t9015.c @@ -405,7 +405,7 @@ static int t9015_set_bias_level(struct snd_soc_component *component, switch (level) { case SND_SOC_BIAS_ON: - if (dapm->idle_bias_off) + if (!snd_soc_dapm_get_idle_bias(dapm)) snd_soc_component_update_bits(component, BLOCK_EN, BIAS_CURRENT_EN, BIAS_CURRENT_EN); @@ -413,8 +413,8 @@ static int t9015_set_bias_level(struct snd_soc_component *component, case SND_SOC_BIAS_PREPARE: snd_soc_component_update_bits(component, BLOCK_EN, BIAS_CURRENT_EN, - dapm->idle_bias_off ? 0 : - BIAS_CURRENT_EN); + snd_soc_dapm_get_idle_bias(dapm) ? + BIAS_CURRENT_EN : 0); break; case SND_SOC_BIAS_STANDBY: ret = regulator_enable(priv->avdd); @@ -436,7 +436,7 @@ static int t9015_set_bias_level(struct snd_soc_component *component, break; case SND_SOC_BIAS_OFF: - if (!dapm->idle_bias_off) + if (snd_soc_dapm_get_idle_bias(dapm)) snd_soc_component_update_bits(component, BLOCK_EN, BIAS_CURRENT_EN, 0); -- cgit v1.2.3