]> git.baikalelectronics.ru Git - kernel.git/commit
HID: multitouch: enable multi-input as a quirk for some devices
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 26 May 2020 15:07:17 +0000 (17:07 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 27 May 2020 09:45:06 +0000 (11:45 +0200)
commite5b5e3ee16d1fc19342c7fb6b2c13ef428bc721e
tree2f4b66d433ccf59e3fefc55e4b209817c3fb4ecc
parent20cd7ff1da84acda9a918e742b42675cdb475e7b
HID: multitouch: enable multi-input as a quirk for some devices

Two touchpad/trackstick combos are currently not behaving properly.
They define a mouse emulation collection, as per Win8 requirements,
but also define a separate mouse collection for the trackstick.

The way the kernel currently treat the collections is that it
merges both in one device. However, given that the first mouse
collection already defines X,Y and left, right buttons, when
mapping the events from the second mouse collection, hid-multitouch
sees that these events are already mapped, and simply ignores them.

To be able to report events from the tracktick, add a new quirked
class for it, and manually add the 2 devices we know about.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=207235
Cc: stable@vger.kernel.org
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-multitouch.c