Commit 6718e8ad authored by Jarod Wilson's avatar Jarod Wilson Committed by Mauro Carvalho Chehab

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: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0a4f8d07
This diff is collapsed.
...@@ -119,8 +119,8 @@ static struct rc_keymap imon_mce_map = { ...@@ -119,8 +119,8 @@ static struct rc_keymap imon_mce_map = {
.map = { .map = {
.scan = imon_mce, .scan = imon_mce,
.size = ARRAY_SIZE(imon_mce), .size = ARRAY_SIZE(imon_mce),
/* its actually RC6, but w/a hardware decoder */ /* its RC6, but w/a hardware decoder */
.ir_type = IR_TYPE_UNKNOWN, .ir_type = IR_TYPE_RC6,
.name = RC_MAP_IMON_MCE, .name = RC_MAP_IMON_MCE,
} }
}; };
......
...@@ -133,7 +133,8 @@ static struct rc_keymap imon_pad_map = { ...@@ -133,7 +133,8 @@ static struct rc_keymap imon_pad_map = {
.map = { .map = {
.scan = imon_pad, .scan = imon_pad,
.size = ARRAY_SIZE(imon_pad), .size = ARRAY_SIZE(imon_pad),
.ir_type = IR_TYPE_UNKNOWN, /* actual protocol details unknown, hardware decoder */
.ir_type = IR_TYPE_OTHER,
.name = RC_MAP_IMON_PAD, .name = RC_MAP_IMON_PAD,
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment