diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-01 16:19:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:43:56 -0400 |
commit | 844a9e93d7fcd910cd94f6eb262e2cc43cacbe56 (patch) | |
tree | 6f9209f9d1408ab9c16174f766f1d69c5ad7bd71 /drivers/media/IR | |
parent | 1722f3b376f10182db85c2f6cf5bd79b857bc9e0 (diff) |
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>
Diffstat (limited to 'drivers/media/IR')
-rw-r--r-- | drivers/media/IR/ir-keytable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c index 94a8577e72eb..15a0f192d413 100644 --- a/drivers/media/IR/ir-keytable.c +++ b/drivers/media/IR/ir-keytable.c | |||
@@ -497,8 +497,9 @@ int __ir_input_register(struct input_dev *input_dev, | |||
497 | goto out_event; | 497 | goto out_event; |
498 | } | 498 | } |
499 | 499 | ||
500 | IR_dprintk(1, "Registered input device on %s for %s remote.\n", | 500 | IR_dprintk(1, "Registered input device on %s for %s remote%s.\n", |
501 | driver_name, rc_tab->name); | 501 | driver_name, rc_tab->name, |
502 | ir_dev->props->driver_type == RC_DRIVER_IR_RAW ? " in raw mode" : ""); | ||
502 | 503 | ||
503 | return 0; | 504 | return 0; |
504 | 505 | ||