[meta-freescale] [linux-boundary][PATCHv2] egalax_ts: Always report all touch points before input_sync()

Erik Botö erik.boto at pelagicore.com
Thu Jul 4 23:18:37 PDT 2013


Hi Eric,


On Wed, Jul 3, 2013 at 8:53 PM, Eric Nelson <eric.nelson at boundarydevices.com
> wrote:

> Hi Erik,
>
> Sorry for the delay, but I finally got around to checking this patch.
>
>
> On 07/03/2013 07:11 AM, Erik Botö wrote:
>
>> The previous behavior of the driver did not work properly with Qt5
>> QtQuick multi touch-point gestures, due to how touch-points are
>> reported when removing a touch-point. My interpretation of the
>> available documentation [1] was that the driver should report all
>> touch-points between SYN_REPORTs, but it is not explicitly stated so.
>> I've found another mail-thread [2] where the creator of the protocol
>> states:
>>
>> "The protocol defines a generic way of sending a variable amount of
>> contacts. The contact count is obtained by counting the number of
>> non-empty finger packets between SYN_REPORT events."-Henrik Rydberg
>>
>> I think this verifies my assumption that all touch-points should be
>> reported between SYN_REPORTs, otherwise it can not be used to obtain
>> the count.
>>
>>
> Your assumptions are correct, and if I read things correctly, they're
> already fixed, but in a different source tree...
>
> I'm guessing that someone forgot to mention that there are **two**
> primary kernel trees for i.MX. Android and not-Android.
>
> The Android kernel seems to have this fixed in a different way,
> by doing some additional book-keeping of current touches:
>         http://git.freescale.com/git/**cgit.cgi/imx/linux-2.6-imx.**
> git/tree/drivers/input/**touchscreen/egalax_ts.c?id=**
> 3b9608406bb699de5ff02760c745e6**2212b4c280<http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/input/touchscreen/egalax_ts.c?id=3b9608406bb699de5ff02760c745e62212b4c280>
>
> In Freescale's repository, the current Android stuff is in a tag
> (jb4.2.2_1.0.0-ga) instead of a branch, so it's a bit difficult
> to navigate through the web interface:
>
> http://git.freescale.com/git/**cgit.cgi/imx/linux-2.6-imx.**
> git/tag/?id=jb4.2.2_1.0.0-ga<http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tag/?id=jb4.2.2_1.0.0-ga>
>
> Hey Freescalers, can we get a head nod that we can consolidate
> these? I think all that's needed is to add the SINGLE_TOUCH stuff
> into the Android branch.
>
> Erik, can you try out the Android version and see if it works for
> you?
>

I did a quick test where I just copied the Android version, removed the
EARLYSUSPEND stuff so it would build inside a regular kernel but it is not
behaving properly for me. Even one finger clicks doesn't seem to work,
looks like it never gets released.

Unfortunately I don't have much time to investigate this further. But since
the two kernels are different anyway I guess there's no danger with merging
my patch suggestion in the non-android kernel?

Cheers,
Erik


>
> Please advise,
>
>
> Eric
>
>


-- 
=============================================
Erik Botö
Senior Software Engineer
Pelagicore AB
Ekelundsgatan 4, 6tr, SE-411 18 Gothenburg, Sweden
Mobile: +46 (0)76 881 72 03
E-Mail: erik.boto at pelagicore.com
=============================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130705/b35518d2/attachment.html>


More information about the meta-freescale mailing list