From: Jarod Wilson <jarod@redhat.com>
To: linux-input@vger.kernel.org
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Jiri Kosina <jkosina@suse.cz>
Subject: Re: [PATCH] hid: assorted usage updates from hut 1.12
Date: Tue, 19 Apr 2011 15:13:03 -0400 [thread overview]
Message-ID: <4DADDEBF.3050407@redhat.com> (raw)
In-Reply-To: <1303234544-5474-1-git-send-email-jarod@redhat.com>
Jarod Wilson wrote:
> I've got a Tivo Slide bluetooth remote/dongle, which uses a fair number
> of hid usages that aren't currently mapped in hid-input.c. I'd initially
> written additions to hid-input.c with just this device in mind,
> including some bits that were specific to the device. This go around,
> I'm looking at adding/correcting as many generic HID usages from the HID
> Usage Tables, version 1.12, as I can -- which also serves to enable all
> but four of the buttons on the Tivo Slide remote[*].
>
> Outside of fixing the obviously incorrect mapping of 0xc 0x45 from
> KEY_RADIO to KEY_RIGHT, and making use of the new KEY_IMAGES (just added
> in 2.6.39-rc4) for AL Image Browser instead of KEY_MEDIA, these are
> purely additions, and thus should have no negative impact on any already
> functional HID devices. Most of the added mappings seemed to be
> perfectly logical to me, but there were a few that were mapped on more
> of an "I think this makes the most sense" basis.
>
> [*] I'll handle the last four tivo buttons via an hid-tivo.c follow-up.
>
> CC: Dmitry Torokhov<dmitry.torokhov@gmail.com>
> CC: Jiri Kosina<jkosina@suse.cz>
> Signed-off-by: Jarod Wilson<jarod@redhat.com>
> ---
> Nb: This is being submitted for 2.6.40, but I'd certainly have no
> objections to it going into 2.6.39. :)
>
> drivers/hid/hid-input.c | 60 ++++++++++++++++++++++++++++++++++++++++------
> 1 files changed, 52 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
> index 7f552bf..84d50e7 100644
> --- a/drivers/hid/hid-input.c
> +++ b/drivers/hid/hid-input.c
...
> @@ -540,6 +578,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
> case 0x18e: map_key_clear(KEY_CALENDAR); break;
> case 0x191: map_key_clear(KEY_FINANCE); break;
> case 0x192: map_key_clear(KEY_CALC); break;
> + case 0x192: map_key_clear(KEY_PLAYER); break;
Sigh. I thought I'd re-tested after my last round of additions, but
obviously not, since this will fail to build, because KEY_PLAYER should
be case 0x193, rather than a duplicate... Will resubmit once I'm 100%
positive things actually build and function. :\
--
Jarod Wilson
jarod@redhat.com
next prev parent reply other threads:[~2011-04-19 19:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-07 15:49 [PATCH] hid: support for bluetooth tivo slide remote and usb dongle Jarod Wilson
2011-04-19 17:35 ` [PATCH] hid: assorted usage updates from hut 1.12 Jarod Wilson
2011-04-19 19:13 ` Jarod Wilson [this message]
2011-04-19 19:28 ` [PATCH v2] " Jarod Wilson
2011-05-18 15:08 ` Jiri Kosina
2011-05-23 21:07 ` Jarod Wilson
2011-05-24 11:57 ` Jiri Kosina
2011-05-24 17:49 ` Jarod Wilson
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=4DADDEBF.3050407@redhat.com \
--to=jarod@redhat.com \
--cc=dmitry.torokhov@gmail.com \
--cc=jkosina@suse.cz \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.