From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: linux-input@vger.kernel.org
Subject: Re: A question about touchscreen absmax value
Date: Mon, 16 Nov 2009 21:48:23 -0800 [thread overview]
Message-ID: <20091117054822.GA6451@core.coreip.homeip.net> (raw)
In-Reply-To: <4B0211B8.4020508@samsung.com>
On Tue, Nov 17, 2009 at 12:00:08PM +0900, Joonyoung Shim wrote:
> On 11/17/2009 2:12 AM, Dmitry Torokhov wrote:
> > Hi Joonyoung,
> >
> > On Mon, Nov 16, 2009 at 10:53:18AM +0900, Joonyoung Shim wrote:
> >> Hi, all.
> >>
> >> I have a question about touchscreen resolution. My touchscreen device
> >> can report the position from 0 to 1023 of x and y coordinates, so i
> >> setted the absmax of input device to 1023. BTW, i only can get from 0 to
> >> 479 x position and to 799 y position because the LCD resolution of the
> >> target is 480 x 800. I wonder which value is setted to the absmax - 479
> >> and 799 or 1023.
> >
> > I believe driver should, by default, set absmin and absmax to match the
> > limits of the hardware/protocol. In your case it would be 1023. The
> > driver may choose to accept additional infromation from platform data, if
> > present, you can also adjust absmin/absmax etc via ioctl durng the
> > bootup sequence.
>
> Hmm, i get the resolution information from platform data, so i can
> set absmax values from platform data. Is it ok?
>
Sure, if there is only one possible configuration for the device on a
given platform - yes.
--
Dmitry
next prev parent reply other threads:[~2009-11-17 5:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-16 1:53 A question about touchscreen absmax value Joonyoung Shim
2009-11-16 17:12 ` Dmitry Torokhov
2009-11-17 3:00 ` Joonyoung Shim
2009-11-17 5:48 ` Dmitry Torokhov [this message]
2009-11-17 6:18 ` Joonyoung Shim
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=20091117054822.GA6451@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=jy0922.shim@samsung.com \
--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).