path: root/sound/soc/codecs/rt5677.c
diff options
authorLars-Peter Clausen <>2015-04-27 22:13:24 +0200
committerMark Brown <>2015-04-27 21:34:45 +0100
commitbd1204cb51f15d202f95222e873a94ed5d07b784 (patch)
tree1613bc56de735f9b572c9eb579c999439fed4d3f /sound/soc/codecs/rt5677.c
parentfa880775ab0d5a8d540972f7b6800fad1af16b75 (diff)
ASoC: Route all bias level updates through the core
Use the new snd_soc_codec_force_bias_level() helper function to invoke the bias_level callback of a driver instead of calling the callback by hand. Currently the effect of this is the same, but having all bias level updates go through a central place will allow us to move more of the bias level management into the DAPM core. Signed-off-by: Lars-Peter Clausen <> Signed-off-by: Mark Brown <>
Diffstat (limited to 'sound/soc/codecs/rt5677.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index af182586712d..ba408ad23457 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -4618,7 +4618,7 @@ static int rt5677_probe(struct snd_soc_codec *codec)
- rt5677_set_bias_level(codec, SND_SOC_BIAS_OFF);
+ snd_soc_codec_force_bias_level(codec, SND_SOC_BIAS_OFF);
regmap_write(rt5677->regmap, RT5677_DIG_MISC, 0x0020);
regmap_write(rt5677->regmap, RT5677_PWR_DSP2, 0x0c00);