summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-04 21:18:12 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 08:50:54 -0800
commit4548554e7ca5192d5905a11219afb7de439b17d8 (patch)
tree1e25cb87eef1162aa4ac5701e3f49cdc9be9d29a /sound
parent48f678d27107d31f2ec9ac9c6230883dfaebccb1 (diff)
downloadlinux-3.10-4548554e7ca5192d5905a11219afb7de439b17d8.tar.gz
linux-3.10-4548554e7ca5192d5905a11219afb7de439b17d8.tar.bz2
linux-3.10-4548554e7ca5192d5905a11219afb7de439b17d8.zip
ASoC: wm2000: Fix sense of speech clarity enable
commit 267f8fa2e1eef0612b2007e1f1846bcbc35cc1fa upstream. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm2000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c
index ae6f26f25a6..bb9f0703748 100644
--- a/sound/soc/codecs/wm2000.c
+++ b/sound/soc/codecs/wm2000.c
@@ -190,9 +190,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);