Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342964
b: refs/heads/master
c: e874de4
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Dec 3, 2012
1 parent 3f73df2 commit 5dc8d6b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63dd54521f1d143fbc6584ace66ef264a7f867f7
refs/heads/master: e874de436f6c7ddbcca1e1fb7edd4d05ad274048
12 changes: 12 additions & 0 deletions trunk/sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -3755,6 +3755,18 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data)
trace_snd_soc_jack_irq(dev_name(codec->dev));
#endif

/* Avoid a transient report when the accessory is being removed */
if (wm8994->jackdet) {
reg = snd_soc_read(codec, WM1811_JACKDET_CTRL);
if (reg < 0) {
dev_err(codec->dev, "Failed to read jack status: %d\n",
reg);
} else if (!(reg & WM1811_JACKDET_LVL)) {
dev_dbg(codec->dev, "Ignoring removed jack\n");
return IRQ_HANDLED;
}
}

if (wm8994->mic_detecting)
wm8958_mic_id(codec, reg);
else
Expand Down

0 comments on commit 5dc8d6b

Please sign in to comment.