From: Olaya, Margarita Date: Sat, 11 Dec 2010 03:05:46 +0000 (-0600) Subject: ASoC: twl6040: Restore bias level at resume X-Git-Tag: MMI-PSA29.97-13-9~16612^2~1226^2~144^2^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c311041c1d3d0b9d1fc6ddacd49e50d83ba158a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: twl6040: Restore bias level at resume This patch restores the CODEC bias level at resume(). Signed-off-by: Margarita Olaya Cabrera Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index b575fd3ba3fb..3973bf6889c0 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c @@ -1097,6 +1097,7 @@ static int twl6040_suspend(struct snd_soc_codec *codec, pm_message_t state) 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; }