]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hid-multitouch: forward MSC_TIMESTAMP
authorNicolas Boichat <drinkcat@chromium.org>
Tue, 22 Aug 2017 01:10:11 +0000 (09:10 +0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 5 Oct 2017 09:18:18 +0000 (11:18 +0200)
commit552a9716e2233b34703f038c2bb7bb6e387d39a7
tree7cda1e048d81ab5cb01ce761d7fec4f6a7020ec9
parent2fe31d6ef9736ad732de4f30f9f2685b05402939
HID: hid-multitouch: forward MSC_TIMESTAMP

Computes and forwards the device timestamp according to the specification.

Many devices use a 16-bit timestamp field, with a resolution of 100us,
therefore rolling around very frequently (every 6.5 seconds). To make sure
there is no ambiguity, the timestamp reported to the input stack reset to
0 whenever the time between 2 received events is greater than
MAX_TIMESTAMP_INTERVAL (1 second).

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c
include/linux/hid.h