From: Mark Brown Date: Fri, 15 Jul 2011 13:28:32 +0000 (+0900) Subject: ASoC: Fix shift in WM8958 accessory detection default implementation X-Git-Tag: v2.6.39.4~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=305105a4c66b9add5561132bf3efbba3b34796eb;p=thirdparty%2Fkernel%2Fstable.git ASoC: Fix shift in WM8958 accessory detection default implementation commit b35e160a111aa9ae3fad6294e038be20d0da721b upstream. Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 7626bc293f20d..89acb0f1c38a9 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: