linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Hennerich, Michael" <Michael.Hennerich@analog.com>
Cc: "linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	"device-drivers-devel@blackfin.uclinux.org"
	<device-drivers-devel@blackfin.uclinux.org>,
	Drivers <Drivers@analog.com>
Subject: Re: [PATCH] Input: touchscreen: AD7879: prevent invalid finger data reports
Date: Fri, 22 Oct 2010 09:30:49 -0700	[thread overview]
Message-ID: <20101022163049.GA20816@core.coreip.homeip.net> (raw)
In-Reply-To: <544AC56F16B56944AEC3BD4E3D59177130945B1763@LIMKCMBX1.ad.analog.com>

On Fri, Oct 22, 2010 at 08:16:48AM +0100, Hennerich, Michael wrote:
> Dmitry Torokhov wrote on 2010-10-22:
> > Hi Michael,
> >
> > On Mon, Oct 18, 2010 at 03:33:24PM +0200, michael.hennerich@analog.com
> > wrote:
> >> From: Michael Hennerich <michael.hennerich@analog.com>
> >>
> >> Considering following scenario - the touch is present on the screen at
> >> the beginning of the last conversion sequence, but by the time the last
> >> sequence is finished, the finger is lift off. The AD7879 data available
> >> interrupt signals (DAV) completion, however some X,Y values are not
> >> valid because the screen inputs were floating during the acquisition.
> >>
> >> The AD7877 acts differently here, since it only asserts DAV if the
> >> touch is still present when the conversion sequence finished.
> >>
> >> Based on the fact that this can only happen in the last sample of the
> >> repeated conversion sequence. We simply skip the last. (Short glitches
> >> are filtered by the AD7879 internal median and average filters) This
> >> doesn't cause noticeable side effects, since the minimum conversion
> >> interval is 9.44ms. We receive ~100 waypoint samples per second, so we
> >> simply delay the result by 9.44ms.
> >>
> >> Actually this patch repeats the first waypoint twice and then skips
> > the last.
> >
> > Input core won't actually pass the 2nd instance through. I think the
> > whole thing should look like the patch below.
> 
> I know input core suppresses identical events.
> Your patch looks nicer, however it will delay the first response by one
> Interrupt. Considering the minimum automatic conversion interval of 9.44ms
> - Not sure how much this really matters.
> 
> Acked-by: Michael Hennerich <michael.hennerich@analog.com>
> 

Thanks Michael. I think 10-15ms delay should not be noticeable for user
input, however you have the hardware, any chance you could try and see?

-- 
Dmitry

  reply	other threads:[~2010-10-22 16:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-18 13:33 [PATCH] Input: touchscreen: AD7879: prevent invalid finger data reports michael.hennerich
2010-10-22  5:00 ` Dmitry Torokhov
2010-10-22  7:16   ` Hennerich, Michael
2010-10-22 16:30     ` Dmitry Torokhov [this message]
2010-10-25 11:02       ` Hennerich, Michael

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=20101022163049.GA20816@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=Drivers@analog.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=device-drivers-devel@blackfin.uclinux.org \
    --cc=linux-input@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).