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 <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259458
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
huangys 2018-11-01 18:55:20 +08:00 • committed by Yuesheng Huang
commit 8d70153b28

View file

@ -63,8 +63,8 @@
static const unsigned int madera_cable[] = {
EXTCON_MECHANICAL,
EXTCON_JACK_MICROPHONE,
EXTCON_JACK_HEADPHONE,
EXTCON_JACK_MICROPHONE,
EXTCON_NONE,
};