]> git.baikalelectronics.ru Git - kernel.git/commit
HID: asus: Fix mute and touchpad-toggle keys on Medion Akoya E1239T
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Apr 2020 14:22:54 +0000 (16:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:49 +0000 (16:43 +0100)
commit708ce89539086a2774cd83b30983dd8ee16221e4
tree65c81540bb084325f88f068d8a137060c6418852
parent07dd7e2ad0f8289be481df7bd9a880336179c2cf
HID: asus: Fix mute and touchpad-toggle keys on Medion Akoya E1239T

[ Upstream commit eb4f9fe19f02ef4f2c8bb2a863d1f44d5566aef9 ]

The mute key, is broken. All the consumer keys on the keyboard USB
interface work normally, except for mute which only sends press events
and never sends release events.

The touchpad key sends the otherwise unused input report with a report-id
of 5 on the touchpad interface. It too only sends press events. This also
requires extra special handling since the multi-touch touchpad events and
the KEY_F21 events for the touchpad toggle must not be send from the same
input_dev (userspace cannot handle this).

This commit adds special handlig for both, fixing these keys not working.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Stable-dep-of: 4ab3a086d10e ("HID: asus: use spinlock to safely schedule workers")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-asus.c