ASoC: Move bias level update to the core
All drivers have the same line at the end of the set_bias_level callback to
update the bias_level state. Move this update into
snd_soc_dapm_force_bias_level() and remove them from the drivers.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index b24782b..79b9478 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -550,6 +550,9 @@
if (dapm->set_bias_level)
ret = dapm->set_bias_level(dapm, level);
+ if (ret == 0)
+ dapm->bias_level = level;
+
return ret;
}
EXPORT_SYMBOL_GPL(snd_soc_dapm_force_bias_level);