From: Henrik Rydberg <rydberg@euromail.se>
To: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-input@vger.kernel.org, kyungmin.park@samsung.com
Subject: Re: [PATCH] input: qt602240 - Add ATMEL QT602240 touchscreen driver
Date: Fri, 25 Jun 2010 15:32:10 +0200 [thread overview]
Message-ID: <4C24AFDA.70601@euromail.se> (raw)
In-Reply-To: <4C2407BE.2050106@samsung.com>
Joonyoung Shim wrote:
> On 6/24/2010 7:27 PM, Henrik Rydberg wrote:
>> Joonyoung Shim wrote:
>> [...]
>>>> The finger[id].status is checked twice in this block, is there any particular
>>>> reason for it?
>>> There is three states press / release / none. The none state means that
>>> the finger weren't be pressed still. First checking is to detect none
>>> state and second checking is to distinguish press and release. Does it
>>> need to report the finger of none state?
>>>
>>>> Either way, reporting only a part of the finger properties before
>>>> input_mt_sync() is wrong. Perhaps one can move the second test up together with
>>>> the first one?
>>>>
>>> I don't know well what you mean. Please give me detailed thing.
>> The code has one patch where (ABS_MT_TRACKING_ID, ABS_MT_TOUCH_MAJOR) is
>> reported, and another patch where (ABS_MT_TRACKING_ID, ABS_MT_TOUCH_MAJOR,
>> ABS_MT_POSITION_X, ABS_MT_POSITION_Y) is reported. This is incorrect. Either
>> send the release event with ABS_MT_TOUCH_MAJOR set to zero, or do not report the
>> finger at all.
>>
>
> OK. I had to remove ABS_MT_TRACKING_ID event to use MT protocol A.
Good idea. It _is_ ok to use the tracking id in protocol A, but it is not really
necessary. There are no bandwidth benefits, and the mtdev library handles the
tracking well in userspace.
[...]
>>> The ID value range can differ by chip firmware, but it can be calculated
>>> from 0 to 9. ID is decided by touch order. If i pressed three fingers,
>>> IDs ard 0, 1, 2.
>> In the MT protocol lingo, this is actually not a tracking id, but a slot id. A
>> tracking id increases for every new touch, and can be a much larger number than
>> the number of slots. Since the MT slot protocol is in the pipe now, perhaps you
>> would like to become the first driver to use the MT slots protocol? It seems it
>> would simplify the code of this driver.
>>
>
> The ID of this chip is created in order, so i think the slot id and the
> tracking id have same relative offset. Now, i will use MT protocol A and
> i can change to MT slots protocol later if it is merged.
Sounds good.
Thanks,
Henrik
next prev parent reply other threads:[~2010-06-25 13:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-23 13:16 [PATCH] input: qt602240 - Add ATMEL QT602240 touchscreen driver Joonyoung Shim
2010-06-23 17:34 ` Dmitry Torokhov
2010-06-23 20:06 ` Henrik Rydberg
2010-06-24 1:41 ` Joonyoung Shim
2010-06-24 10:27 ` Henrik Rydberg
2010-06-25 1:34 ` Joonyoung Shim
2010-06-25 13:32 ` Henrik Rydberg [this message]
2010-06-23 20:18 ` Henrik Rydberg
2010-06-24 0:58 ` 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=4C24AFDA.70601@euromail.se \
--to=rydberg@euromail.se \
--cc=dmitry.torokhov@gmail.com \
--cc=jy0922.shim@samsung.com \
--cc=kyungmin.park@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).