]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: wm2000: Fix sense of speech clarity enable
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 4 Jan 2013 21:18:12 +0000 (21:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:44:04 +0000 (08:44 -0800)
commit 267f8fa2e1eef0612b2007e1f1846bcbc35cc1fa upstream.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/wm2000.c

index a3b9cbb20ee9bc07ca849fbe4f7af593048da9c8..ba03dc2018b6ba865ba5fee750cc9ee4008d949c 100644 (file)
@@ -224,9 +224,9 @@ static int wm2000_power_up(struct i2c_client *i2c, int analogue)
 
        ret = wm2000_read(i2c, WM2000_REG_SPEECH_CLARITY);
        if (wm2000->speech_clarity)
-               ret &= ~WM2000_SPEECH_CLARITY;
-       else
                ret |= WM2000_SPEECH_CLARITY;
+       else
+               ret &= ~WM2000_SPEECH_CLARITY;
        wm2000_write(i2c, WM2000_REG_SPEECH_CLARITY, ret);
 
        wm2000_write(i2c, WM2000_REG_SYS_START0, 0x33);