Skip to content

Commit

Permalink
ASoC: wm8994: Report any low impedance accessory as a headphone
Browse files Browse the repository at this point in the history
Report any accessory with a low impedance as a headphone, previously
anything other than a short or microphone would not be reported at all.
The most likely reason is a microphone with incorrect polarity.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jan 26, 2012
1 parent d7b3557 commit 7c08b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -3089,7 +3089,7 @@ static void wm8958_default_micdet(u16 status, void *data)
}


if (wm8994->mic_detecting && status & 0x4) {
if (wm8994->mic_detecting && status & 0xfc) {
dev_dbg(codec->dev, "Detected headphone\n");
wm8994->mic_detecting = false;

Expand Down

0 comments on commit 7c08b51

Please sign in to comment.