linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ir-core and default IR maps
@ 2010-11-06 22:08 jonsmirl
  2010-11-07  6:01 ` Dmitry Torokhov
  0 siblings, 1 reply; 18+ messages in thread
From: jonsmirl @ 2010-11-06 22:08 UTC (permalink / raw)
  To: linux-input

I thought about this some more and I think the default maps should
stay in the drivers. The maps are marked __init so they don't take any
room after they are loaded. This is an important piece and plug and
play and we should keep it. Only the keymaps for default remote
controls that ship with the specific hardware should be included in
the driver. All other keymaps are in user space.

Upsides:
  plug and play
  no requirement to have a user space IR component installed

Downsides:
  compile time - minor and it only impacts developers
  maintaining two copies - one in the kernel source and another in the
user space package. This can be handled via scripts.

If you have user space support installed, you should be able to:
  1) delete/replace the pre-loaded keymaps
  2) load any number of your own maps (receivers should support an
arbitrary number of remotes if the hardware can do it).
  3) use unhandled key events to search through the library of maps to
find the right one and then modify init scripts to load it.

All of the hundred plus in-kernel driver keymaps should also be
duplicated into the user space package. That lets you use these
remotes with other receivers.

Per the discussions at plumbers all decoders that the receiver
supports should be enabled all of the time. If we get data saying this
is a bad idea it can be changed. But disabling multiple drivers does
nothing to improve the performance of another driver. For example if
you have an RC5 remote and you disable the Sony protocol, the decode
error rate on the RC5 decoders is not going to change since the
protocol decoders don't talk to each other. Worst case the command
will decode in both protocols and be filtered by the loaded keymaps.
This is just one less thing for the user to be concerned with. It also
makes the identification of new remotes easier since all of the
protocols will be turned on.  Of course modify this appropriately for
non-general purpose hardware. (Now that Linux supports generate
purpose decoding, vendors can build general purpose receives and save
some money).

-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-11-11  1:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-06 22:08 ir-core and default IR maps jonsmirl
2010-11-07  6:01 ` Dmitry Torokhov
2010-11-07 14:36   ` jonsmirl
2010-11-08  7:23     ` Dmitry Torokhov
2010-11-08 13:09     ` Mauro Carvalho Chehab
2010-11-08 13:34       ` jonsmirl
2010-11-08 13:41         ` jonsmirl
2010-11-08 14:14           ` Mauro Carvalho Chehab
2010-11-09  6:32             ` Dmitry Torokhov
2010-11-09 10:21               ` Mauro Carvalho Chehab
2010-11-10  6:51                 ` Dmitry Torokhov
2010-11-10 13:30                   ` Mauro Carvalho Chehab
2010-11-11  1:37                     ` Dmitry Torokhov
2010-11-09 12:07               ` jonsmirl
2010-11-08 14:11         ` Mauro Carvalho Chehab
2010-11-08 15:07           ` jonsmirl
2010-11-08 15:38             ` Jarod Wilson
2010-11-08 16:33               ` Mauro Carvalho Chehab

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).