From 8d70153b289f12980fcadd45266c76932304bbff Mon Sep 17 00:00:00 2001 From: huangys Date: Thu, 1 Nov 2018 18:55:20 +0800 Subject: [PATCH] extcon-madera: remove headphone firstly on plug out when the 4-pole headset unplug, APM will receive HEADSET remove event. then HADPHONE insert and remove event. this cause unnecessary audo route switch which lead music plyback stuck. if we change order of madera_cable array, we may remove headphone firstly. this can avoid this issue. Change-Id: Icf1af827a3364384b5bc63a8d10dde3a88d38986 Signed-off-by: huangys Reviewed-on: https://gerrit.mot.com/1259458 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- drivers/extcon/extcon-madera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-madera.c b/drivers/extcon/extcon-madera.c index 5306d1632dc8..d1ac701b5dfa 100644 --- a/drivers/extcon/extcon-madera.c +++ b/drivers/extcon/extcon-madera.c @@ -63,8 +63,8 @@ static const unsigned int madera_cable[] = { EXTCON_MECHANICAL, - EXTCON_JACK_MICROPHONE, EXTCON_JACK_HEADPHONE, + EXTCON_JACK_MICROPHONE, EXTCON_NONE, };