ASoC: ssm2602: Set initial bias level to standby
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 27 Sep 2011 09:08:47 +0000 (11:08 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 27 Sep 2011 10:21:40 +0000 (11:21 +0100)
Set the initial bias level to standby during CODEC probe instead of leaving the
CODEC powered off.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ssm2602.c

index 32d6c51..c9e0fdb 100644 (file)
@@ -577,7 +577,12 @@ static int ssm260x_probe(struct snd_soc_codec *codec)
                break;
        }
 
-       return ret;
+       if (ret)
+               return ret;
+
+       ssm2602_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
+
+       return 0;
 }
 
 /* remove everything here */