From: Peter Brouwer <pb.maillists@googlemail.com>
To: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
Linux Input <linux-input@vger.kernel.org>
Subject: Re: [RFC] Infrared Keycode standardization
Date: Thu, 27 Aug 2009 18:06:13 +0100 [thread overview]
Message-ID: <4A96BD05.1080205@googlemail.com> (raw)
In-Reply-To: <20090827045710.2d8a7010@pedra.chehab.org>
Mauro Carvalho Chehab wrote:
Hi Mauro, All
Would it be an alternative to let lirc do the mapping and just let the driver
pass the codes of the remote to the event port.
That way you do not need to patch the kernel for each new card/remote that comes
out.
Just release a different map file for lirc for the remote of choice.
Peter
> After years of analyzing the existing code and receiving/merging patches
> related to IR, and taking a looking at the current scenario, it is clear to me
> that something need to be done, in order to have some standard way to map and
> to give precise key meanings for each used media keycode found on
> include/linux/input.h.
>
> Just as an example, I've parsed the bigger keymap file we have
> (linux/media/common/ir-common.c). Most IR's have less than 40 keys, most are
> common between several different models. Yet, we've got almost 500 different
> mappings there (and I removed from my parser all the "obvious" keys that there
> weren't any comment about what is labeled for that key on the IR).
>
> The same key name is mapped differently, depending only at the wish of the
> patch author, as shown at:
>
> http://linuxtv.org/wiki/index.php/Ir-common.c
>
> It doesn't come by surprise, but currently, almost all media player
> applications don't care to properly map all those keys.
>
> I've tried to find comments and/or descriptions about each media keys defined
> at input.h without success. Just a few keys are commented at the file itself.
> (or maybe I've just seek them at the wrong places).
>
> So, I took the initiative of doing a proposition for standardizing those keys
> at:
>
> http://linuxtv.org/wiki/index.php/Proposal
>
> While I tried to use the most common binding for a key, sometimes the "commonly
> used" one is so weird that I've used a different key mapping.
>
> Please, don't take it as a finished proposal. For sure we need to adjust it.
> Being it at wiki provides a way for people to edit, add comments and propose
> additional keycode matches.
>
> Also, there are several keys found on just one IR that didn't match any existing
> keycode. So, I just decided to keep those outside the table, for now, to focus
> on the mostly used ones.
>
> That's said, please review my proposal. Feel free to update the proposal and
> the current status if you think it is pertinent for this discussion.
>
> I'm not currently proposing to create any new keycode, but it probably makes
> sense to create a few ones, like KEY_PIP (for picture in picture).
>
> If we can go to a common sense, I intend to add it into a chapter at V4L2 API,
> in order to be used by both driver and userspace developers, submit some
> patches to fix some mappings and to add the proper comments to input.h.
>
> Comments?
>
> Cheers,
> Mauro
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2009-08-27 17:06 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-27 7:57 [RFC] Infrared Keycode standardization Mauro Carvalho Chehab
2009-08-27 17:06 ` Peter Brouwer [this message]
2009-08-27 17:12 ` Jarod Wilson
2009-08-27 17:17 ` Devin Heitmueller
2009-08-27 18:29 ` Trent Piepho
2009-08-27 18:34 ` Devin Heitmueller
2009-08-27 19:28 ` Mauro Carvalho Chehab
2009-08-27 19:32 ` Mauro Carvalho Chehab
2009-08-27 20:17 ` Dmitry Torokhov
2009-08-27 21:43 ` semiRocket
2009-08-27 18:36 ` Ville Syrjälä
2009-08-27 20:15 ` Dmitry Torokhov
2009-08-27 22:03 ` Mauro Carvalho Chehab
2009-08-27 21:58 ` Mauro Carvalho Chehab
2009-08-27 22:06 ` Devin Heitmueller
2009-08-28 3:46 ` Mauro Carvalho Chehab
2009-08-28 7:14 ` Mauro Carvalho Chehab
2009-08-28 10:13 ` Peter Brouwer
2009-08-28 12:36 ` Mauro Carvalho Chehab
2009-08-28 14:22 ` Alistair Buxton
2009-08-28 10:50 ` Patrick Boettcher
2009-08-28 12:30 ` Mauro Carvalho Chehab
2009-08-29 18:45 ` Mauro Carvalho Chehab
2009-08-31 5:47 ` Mauro Carvalho Chehab
2009-09-01 1:38 ` Dmitry Torokhov
2009-08-28 4:00 ` Jarod Wilson
2009-08-28 14:05 ` Mauro Carvalho Chehab
2009-08-28 11:41 ` Andy Walls
2009-08-28 14:02 ` Mauro Carvalho Chehab
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=4A96BD05.1080205@googlemail.com \
--to=pb.maillists@googlemail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.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).