summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);