extcon: arizona: Declare 3-pole jack if we detect open circuit on mic
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 25 Jun 2015 15:47:02 +0000 (16:47 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 10 Aug 2015 02:48:56 +0000 (11:48 +0900)
commit57f70ef9bd19378b51a282be6b46b45b70d4980d
treebd15ae80140e9e9af9b7897328b66e0798d698ac
parent7eae43aeab27e8f65c0a2e31567fafcfc7aa4649
extcon: arizona: Declare 3-pole jack if we detect open circuit on mic

Detecting an open-circuit on the microphone pin, usually means the
headset has a microphone but the cable is faulty. Currently the code
will simply stop detecting and declare nothing in this situation. It is
better to declare this as headphones such that the user can still use
their headset as plain headphones even if the microphone is faulty.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c