From aad13807fddabc7cfe9ba5b7086174befb7917f1 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Wed, 12 Sep 2018 13:52:55 +0800 Subject: [PATCH] asoc: lahaina: Report correct key code of headset buttons Change-Id: I8ecc1609d929ac5a8d4d73711b15b4a741d910a3 --- techpack/audio/asoc/lahaina.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/techpack/audio/asoc/lahaina.c b/techpack/audio/asoc/lahaina.c index 6bb1bacc68f4..acf3a09b4cbb 100644 --- a/techpack/audio/asoc/lahaina.c +++ b/techpack/audio/asoc/lahaina.c @@ -1059,8 +1059,8 @@ static struct wcd_mbhc_config wcd_mbhc_cfg = { .swap_gnd_mic = NULL, .hs_ext_micbias = true, .key_code[0] = KEY_MEDIA, - .key_code[1] = BTN_1, - .key_code[2] = BTN_2, + .key_code[1] = KEY_VOLUMEUP, + .key_code[2] = KEY_VOLUMEDOWN, .key_code[3] = 0, .key_code[4] = 0, .key_code[5] = 0,