From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Ben Dooks <ben-linux@fluff.org>
Cc: linux-input@vger.kernel.org, vince@simtec.co.uk, dsilvers@simtec.co.uk
Subject: Re: usbtouchscreen: Add support for Zytronic capacitive touchscreen
Date: Sun, 11 Jan 2009 23:53:22 -0800 [thread overview]
Message-ID: <20090111234903.ZZRA012@mailhub.coreip.homeip.net> (raw)
In-Reply-To: <20090109121026.052643915@fluff.org.uk>
On Fri, Jan 09, 2009 at 12:10:26PM +0000, Ben Dooks wrote:
> From: Vincent Sanders <vince@simtec.co.uk>
>
> Zytronic USB-attached capacitive touchscreen support
> within the generic USB touchscreen driver.
>
> Signed-off-by: Daniel Silverstone <dsilvers@simtec.co.uk>
> Signed-off-by: Vincent Sanders <vince@simtec.co.uk>
>
Since you are passing the driver on your sign off is also needed.
> Index: linux.git/drivers/input/touchscreen/usbtouchscreen.c
> ===================================================================
> --- linux.git.orig/drivers/input/touchscreen/usbtouchscreen.c 2009-01-08 15:26:04.000000000 +0000
> +++ linux.git/drivers/input/touchscreen/usbtouchscreen.c 2009-01-09 12:03:39.000000000 +0000
> @@ -13,6 +13,7 @@
> * - IdealTEK URTC1000
> * - General Touch
> * - GoTop Super_Q2/GogoPen/PenPower tablets
> + * - Zytronic capacitive touchscreen
> *
> * Copyright (C) 2004-2007 by Daniel Ritz <daniel.ritz@gmx.ch>
> * Copyright (C) by Todd E. Johnson (mtouchusb.c)
> @@ -68,6 +69,11 @@ struct usbtouch_device_info {
> int min_press, max_press;
> int rept_size;
>
> + /* Always service the USB devices irq not just when the input device is
> + * open.
> + */
> + int irq_always;
> +
Why is this needed?
> + case 0xC0: /* down */
> + dev->x = (pkt[1] & 0x7f) | ((pkt[2] & 0x07) << 7);
> + dev->y = (pkt[3] & 0x7f) | ((pkt[4] & 0x07) << 7);
> + dev->touch = 1;
> + dev->press = 1;
Since the device does not report real pressure readings don't try to
fake it, reporting touch is enough.
--
Dmitry
next prev parent reply other threads:[~2009-01-12 7:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-09 12:10 usbtouchscreen: Add support for Zytronic capacitive touchscreen Ben Dooks
2009-01-12 7:53 ` Dmitry Torokhov [this message]
2009-01-12 9:07 ` Daniel Silverstone
2009-01-13 5:33 ` Dmitry Torokhov
2009-01-13 9:29 ` Daniel Silverstone
2009-01-14 5:35 ` Dmitry Torokhov
2009-01-14 17:36 ` Daniel Silverstone
2009-01-15 15:12 ` Ben Dooks
2009-01-29 10:55 ` Daniel Silverstone
2009-03-31 9:52 ` Daniel Silverstone
2009-04-08 20:33 ` Dmitry Torokhov
2009-04-09 8:20 ` Daniel Silverstone
-- strict thread matches above, loose matches on Subject: below --
2009-11-23 14:39 Ben Dooks
2009-11-23 17:21 ` Dmitry Torokhov
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=20090111234903.ZZRA012@mailhub.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=ben-linux@fluff.org \
--cc=dsilvers@simtec.co.uk \
--cc=linux-input@vger.kernel.org \
--cc=vince@simtec.co.uk \
/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).