]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ASoC: Disable WM8731 line bypass by default
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 19 Feb 2009 14:29:49 +0000 (14:29 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 19 Feb 2009 14:30:57 +0000 (14:30 +0000)
This avoids temporarily enabling the ouput stages during startup which
can cause audible effets in the output stages.

Reported-by: Fredrik RedgÄrd <rik@svep.se>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8731.c

index 4cac3195bfa361c714f1352ecf7e95bbc32d45d2..9e7ebcc2c491d559f69a3c12731233fd8fb35af2 100644 (file)
@@ -594,6 +594,10 @@ static int wm8731_register(struct wm8731_priv *wm8731)
        reg = wm8731_read_reg_cache(codec, WM8731_RINVOL);
        wm8731_write(codec, WM8731_RINVOL, reg & ~0x0100);
 
+       /* Disable bypass path by default */
+       reg = wm8731_read_reg_cache(codec, WM8731_APANA);
+       wm8731_write(codec, WM8731_APANA, reg & ~0x4);
+
        wm8731_codec = codec;
 
        ret = snd_soc_register_codec(codec);