Skip to contentSkip to conversation

ASoC: Fix shift in WM8958 accessory detection default implementation

PATCH New Mark Brown 1 participant 1 message Jul 15, 2011

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Fix shift in WM8958 accessory detection default implementation

---
 sound/soc/codecs/wm8994.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8994.c +1 -1
index bc62b6e..bfb7e66 100644
@@ -2834,7 +2834,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:
Signature · 1 line
1.7.5.4