Skip to content

Commit 8efeacc

Browse files
rmscgregkh
authored andcommitted
platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys
commit 36e66be874a7ea9d28fb9757629899a8449b8748 upstream. The scancodes for the Mic Mute and Airplane keys on the Ideapad Pro 5 (14AHP9 at least, probably the other variants too) are different and were not being picked up by the driver. This adds them to the keymap. Apart from what is already supported, the remaining fn keys are unfortunately producing windows-specific key-combos. Signed-off-by: Renato Caldas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: WangYuli <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 034ebe0 commit 8efeacc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/platform/x86/ideapad-laptop.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,9 @@ static const struct key_entry ideapad_keymap[] = {
11911191
{ KE_KEY, 0x27 | IDEAPAD_WMI_KEY, { KEY_HELP } },
11921192
/* Refresh Rate Toggle */
11931193
{ KE_KEY, 0x0a | IDEAPAD_WMI_KEY, { KEY_DISPLAYTOGGLE } },
1194+
/* Specific to some newer models */
1195+
{ KE_KEY, 0x3e | IDEAPAD_WMI_KEY, { KEY_MICMUTE } },
1196+
{ KE_KEY, 0x3f | IDEAPAD_WMI_KEY, { KEY_RFKILL } },
11941197

11951198
{ KE_END },
11961199
};

0 commit comments

Comments
 (0)