Skip to content

Commit ac7614f

Browse files
charleskeepaxchanwoochoi
authored andcommitted
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: Charles Keepax <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent be87cb7 commit ac7614f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/extcon/extcon-arizona.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,11 +1154,11 @@ static irqreturn_t arizona_jackdet(int irq, void *data)
11541154
dev_err(arizona->dev, "Mechanical report failed: %d\n",
11551155
ret);
11561156

1157-
if (!arizona->pdata.hpdet_acc_id) {
1158-
info->detecting = true;
1159-
info->mic = false;
1160-
info->jack_flips = 0;
1157+
info->detecting = true;
1158+
info->mic = false;
1159+
info->jack_flips = 0;
11611160

1161+
if (!arizona->pdata.hpdet_acc_id) {
11621162
arizona_start_mic(info);
11631163
} else {
11641164
queue_delayed_work(system_power_efficient_wq,

0 commit comments

Comments
 (0)