summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-15 22:28:32 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-03 12:42:39 -0700
commit305105a4c66b9add5561132bf3efbba3b34796eb (patch)
tree6c5b41866d1e1f8d273e0f105f5ea31c127d84a8
parent58adb574b85520b41aaf49385353eb6ede15586f (diff)
downloadlinux-stable-305105a4c66b9add5561132bf3efbba3b34796eb.tar.gz
linux-stable-305105a4c66b9add5561132bf3efbba3b34796eb.tar.bz2
linux-stable-305105a4c66b9add5561132bf3efbba3b34796eb.zip
ASoC: Fix shift in WM8958 accessory detection default implementation
commit b35e160a111aa9ae3fad6294e038be20d0da721b upstream. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--sound/soc/codecs/wm8994.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 7626bc293f20..89acb0f1c38a 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -3021,7 +3021,7 @@ static void wm8958_default_micdet(u16 status, void *data)
report = SND_JACK_MICROPHONE;
/* Everything else is buttons; just assign slots */
- if (status & 0x1c0)
+ if (status & 0x1c)
report |= SND_JACK_BTN_0;
done: