ASoC: twl6040: Only set the bias_level once in twl6040_resume()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 11 Jan 2013 16:01:00 +0000 (17:01 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 11 Jan 2013 23:54:57 +0000 (23:54 +0000)
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 <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl6040.c

index ef31ace41d536c1319021663b109ed307fa0d31b..86f12a498f388b771f8f4da7fa744debf47e0ee2 100644 (file)
@@ -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;
 }