Commit 9dc2eacf authored by Alex Hung's avatar Alex Hung Committed by Stefan Bader

ideapad_laptop: Add an event for mic mute hotkey

BugLink: http://bugs.launchpad.net/bugs/1607153

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: default avatarAlex Hung <alex.hung@canonical.com>
Acked-by: default avatarIke Panhc <ike.pan@canonical.com>
Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
(cherry picked from commit 48f67d62)
Signed-off-by: default avatarAlex Hung <alex.hung@canonical.com>
Acked-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 2cfb3a0f
......@@ -563,6 +563,7 @@ static void ideapad_sysfs_exit(struct ideapad_private *priv)
static const struct key_entry ideapad_keymap[] = {
{ KE_KEY, 6, { KEY_SWITCHVIDEOMODE } },
{ KE_KEY, 7, { KEY_CAMERA } },
{ KE_KEY, 8, { KEY_MICMUTE } },
{ KE_KEY, 11, { KEY_F16 } },
{ KE_KEY, 13, { KEY_WLAN } },
{ KE_KEY, 16, { KEY_PROG1 } },
......@@ -805,6 +806,7 @@ static void ideapad_acpi_notify(acpi_handle handle, u32 event, void *data)
break;
case 13:
case 11:
case 8:
case 7:
case 6:
ideapad_input_report(priv, vpc_bit);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment