All of lore.kernel.org
 help / color / mirror / Atom feed
From: Henrik Rydberg <rydberg@euromail.se>
To: Naveen Kumar GADDIPATI <naveen.gaddipati@stericsson.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Trilok Soni <tsoni@codeaurora.org>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	STEricsson_nomadik_linux <STEricsson_nomadik_linux@list.st.com>
Subject: Re: [Patch v2] input:rohm based bu21013 touch panel controller driver support
Date: Mon, 13 Sep 2010 16:36:51 +0200	[thread overview]
Message-ID: <4C8E3703.50303@euromail.se> (raw)
In-Reply-To: <81C3A93C17462B4BBD7E272753C1057918FC1CDAA7@EXDCVYMBSTM005.EQ1STM.local>

On 09/13/2010 12:12 PM, Naveen Kumar GADDIPATI wrote:
[...]
>>>>> +static bool bu21013_verify_delta(int x1, int y1, int x2, int y2)

>>>>> +{
>>>>> +       int delta_x, delta_y;
>>>>> +
>>>>> +       if ((x1 != 0) && (y1 != 0)) {
>>>>> +               delta_x = x2 - x1;
>>>>> +               if (x1 > x2)
>>>>> +                       delta_x = x1 - x2;
>>>>> +               delta_y = y2 - y1;
>>>>> +               if (y1 > y2)
>>>>> +                       delta_y = y1 - y2;
>>>>> +               if ((delta_x < DELTA_MIN) || (delta_y < DELTA_MIN))
>>>>> +                       return false;
>>>>> +       }
>>>>> +       return true;
[...]

>> I do not understand why deltas are verified in the first place.
>> Either one can rely on the identity of the fingers, in which
>> case MT slots is simpler to handle, or one cannot rely on it,
>> in which case the above code is wrong, since it assumes the
>> values compared have the same identity.

> 
> 	This case according to controller specification, when the two fingers delta is of
> 	16 either in x or y, we should ignore those co-ordinates and report as pen-up.


And not as a single finger with larger perimeter? It would be interesting to
know how this driver has been tested. There are some applications that can help
examining the quality of MT output, one of them can be found at
http://bitmath.org/code/mtview/.

Henrik

  reply	other threads:[~2010-09-13 14:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 11:36 [Patch v2] input:rohm based bu21013 touch panel controller driver support Naveen Kumar GADDIPATI
2010-09-09 12:10 ` Trilok Soni
2010-09-09 13:20   ` Naveen Kumar GADDIPATI
2010-09-09 13:46     ` Trilok Soni
2010-09-09 15:39       ` Dmitry Torokhov
2010-09-09 18:44         ` Trilok Soni
2010-09-09 15:59 ` Dmitry Torokhov
2010-09-09 16:01   ` Dmitry Torokhov
2010-09-09 18:26     ` Henrik Rydberg
2010-09-13 10:12       ` Naveen Kumar GADDIPATI
2010-09-13 14:36         ` Henrik Rydberg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-09 12:12 Naveen Kumar GADDIPATI
2010-09-09 12:13 ` Trilok Soni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C8E3703.50303@euromail.se \
    --to=rydberg@euromail.se \
    --cc=STEricsson_nomadik_linux@list.st.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=naveen.gaddipati@stericsson.com \
    --cc=tsoni@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.