diff options
author | Alex Hung <alex.hung@canonical.com> | 2016-06-05 21:46:11 -0400 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2016-06-08 16:01:34 -0400 |
commit | 48f67d62194952617dcade08194abc7f5cb3f50c (patch) | |
tree | 7862ea1478c6fab2275e1b90738561a85c3c8064 | |
parent | af8c34ce6ae32addda3788d54a7e340cad22516b (diff) |
ideapad_laptop: Add an event for mic mute hotkey
Newer ideapads support a new mic hotkey implemented via an ACPI
interface. This patch converts the mic mute event to a keycode
KEY_MICMUTE.
Signed-off-by: Alex Hung <alex.hung@canonical.com>
Acked-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r-- | drivers/platform/x86/ideapad-laptop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 4a23fbc66b71..d1a091b93192 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c | |||
@@ -567,6 +567,7 @@ static void ideapad_sysfs_exit(struct ideapad_private *priv) | |||
567 | static const struct key_entry ideapad_keymap[] = { | 567 | static const struct key_entry ideapad_keymap[] = { |
568 | { KE_KEY, 6, { KEY_SWITCHVIDEOMODE } }, | 568 | { KE_KEY, 6, { KEY_SWITCHVIDEOMODE } }, |
569 | { KE_KEY, 7, { KEY_CAMERA } }, | 569 | { KE_KEY, 7, { KEY_CAMERA } }, |
570 | { KE_KEY, 8, { KEY_MICMUTE } }, | ||
570 | { KE_KEY, 11, { KEY_F16 } }, | 571 | { KE_KEY, 11, { KEY_F16 } }, |
571 | { KE_KEY, 13, { KEY_WLAN } }, | 572 | { KE_KEY, 13, { KEY_WLAN } }, |
572 | { KE_KEY, 16, { KEY_PROG1 } }, | 573 | { KE_KEY, 16, { KEY_PROG1 } }, |
@@ -809,6 +810,7 @@ static void ideapad_acpi_notify(acpi_handle handle, u32 event, void *data) | |||
809 | break; | 810 | break; |
810 | case 13: | 811 | case 13: |
811 | case 11: | 812 | case 11: |
813 | case 8: | ||
812 | case 7: | 814 | case 7: |
813 | case 6: | 815 | case 6: |
814 | ideapad_input_report(priv, vpc_bit); | 816 | ideapad_input_report(priv, vpc_bit); |