linux/drivers/media/dvb/dvb-usb
Mauro Carvalho Chehab b77f0a7630 V4L/DVB (12599): dvb-usb-remote: Allow dynamically replacing the IR keycodes
Implements handler for EVIOCGKEYCODE/EVIOCSKEYCODE via adding two new callbacks
to the input device.

Since on dvb-usb a scan code has 16 bits, to fulfill rc5 standard codes, the default
getkeycode/setkeycode input methods would require the driver to spend up to 64 Kb of
a sparse table. Instead, add two new callbacks to the event device.

With this, it is now possible to replace the keycode tables. There are, however, a few
implementation details at the current patch:

1) It will replace the existing device keytable, instead of creating an instance
of the data. This works. However, if two devices pointing to the same table
were connected, changing the IR table of one will also change the IR table for
the other (the solution for this one is simple: just kmalloc some memory);

2) In order to change the scan code, you need first to change the key to
KEY_RESERVED or KEY_UNKNOWN to free some space at the table (solution: allocate
some additional space for newer scan codes or allow dynamic table grow);

3) The table size cannot be extended. It would be easy to allow the table to
grow dynamically: just calling kmalloc(size+1); kfree(old). Yet, maybe we can
just create a bigger table with a fixed size, like for example a table with 128
entries. This should be enough even for a very big IR.

The current issues should be addressed on a later patch.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-09-12 12:19:48 -03:00
..
a800.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
af9005-fe.c V4L/DVB (10248): v4l-dvb: fix a bunch of compile warnings. 2009-01-29 08:38:04 -02:00
af9005-remote.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
af9005-script.h V4L/DVB (8906): v4l-dvb: fix assorted sparse warnings 2008-10-12 09:36:58 -02:00
af9005.c V4L/DVB (8906): v4l-dvb: fix assorted sparse warnings 2008-10-12 09:36:58 -02:00
af9005.h
af9015.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
af9015.h V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
anysee.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
anysee.h
au6610.c
au6610.h
ce6230.c V4L/DVB (11328): Add AVerMedia A310 USB IDs to CE6230 driver. 2009-04-06 21:43:49 -03:00
ce6230.h V4L/DVB (11216): Add driver for Intel CE6230 DVB-T USB2.0 2009-03-30 12:43:40 -03:00
cinergyT2-core.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
cinergyT2-fe.c V4L/DVB (12388): dvb-usb: fix tuning with Cinergy T2 2009-09-12 12:18:35 -03:00
cinergyT2.h V4L/DVB (9636): dvb: cinergyt2 annotate struct endianness, remove unused variable, add static 2008-12-29 17:53:34 -02:00
cxusb.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
cxusb.h
dib07x0.h
dib0700.h V4L/DVB (9639): Make dib0700 remote control support work with firmware v1.20 2008-11-16 23:57:53 -02:00
dib0700_core.c V4L/DVB (10415): dib0700: add data debug to dib0700_i2c_xfer_new 2009-03-30 12:42:36 -03:00
dib0700_devices.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
dibusb-common.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
dibusb-mb.c
dibusb-mc.c V4L/DVB (12475): Add support for Humax/Coex DVB-T USB Stick 2.0 High Speed 2009-09-12 12:19:03 -03:00
dibusb.h
digitv.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
digitv.h
dtt200u-fe.c
dtt200u.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
dtt200u.h
dtv5100.c V4L/DVB (8739): dtv5100: remove prohibited space... 2008-10-12 09:36:52 -02:00
dtv5100.h V4L/DVB (8738): dtv5100: remove old definition from header 2008-10-12 09:36:51 -02:00
dvb-usb-common.h
dvb-usb-dvb.c net: convert more to %pM 2008-10-27 17:47:26 -07:00
dvb-usb-firmware.c
dvb-usb-i2c.c V4L/DVB (12435): strlcpy() will always null terminate the string. 2009-09-12 12:18:50 -03:00
dvb-usb-ids.h V4L/DVB (12584): Support for Kaiser Baas ExpressCard Dual HD Tuner 2009-09-12 12:19:39 -03:00
dvb-usb-init.c
dvb-usb-remote.c V4L/DVB (12599): dvb-usb-remote: Allow dynamically replacing the IR keycodes 2009-09-12 12:19:48 -03:00
dvb-usb-urb.c V4L/DVB (9492): unplug oops from dvb_frontend_init... 2008-11-11 08:11:26 -02:00
dvb-usb.h V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
dw2102.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
dw2102.h V4L/DVB (11981): Remote control debugging for dw2102 driver based USB cards 2009-06-16 19:07:46 -03:00
gl861.c
gl861.h
gp8psk-fe.c V4L/DVB (9928): Convert GP8PSK module to use S2API 2008-12-30 09:39:21 -02:00
gp8psk.c V4L/DVB (11833): dvb-usb: Remove support for Genpix-CW3K (damages hardware) 2009-06-16 18:21:09 -03:00
gp8psk.h V4L/DVB (9928): Convert GP8PSK module to use S2API 2008-12-30 09:39:21 -02:00
Kconfig V4L/DVB (12462): Add TeVii S630 USB DVB-S card support. 2009-09-12 12:18:56 -03:00
m920x.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
m920x.h
Makefile V4L/DVB (11216): Add driver for Intel CE6230 DVB-T USB2.0 2009-03-30 12:43:40 -03:00
nova-t-usb2.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
opera1.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
ttusb2.c
ttusb2.h
umt-010.c
usb-urb.c V4L/DVB (9981): [PATCH] usb-urb.c: Fix initialization of URB list. 2008-12-30 09:39:38 -02:00
vp702x-fe.c
vp702x.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
vp702x.h
vp7045-fe.c
vp7045.c V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field 2009-09-12 12:19:48 -03:00
vp7045.h