]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: tlv320adcx140: don't use snd_soc_component_get_bias_level()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 20 Jan 2026 00:14:07 +0000 (00:14 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 26 Jan 2026 11:44:40 +0000 (11:44 +0000)
snd_soc_component_get_bias_level() will be removed.
Let's use snd_soc_dapm_get_bias_level() instead.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87o6mpqgxc.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320adcx140.c

index ac6aab8d722409b2c47b4e1df2a23760bebe795b..e4f27a734501f095d19fee8b5087697727bc04ef 100644 (file)
@@ -1188,8 +1188,8 @@ static int adcx140_set_bias_level(struct snd_soc_component *component,
                                  enum snd_soc_bias_level level)
 {
        struct adcx140_priv *adcx140 = snd_soc_component_get_drvdata(component);
-       enum snd_soc_bias_level prev_level
-               = snd_soc_component_get_bias_level(component);
+       struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);
+       enum snd_soc_bias_level prev_level = snd_soc_dapm_get_bias_level(dapm);
 
        switch (level) {
        case SND_SOC_BIAS_ON: