[linux-dvb] [PATCH] Keymap loading support for budget-ci

Darren Salt linux at youmustbejoking.demon.co.uk
Sun Dec 18 20:56:02 CET 2005


I demand that Oliver Endriss may or may not have written...

> Johannes Stezenbach wrote:
>> It would be better to use Gerd Knorr's ir-common (for av7110, too), so
>> keymaps could be manipulated using the standard EVIOCSKEYCODE ioctl, e.g.
>> by using input-kbd from Gerd Knorr's input-utils package.

> Agreed.

> How should we handle control data
> - RC5/RCMM selection
> - inversion setting
> if we drop /proc/av7110_ir?

Thankfully, budget-ci doesn't have those complications...

> Should we add module parameters or keep /proc/av7110_ir just for that?

Wouldn't this really need to be per-device? If so, these should be extra
parameters in the relevant input device directory in sysfs. (If the driver is
still meant to be 2.4-compatible, the existing method should be retained for
that at least.)

> RC5+ uses 5 bit addresses and 7 bit data. If we put the address bits in the
> keymap we end up with a 2^12 * 2 = 8 KByte keymap for each device.

> Unfortunately, the input layer cannot handle sparse keymaps.

Binding a device to one address or a subset of available addresses should
allow reduction of this somewhat - although, AFAICS, the current interface
only allows one address anyway, so if that restriction is maintained, that's
256 bytes of keymap and one control word per device.

-- 
| Darren Salt | d youmustbejoking,demon,co,uk | nr. Ashington,
| Debian,     | s zap,tartarus,org            | Northumberland
| RISC OS     | @                             | Toon Army
|   Let's keep the pound sterling

There is very little future in being right when your boss is wrong.



More information about the linux-dvb mailing list