]> git.baikalelectronics.ru Git - kernel.git/commit
HID: uclogic: Add support for XP-PEN Deco L
authorJosé Expósito <jose.exposito89@gmail.com>
Sat, 11 Jun 2022 11:39:14 +0000 (13:39 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 15 Jun 2022 13:51:47 +0000 (15:51 +0200)
commitd100b7e6e08e46ed0d26e769d0d15bec6f3d45ff
treed11951906203a261e0169c2862151870f90450fe
parent1db1d06f87181ef0b631ab4ca9af3f67234dfe94
HID: uclogic: Add support for XP-PEN Deco L

The XP-PEN Deco L (UGEE) needs to be initialized by sending a buffer of
magic data, discovered by sniffing the Windows driver traffic.

In order to differentiate UGEE tablets that need this kind of
initialization from the previous ones, name them v2 internally and
create an entry point for them.

After initialization, the template report descriptors can be discovered
by parsing a string descriptor, similar to the one exposed by HUION v1
devices.

Add all the required elements to support the device.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/hid-uclogic-core.c
drivers/hid/hid-uclogic-params.c
drivers/hid/hid-uclogic-rdesc.c
drivers/hid/hid-uclogic-rdesc.h