OSDN Git Service

Input: allocate keycodes for notification-center, pickup-phone and hangup-phone
authorHans de Goede <hdegoede@redhat.com>
Tue, 8 Sep 2020 16:33:56 +0000 (09:33 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 8 Sep 2020 23:31:14 +0000 (16:31 -0700)
commitcd80ec795156346236e9b1cd9f5cbff5a9bbd212
tree7262f2203eadb641a00398c927197e101abf7b99
parent9b5fbad1dcee0607300d08f888c71c8ef97a06a0
Input: allocate keycodes for notification-center, pickup-phone and hangup-phone

New Lenovo Thinkpad models, e.g. the X1 Carbon 8th gen and the new T14 gen1
models have 3 new symbols / shortcuts on their F9-F11 keys (and the
thinkpad_acpi driver receives 3 new "scancodes" for these):

F9:  Has a symbol resembling a rectangular speech balloon, the manual says
     the hotkey functions shows or hides the notification center
F10: Has a symbol of a telephone horn which has been picked up from the
     receiver, the manual says: "Answer incoming calls"
F11: Has a symbol of a telephone horn which is resting on the receiver,
     the manual says: "Decline incoming calls"

We have no existing keycodes which are a good match for these, so
add 3 new keycodes for these.

I noticed that we have a hole in our keycodes between 0x1ba and 0x1c0
which does not seem to be reserved for any specific purpose, so these
new 3 codes use 0x1bc - 0x1be, instead of starting at 0x27b.

Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
include/uapi/linux/input-event-codes.h