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)
committerJiri Kosina <jkosina@suse.cz>
Wed, 6 May 2020 09:40:03 +0000 (11:40 +0200)
commit350bd245fc180032b442633d40ab37ff8e60e8eb
tree76cd96dd1c575b207231b05c76078b4c54f8c24b
parente271f6c2df78d60dd4873c790a51dba40e6dfb72
HID: asus: Fix mute and touchpad-toggle keys on Medion Akoya E1239T

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>
drivers/hid/hid-asus.c