]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: generic: support the 'report valid' usage for touch
authorAaron Armstrong Skomra <skomra@gmail.com>
Wed, 12 Jun 2019 21:19:30 +0000 (14:19 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 13 Jun 2019 14:48:49 +0000 (16:48 +0200)
commitaa9c3419a5bd8027b5c27cca7435392f2f748eea
tree48a0a6accb017f5a5739818a51fca7700f8c6c7d
parenta3a59b5fce803159dae1edb8d3f4f19a225166ec
HID: wacom: generic: support the 'report valid' usage for touch

Finger data is separated into chunks in our Bluetooth report,
where each report contains the same number of chunks. Those chunks
are not aligned in any particular way to a set of finger touches.
That is, the first half of a group of simultaneous touches may
be in one chunk at the end of a report and the second half could
be at the beginning of the next report.

Also some chunks contain no data and potentially some chunks could
contain leftover (bad) data.

Introduce and process the WACOM_HID_WT_REPORT_VALID usage that the
device uses to let us know if we should process a chunk of data.

Signed-off-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h