All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: wanlong.gao@gmail.com, w.sang@pengutronix.de,
	broonie@opensource.wolfsonmicro.com, khali@linux-fr.org,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
	jiaweiwei.xiyou@gmail.com
Subject: Re: [PATCH V2] Add the support of the touchscreen keypad of tsc2007 .
Date: Thu, 31 Mar 2011 09:49:04 +0100	[thread overview]
Message-ID: <1301561344.24596.102.camel@rex> (raw)
In-Reply-To: <20110331053324.GB31630@core.coreip.homeip.net>

On Wed, 2011-03-30 at 22:33 -0700, Dmitry Torokhov wrote:
> Hi Wanlong,
> 
> On Sun, Mar 27, 2011 at 05:46:32PM +0800, wanlong.gao@gmail.com wrote:
> > From: Wanlong Gao <wanlong.gao@gmail.com>
> > 
> > Many touchscreens support touch-keypad .
> > Open the definition of the TOUCHSCREEN_TSC2007_WITH_KEYPAD, you can
> > open the support of the touchscreen's keypad .
> > We can add the support of the touchscreen keypad in the driver.
> > In this patch , add the ts_key_pos array to determine the position
> > of the key's X. And the ts_key_sensitivity can use to detemine the
> > key's sensitivity. You can modify the ts_key_pos array for you own
> > touchscreen keys . And modify the ts_key_sensitivity for you own
> > key's sensitivity .
> > If you want to modify the ts_key_map, change the position of the
> > keys ,too.
> 
> No, this kind of data transformation does not belong to a driver (or,
> really in kernel). It is in no way TSC2007 specific (any touchscreen
> could be used in place of TSC2007 here).
> 
> Do it in userspace and either loop the events back into kernel (after
> parsing) via uinput or feed directly into your framework.

There is even code out there already which does exactly that:

http://svn.o-hand.com/view/misc/trunk/zaurusd/apps/tskeys/tskeys.c?rev=415&view=markup

Cheers,

Richard


  reply	other threads:[~2011-03-31  9:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-27  9:46 [PATCH V2] Add the support of the touchscreen keypad of tsc2007 wanlong.gao
2011-03-31  1:36 ` Harry Wei
2011-03-31  5:33 ` Dmitry Torokhov
2011-03-31  8:49   ` Richard Purdie [this message]
2011-03-31 12:21     ` Re: [PATCH V2] Add the support of the touchscreen keypad oftsc2007 wanlong.gao
2011-03-31 12:08   ` Re: [PATCH V2] Add the support of the touchscreen keypad of tsc2007 wanlong.gao

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=1301561344.24596.102.camel@rex \
    --to=richard.purdie@linuxfoundation.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jiaweiwei.xiyou@gmail.com \
    --cc=khali@linux-fr.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=w.sang@pengutronix.de \
    --cc=wanlong.gao@gmail.com \
    /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.