From: Peter Ujfalusi Date: Fri, 11 Jan 2013 16:01:00 +0000 (+0100) Subject: ASoC: twl6040: Only set the bias_level once in twl6040_resume() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=156db9f3bb3c210cdf905172f6063c90c4a62c3c;p=linux-beck.git ASoC: twl6040: Only set the bias_level once in twl6040_resume() No need to set the bias_level twice to _STANDBY - since this is the only state the device could be at suspend time. The driver do not support idle_bias_off yet. Signed-off-by: Peter Ujfalusi Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index ef31ace41d53..86f12a498f38 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c @@ -1115,7 +1115,6 @@ static int twl6040_suspend(struct snd_soc_codec *codec) static int twl6040_resume(struct snd_soc_codec *codec) { twl6040_set_bias_level(codec, SND_SOC_BIAS_STANDBY); - twl6040_set_bias_level(codec, codec->dapm.suspend_bias_level); return 0; }