Commit 9ef2224d authored by Mark Brown's avatar Mark Brown Committed by Greg Kroah-Hartman

extcon: arizona: Stop microphone detection if we give up on it

There should be no point in continuing to try to detect a microphone any
more so stop doing so.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 325c6423
...@@ -196,6 +196,8 @@ static irqreturn_t arizona_micdet(int irq, void *data) ...@@ -196,6 +196,8 @@ static irqreturn_t arizona_micdet(int irq, void *data)
if (info->jack_flips >= info->micd_num_modes) { if (info->jack_flips >= info->micd_num_modes) {
dev_dbg(arizona->dev, "Detected headphone\n"); dev_dbg(arizona->dev, "Detected headphone\n");
info->detecting = false; info->detecting = false;
arizona_stop_mic(info);
ret = extcon_set_cable_state_(&info->edev, ret = extcon_set_cable_state_(&info->edev,
ARIZONA_CABLE_HEADPHONE, ARIZONA_CABLE_HEADPHONE,
true); true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment