projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70ec81c
)
HID: uclogic: Support HUION devices with up to 20 buttons
author
José Expósito
<jose.exposito89@gmail.com>
Fri, 24 May 2024 11:21:35 +0000
(13:21 +0200)
committer
Jiri Kosina
<jkosina@suse.com>
Tue, 4 Jun 2024 08:12:54 +0000
(10:12 +0200)
The HID descriptor for HUION tablets was limited to 13 buttons. However,
there are devices with more buttons in their frames.
So far, the device with more buttons released by HUION is the Huion
Kamvas Pro 24 (GT-240, QHD) [1], with 20 buttons.
Tweak the HID descriptor to support it.
Link:
https://gitlab.freedesktop.org/libinput/libinput/-/issues/989
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-uclogic-rdesc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/hid-uclogic-rdesc.c
b/drivers/hid/hid-uclogic-rdesc.c
index b6dfdf6356a60c8de02c7c2ad4222d327619ec50..7cbd673747a56a3def32b5c509417ad7a7f70787 100644
(file)
--- a/
drivers/hid/hid-uclogic-rdesc.c
+++ b/
drivers/hid/hid-uclogic-rdesc.c
@@
-689,10
+689,10
@@
const size_t uclogic_rdesc_v2_pen_template_size =
0xA0, /* Collection (Physical), */ \
0x05, 0x09, /* Usage Page (Button), */ \
0x19, 0x01, /* Usage Minimum (01h), */ \
- 0x29, 0x0
3, /* Usage Maximum (03
h), */ \
- 0x95, 0x0
3, /* Report Count (3),
*/ \
+ 0x29, 0x0
A, /* Usage Maximum (0A
h), */ \
+ 0x95, 0x0
A, /* Report Count (10),
*/ \
0x81, 0x02, /* Input (Variable), */ \
- 0x95, ((_size) * 8 -
45
), \
+ 0x95, ((_size) * 8 -
52
), \
/* Report Count (padding), */ \
0x81, 0x01, /* Input (Constant), */ \
0xC0, /* End Collection, */ \