V4L/DVB: sms: Convert IR support to use the Remote Controller core
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 1 Aug 2010 20:19:29 +0000 (17:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 19:43:56 +0000 (16:43 -0300)
commit844a9e93d7fcd910cd94f6eb262e2cc43cacbe56
tree6f9209f9d1408ab9c16174f766f1d69c5ad7bd71
parent1722f3b376f10182db85c2f6cf5bd79b857bc9e0
V4L/DVB: sms: Convert IR support to use the Remote Controller core

Rewrites the siano IR implementation. The previous implementation were
non-standard. As such, it has issues if more than one device registers IR,
as there used to have some static constants used during protocol decoding
phase. Also, it used to implement its on RAW decoder, and only for RC5.

The new code uses RC core subsystem for handling IR. This brings several
new features to the driver, including:
- Allow to dynamically replace the IR keycodes;
- Supports all existing raw decoders (JVC, NEC, RC-5, RC-6, SONY);
- Supports lirc dev;
- Doesn't have race conditions when more than one sms IR is
  registered;
- The code size for the IR implementation is very small;
- it exports the IR features via /sys/class/rc.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-keytable.c
drivers/media/dvb/siano/sms-cards.c
drivers/media/dvb/siano/sms-cards.h
drivers/media/dvb/siano/smsir.c
drivers/media/dvb/siano/smsir.h