Commit graph

8 commits

Author SHA1 Message Date
Vladimir Kondratyev
470478ff01 hmt(4): Add support for touchpads with no "button type" or
"maximum number of contacts" usages.

Assume touchpad to be a clickpad if it has only internal button.
Set number of contacts to 5 for touchpads and to 10 for touchscreens.
Check for fetched report length to avoid reading of stalled data.
Fixes Dell Precision 7550 laptop.

Tested by:	Shawn Webb <shawn.webb_AT_hardenedbsd_DOT_org>
PR:		257992

(cherry picked from commit 9d04336b61)
2021-09-22 02:41:40 +03:00
Vladimir Kondratyev
12061cf605 hmt(4): Add support for serial packet reporting mode
In Serial mode, each packet contains information that describes a
single physical contact point. Multiple contacts are streamed
serially. In this mode, devices report all contact information in a
series of packets. The device sends a separate packet for each
concurrent contact.

Serial packet reporting mode is used by post-2014 eGalax touchscreens.

Tested by:	Mark Kane <mark_AT_kane_DOT_mn>

(cherry picked from commit 0075742d18)
2021-09-22 02:39:58 +03:00
Vladimir Kondratyev
3956601292 hmt(4): Adapt to recent KPI changes
(cherry picked from commit 9d8ebe5ea1)
2021-09-22 02:35:58 +03:00
Jack
6c8f2d24d4 hmt(4): Do not ignore constant usages in HID report descriptor parser
This fixes hmt to work with MELF0411 1FD2:7012 touchscreen

Obtained from:	sysutils/iichid

(cherry picked from commit cb910670ac)
2021-08-24 01:21:24 +03:00
Vladimir Kondratyev
5517f7f9e7 hmt(4): Store Contact Count in separate variable.
No functional changes.

(cherry picked from commit 95add157e3)
2021-08-24 01:19:43 +03:00
Vladimir Kondratyev
5cc21ab994 hmt: Allow I2C sampling mode support to be compiled out. 2021-01-20 23:10:07 +03:00
Vladimir Kondratyev
cb022db825 hid: Port multitouch hmt(4) driver to hidbus and attach to build
Reviewed by:	hselasky
Differential revision:	https://reviews.freebsd.org/D27990
2021-01-08 02:18:43 +03:00
Vladimir Kondratyev
b9b347e9bf hid: Copy wmt(4) to HID subsystem as a base to upcoming hmt(4) driver. 2021-01-08 02:18:43 +03:00