From: Dimitris Papastamos Date: Wed, 1 Dec 2010 09:38:55 +0000 (+0000) Subject: ASoC: WM8731: Fix incorrect mask for bypass path disable X-Git-Tag: v3.0~2537^2~9^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2062ea522bb58bb2aeee86d051b37136491ccd65;p=platform%2Fkernel%2Flinux-amlogic.git ASoC: WM8731: Fix incorrect mask for bypass path disable According to the datasheet the bypass path enable/disable is bit 3 therefore we need 0x8 and not 0x4. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 6313858..e725c09 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c @@ -526,7 +526,7 @@ static int wm8731_probe(struct snd_soc_codec *codec) snd_soc_update_bits(codec, WM8731_RINVOL, 0x100, 0); /* Disable bypass path by default */ - snd_soc_update_bits(codec, WM8731_APANA, 0x4, 0); + snd_soc_update_bits(codec, WM8731_APANA, 0x8, 0); snd_soc_add_controls(codec, wm8731_snd_controls, ARRAY_SIZE(wm8731_snd_controls));