summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Rokosov <ddrokosov@salutedevices.com>2026-06-10 13:12:26 +0300
committerDmitry Rokosov <rockosov@rulkc.org>2026-08-13 14:41:35 +0300
commit1d6b3e2a679f56ed7a1ff5aa7643f9e8c8a4e387 (patch)
treea1aa9649a565b80fa226dc3ec1c9cc37d5c41ebd
parenta960255f6fe1219a923051400e0d8a1eec0d77e5 (diff)
downloadlinux-1d6b3e2a679f56ed7a1ff5aa7643f9e8c8a4e387.tar.gz
linux-1d6b3e2a679f56ed7a1ff5aa7643f9e8c8a4e387.zip
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 <rockosov@rulkc.org>
-rw-r--r--sound/soc/meson/t9015.c8
1 files 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);