Commit ac7614fa authored by Charles Keepax's avatar Charles Keepax Committed by Chanwoo Choi

extcon: arizona: Clear jack status regardless of detection type

It makes sense to clear the internal state of the jack detection
regardless of if the headphone detect based accessory detection or
the normal microphone detect based flow is used.

No issues are currently known because of this but the change makes
more logical sense and eases future refactoring of the code.
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent be87cb72
...@@ -1154,11 +1154,11 @@ static irqreturn_t arizona_jackdet(int irq, void *data) ...@@ -1154,11 +1154,11 @@ static irqreturn_t arizona_jackdet(int irq, void *data)
dev_err(arizona->dev, "Mechanical report failed: %d\n", dev_err(arizona->dev, "Mechanical report failed: %d\n",
ret); ret);
if (!arizona->pdata.hpdet_acc_id) { info->detecting = true;
info->detecting = true; info->mic = false;
info->mic = false; info->jack_flips = 0;
info->jack_flips = 0;
if (!arizona->pdata.hpdet_acc_id) {
arizona_start_mic(info); arizona_start_mic(info);
} else { } else {
queue_delayed_work(system_power_efficient_wq, queue_delayed_work(system_power_efficient_wq,
......
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