]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: bpf: Add support for the default firmware mode of the Huion K20
authorBenjamin Tissoires <bentiss@kernel.org>
Fri, 7 Feb 2025 13:55:57 +0000 (14:55 +0100)
committerBenjamin Tissoires <bentiss@kernel.org>
Mon, 24 Feb 2025 08:25:33 +0000 (09:25 +0100)
commit56be863932145e4e5a24e179ed6d1a6ea6b32227
tree6e0dcada7b434e4a34d248245d32a7f13d6adac3
parent58c9bf3363e596d744f56616d407278ef5f97f5a
HID: bpf: Add support for the default firmware mode of the Huion K20

This re-uses the same HID report descriptor that we also use for
the tablet mode after switching the device. The keys send uniquely
identifyable shortcuts so we can map those to buttons.

However the dial and the button inside the dial send events on a
different hidraw node and they are unreliable (e.g. the button does not
get released reliably). So they're ignored in this patch, it's not
worth the effort getting those to work correctly.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/158
Acked-by: Jiri Kosina <jkosina@suse.com>
Link: https://patch.msgid.link/20250207-bpf-import-2025-02-07-v1-1-6048fdd5a206@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/bpf/progs/Huion__KeydialK20.bpf.c [new file with mode: 0644]