mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
ANDROID: GKI: ASoC: jack: Fix buttons enum value
Microphone2 and SND_JACK_BTN_5 enum are same, resulting in SND_JACK_BTN_5 event getting triggered when ANC headset is plugged into the device. Use unique values in sound jack type enum. Test: build Bug: 151372815 Change-Id: I668e50afcad11b1f62f511f4241f79bad858c7d2 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org> (cherry picked from commit ce59edee66bf7ce6ea7d0baee51c2cbd18685521) Signed-off-by: Hridya Valsaraju <hridya@google.com>
This commit is contained in:
committed by
Hridya Valsaraju
parent
98a387cdfe
commit
eac5d88e91
@@ -66,12 +66,12 @@ enum snd_jack_types {
|
||||
SND_JACK_MICROPHONE2,
|
||||
|
||||
/* Kept separate from switches to facilitate implementation */
|
||||
SND_JACK_BTN_0 = 0x4000,
|
||||
SND_JACK_BTN_1 = 0x2000,
|
||||
SND_JACK_BTN_2 = 0x1000,
|
||||
SND_JACK_BTN_3 = 0x0800,
|
||||
SND_JACK_BTN_4 = 0x0400,
|
||||
SND_JACK_BTN_5 = 0x0200,
|
||||
SND_JACK_BTN_0 = 0x8000,
|
||||
SND_JACK_BTN_1 = 0x4000,
|
||||
SND_JACK_BTN_2 = 0x2000,
|
||||
SND_JACK_BTN_3 = 0x1000,
|
||||
SND_JACK_BTN_4 = 0x0800,
|
||||
SND_JACK_BTN_5 = 0x0400,
|
||||
};
|
||||
|
||||
struct snd_jack {
|
||||
|
||||
Reference in New Issue
Block a user