[RAMEN9610-14248] [9610] extcon: madera: Changed the order of the jack detection...
authorShinHyung <s47.kang@samsung.com>
Mon, 8 Apr 2019 02:40:58 +0000 (11:40 +0900)
committerhskang <hs1218.kang@samsung.com>
Sun, 21 Apr 2019 09:10:10 +0000 (18:10 +0900)
-Problem: Disconnecting the headset during music playback causes noise.

-Reason:  The problem is caused by the difference between the Audio Codec jack detection reporting
and the implementation of the Android wiredaccessary manager.

-Solution: Changed the order of the jack detection event reporting.

Change-Id: Ifc1cbfdac3abe199f2740135d31669cbc6241a18
Signed-off-by: ShinHyung <s47.kang@samsung.com>
drivers/extcon/extcon-madera.c

index 4c05f1dbbfa8933ad6b54f94cd4574d2f5bffeee..446fcf202796d139679f4a082f8ec700ce7a9553 100644 (file)
@@ -60,8 +60,8 @@
 
 static const unsigned int madera_cable[] = {
        EXTCON_MECHANICAL,
-       EXTCON_JACK_MICROPHONE,
        EXTCON_JACK_HEADPHONE,
+       EXTCON_JACK_MICROPHONE,
        EXTCON_JACK_LINE_OUT,
        EXTCON_NONE,
 };