Input: MT - add support for balanced slot assignment
authorHenrik Rydberg <rydberg@bitmath.org>
Sun, 1 Feb 2015 19:25:14 +0000 (11:25 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 1 Feb 2015 19:50:35 +0000 (11:50 -0800)
commit448c7f3830ca283e485aa943279acea6bde8b270
tree9e5b1ce72aa87035bc73595d2ce925bacec6a155
parent60bcaae15e0bd7f24d004ef2c9b3c8acb34b688d
Input: MT - add support for balanced slot assignment

Some devices are not fast enough to differentiate between a fast-moving
contact and a new contact. This problem cannot be fully resolved because
information is truly missing, but it is possible to safe-guard against
obvious mistakes by restricting movement with a maximum displacement.

The new problem formulation for dmax > 0 cannot benefit from the speedup
for positive definite matrices, but since the convergence is faster, the
result is about the same. For a handful of contacts, the latency difference
is truly negligible.

Suggested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-mt.c
drivers/input/mouse/alps.c
drivers/input/mouse/bcm5974.c
drivers/input/mouse/cypress_ps2.c
drivers/input/mouse/synaptics.c
drivers/input/touchscreen/pixcir_i2c_ts.c
include/linux/input/mt.h