[PATCH] GTA0: make headset button report PLAY pressed on press
luca at pca.it
Tue Jun 9 18:43:25 CEST 2009
On Tue, 09 Jun 2009 15:02:52 +0200, Joerg Reisenweber wrote:
> Am Di 9. Juni 2009 schrieb Luca Capello:
>> Please Cc: me, I do not read the list.
>> On Tue, 09 Jun 2009 07:28:20 +0200, Nelson Castillo wrote:
>> > I don't think we should care much about gta03 now. Let's wait a little
>> > (not much) for more comments before applying your patch.
>> Note that this has nothing to do with GTA03, but it was discovered on
>> both GTA01 and GTA02, please read the thread at
>> As Enrico Zini pointed out in the same thread, what is the reason for
>> the button being reported as pressed when it is not physically pressed?
> is your question about this?:
No, Enrico Zini and I are talking about how the headset button is
Actually, I see two issues here, both addressed by Paul's patch:
1) the button pressure/release is inverted, i.e. when you press it the
input stack report it as released and vice versa
2) at the xev level the button is associated with KEY_PAUSE, which means
that to "play" something you need to press it, which is in most of
the cases counterintuitive
If this is the expected behavior, since IMHO it goes against common
sense, it should be documented somewhere.
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 314 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20090609/b9633257/attachment.pgp
More information about the openmoko-kernel