2008-10-13 22:28:44

by Bastien Nocera

[permalink] [raw]
Subject: [PATCH] Fix PS3 BD remote input event generation

- Fix byte-reading in the decode function by using a guint8, instead
of an int, we were overreading and were getting keycodes of
0xffffff44 when we wanted a single byte of 0x44.
- Remove use of KEY_REMOTE_X, those keys never got upstream, and the
values they were defined at are now used for completely different
keys
- Update uinput.h with the latest keycodes from 2.6.27

Cheers


Attachments:
0001-Fix-PS3-BD-remote-input-event-generation.patch (16.13 kB)

2008-10-14 10:09:58

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] Fix PS3 BD remote input event generation

Hi Johan,

> > - Fix byte-reading in the decode function by using a guint8, instead
> > of an int, we were overreading and were getting keycodes of
> > 0xffffff44 when we wanted a single byte of 0x44.
> > - Remove use of KEY_REMOTE_X, those keys never got upstream, and the
> > values they were defined at are now used for completely different
> > keys
> > - Update uinput.h with the latest keycodes from 2.6.27
>
> The patch has been pushed upstream. Thanks!

this patch should have been split at least into 2 pieces (maybe 3). The
uinput update at least should have been separate. We are using GIT and
there is no reason to push combined patches ever. I do _NOT_ wanna have
big patches that fix multiple things. Break them down.

Regards

Marcel



2008-10-14 06:38:04

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Fix PS3 BD remote input event generation

Hi Bastien,

On Oct 14, 2008, at 1:28, Bastien Nocera wrote:
> - Fix byte-reading in the decode function by using a guint8, instead
> of an int, we were overreading and were getting keycodes of
> 0xffffff44 when we wanted a single byte of 0x44.
> - Remove use of KEY_REMOTE_X, those keys never got upstream, and the
> values they were defined at are now used for completely different
> keys
> - Update uinput.h with the latest keycodes from 2.6.27

The patch has been pushed upstream. Thanks!

Johan