]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: TWL4030: Make sure, that the codec is powered on startup
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Mon, 2 Nov 2009 12:34:54 +0000 (14:34 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 2 Nov 2009 17:28:00 +0000 (17:28 +0000)
Set the codec->bias_level to SND_SOC_BIAS_OFF before changing
the initial bias level to STANDBY.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl4030.c

index f9121ef7fe5c867a7b61237b23e6601be769cc59..c0b47dfc3328878a3563e5ddcebf3b7bb4fcd90a 100644 (file)
@@ -2234,6 +2234,7 @@ static int __devinit twl4030_codec_probe(struct platform_device *pdev)
 
        /* Set the defaults, and power up the codec */
        twl4030_init_chip(codec);
+       codec->bias_level = SND_SOC_BIAS_OFF;
        twl4030_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
 
        ret = snd_soc_register_codec(codec);