Skip to content

Commit

Permalink
platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table
Browse files Browse the repository at this point in the history
Some platforms send the speaker-mute key from EC. dell-wmi can't
recognize it.

Add a new keymap for KEY_MUTE in type 0x0010 table.

Signed-off-by: Koba Ko <koba.ko@canonical.com>
Link: https://lore.kernel.org/r/20230117123436.200440-1-koba.ko@canonical.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  • Loading branch information
Koba Ko authored and Hans de Goede committed Jan 24, 2023
1 parent 2241ab5 commit 83bcf3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/platform/x86/dell/dell-wmi-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
{ KE_KEY, 0x57, { KEY_BRIGHTNESSDOWN } },
{ KE_KEY, 0x58, { KEY_BRIGHTNESSUP } },

/*Speaker Mute*/
{ KE_KEY, 0x109, { KEY_MUTE} },

/* Mic mute */
{ KE_KEY, 0x150, { KEY_MICMUTE } },

Expand Down

0 comments on commit 83bcf3e

Please sign in to comment.