diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-26 18:33:24 +0000 | 
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-26 18:41:03 +0000 | 
| commit | 7c08b51f2fbb76b768d78ca6b0e13155d2c1e811 (patch) | |
| tree | c44dc8f8fb1e7fb30fc0b3d9a54b18e5af9f0b35 /sound | |
| parent | d7b3557077ee1620fbc290e5577bbb7d65063ab1 (diff) | |
| download | olio-linux-3.10-7c08b51f2fbb76b768d78ca6b0e13155d2c1e811.tar.xz olio-linux-3.10-7c08b51f2fbb76b768d78ca6b0e13155d2c1e811.zip  | |
ASoC: wm8994: Report any low impedance accessory as a headphone
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>
Diffstat (limited to 'sound')
| -rw-r--r-- | sound/soc/codecs/wm8994.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index b047bfada70..11ca19b72d7 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -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;  |