diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-04 21:18:12 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-04 21:19:42 +0000 |
commit | 267f8fa2e1eef0612b2007e1f1846bcbc35cc1fa (patch) | |
tree | d585bfd8bd84a0389f60b9a7b1b8233ef933b7c7 /sound | |
parent | d1c3ed669a2d452cacfb48c2d171a1f364dae2ed (diff) | |
download | linux-stable-267f8fa2e1eef0612b2007e1f1846bcbc35cc1fa.tar.gz linux-stable-267f8fa2e1eef0612b2007e1f1846bcbc35cc1fa.tar.bz2 linux-stable-267f8fa2e1eef0612b2007e1f1846bcbc35cc1fa.zip |
ASoC: wm2000: Fix sense of speech clarity enable
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm2000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c index 1cbe88f01d63..12bcae63a7f0 100644 --- a/sound/soc/codecs/wm2000.c +++ b/sound/soc/codecs/wm2000.c @@ -209,9 +209,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); |