Re: [PATCH] Input: MT - Add support for balanced slot assignment

2015-02-02 Thread Dmitry Torokhov
On Mon, Feb 02, 2015 at 10:32:53AM -0500, Benjamin Tissoires wrote: > On Feb 01 2015 or thereabouts, Henrik Rydberg wrote: > > Hi Benjamin, > > > > > Tested this morning, and yes, it solves the problem. > > > I assumed that the dmax was in mm, and used "10 * priv->x_res", which > > > seemed to do

Re: [PATCH] Input: MT - Add support for balanced slot assignment

2015-02-02 Thread Benjamin Tissoires
On Feb 01 2015 or thereabouts, Henrik Rydberg wrote: > Hi Benjamin, > > > Tested this morning, and yes, it solves the problem. > > I assumed that the dmax was in mm, and used "10 * priv->x_res", which > > seemed to do the trick: > > - tapping with two fingers side by side triggered the jumps > > -

Re: [PATCH] Input: MT - Add support for balanced slot assignment

2015-02-01 Thread Henrik Rydberg
Hi Benjamin, > Tested this morning, and yes, it solves the problem. > I assumed that the dmax was in mm, and used "10 * priv->x_res", which > seemed to do the trick: > - tapping with two fingers side by side triggered the jumps > - in the general case (switching from the index to the thumb to > cl

Re: [PATCH] Input: MT - Add support for balanced slot assignment

2015-01-26 Thread Benjamin Tissoires
On Thu, Jan 22, 2015 at 2:52 PM, Henrik Rydberg wrote: > 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

Re: [PATCH] Input: MT - Add support for balanced slot assignment

2015-01-22 Thread Peter Hutterer
On Thu, Jan 22, 2015 at 09:24:01PM +0100, Henrik Rydberg wrote: > Hi Dmitry, > > On 01/22/2015 09:02 PM, Dmitry Torokhov wrote: > > On Thu, Jan 22, 2015 at 08:52:25PM +0100, Henrik Rydberg wrote: > >> int input_mt_assign_slots(struct input_dev *dev, int *slots, > >> -const str

Re: [PATCH] Input: MT - Add support for balanced slot assignment

2015-01-22 Thread Henrik Rydberg
Hi Dmitry, On 01/22/2015 09:02 PM, Dmitry Torokhov wrote: > On Thu, Jan 22, 2015 at 08:52:25PM +0100, Henrik Rydberg wrote: >> int input_mt_assign_slots(struct input_dev *dev, int *slots, >> - const struct input_mt_pos *pos, int num_pos) >> + const struct

Re: [PATCH] Input: MT - Add support for balanced slot assignment

2015-01-22 Thread Dmitry Torokhov
On Thu, Jan 22, 2015 at 08:52:25PM +0100, Henrik Rydberg wrote: > int input_mt_assign_slots(struct input_dev *dev, int *slots, > - const struct input_mt_pos *pos, int num_pos) > + const struct input_mt_pos *pos, int num_pos, > + int

[PATCH] Input: MT - Add support for balanced slot assignment

2015-01-22 Thread Henrik Rydberg
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 prob