aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/alps.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@bitmath.org>2015-02-01 14:25:14 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-02-01 14:50:35 -0500
commit448c7f3830ca283e485aa943279acea6bde8b270 (patch)
tree9e5b1ce72aa87035bc73595d2ce925bacec6a155 /drivers/input/mouse/alps.c
parent60bcaae15e0bd7f24d004ef2c9b3c8acb34b688d (diff)
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>
Diffstat (limited to 'drivers/input/mouse/alps.c')
-rw-r--r--drivers/input/mouse/alps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c
index f719f28d370c..f205b8be2ce4 100644
--- a/drivers/input/mouse/alps.c
+++ b/drivers/input/mouse/alps.c
@@ -435,7 +435,7 @@ static void alps_report_mt_data(struct psmouse *psmouse, int n)
435 struct alps_fields *f = &priv->f; 435 struct alps_fields *f = &priv->f;
436 int i, slot[MAX_TOUCHES]; 436 int i, slot[MAX_TOUCHES];
437 437
438 input_mt_assign_slots(dev, slot, f->mt, n); 438 input_mt_assign_slots(dev, slot, f->mt, n, 0);
439 for (i = 0; i < n; i++) 439 for (i = 0; i < n; i++)
440 alps_set_slot(dev, slot[i], f->mt[i].x, f->mt[i].y); 440 alps_set_slot(dev, slot[i], f->mt[i].x, f->mt[i].y);
441 441