aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/keymaps
diff options
context:
space:
mode:
authorJarod Wilson <jarod@redhat.com>2010-04-23 01:27:11 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:58:24 -0400
commit6718e8ad950f73fc895b98a413a63cb2add3b4d2 (patch)
tree45ef313730c83d671131957f6a3eb7dba07a8c61 /drivers/media/IR/keymaps
parent0a4f8d0798c834472b9d8d50df32b62c733009fd (diff)
V4L/DVB: IR/imon: convert to ir-core protocol change handling
Drop the imon driver's internal protocol definitions in favor of using those provided by ir-core. Should make ir-keytable Just Work for switching protocol on the fly on the imon devices that support both the native imon remotes and mce remotes. The imon-no-pad-stabilize pseudo-protocol was dropped as a protocol, and converted to a separate modprobe option (which it probably should have been in the first place). On the TODO list is to convert this to an as yet unwritten protocol-specific options framework. While the mce remotes obviously map to IR_TYPE_RC6, I've yet to look at what the actual ir signals from the native imon remotes are, so for the moment, imon native ir is mapped to IR_TYPE_OTHER. Nailing it down more accurately is also on the TODO list. Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/keymaps')
-rw-r--r--drivers/media/IR/keymaps/rc-imon-mce.c4
-rw-r--r--drivers/media/IR/keymaps/rc-imon-pad.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/IR/keymaps/rc-imon-mce.c b/drivers/media/IR/keymaps/rc-imon-mce.c
index 9c6dda30c649..e49f350e3a0d 100644
--- a/drivers/media/IR/keymaps/rc-imon-mce.c
+++ b/drivers/media/IR/keymaps/rc-imon-mce.c
@@ -119,8 +119,8 @@ static struct rc_keymap imon_mce_map = {
119 .map = { 119 .map = {
120 .scan = imon_mce, 120 .scan = imon_mce,
121 .size = ARRAY_SIZE(imon_mce), 121 .size = ARRAY_SIZE(imon_mce),
122 /* its actually RC6, but w/a hardware decoder */ 122 /* its RC6, but w/a hardware decoder */
123 .ir_type = IR_TYPE_UNKNOWN, 123 .ir_type = IR_TYPE_RC6,
124 .name = RC_MAP_IMON_MCE, 124 .name = RC_MAP_IMON_MCE,
125 } 125 }
126}; 126};
diff --git a/drivers/media/IR/keymaps/rc-imon-pad.c b/drivers/media/IR/keymaps/rc-imon-pad.c
index 331ba9066b46..bc4db72f02e6 100644
--- a/drivers/media/IR/keymaps/rc-imon-pad.c
+++ b/drivers/media/IR/keymaps/rc-imon-pad.c
@@ -133,7 +133,8 @@ static struct rc_keymap imon_pad_map = {
133 .map = { 133 .map = {
134 .scan = imon_pad, 134 .scan = imon_pad,
135 .size = ARRAY_SIZE(imon_pad), 135 .size = ARRAY_SIZE(imon_pad),
136 .ir_type = IR_TYPE_UNKNOWN, 136 /* actual protocol details unknown, hardware decoder */
137 .ir_type = IR_TYPE_OTHER,
137 .name = RC_MAP_IMON_PAD, 138 .name = RC_MAP_IMON_PAD,
138 } 139 }
139}; 140};