aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/rc-main.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2017-12-03 11:06:54 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-21 11:12:29 -0400
commit447dcc0cf12922fcda67731559dd970bde7b35a6 (patch)
tree0fc2c5a035448b53e44d19b9bd150fb52ffdc2e9 /drivers/media/rc/rc-main.c
parent8d4068810d9926250dd2435719a080b889eb44c3 (diff)
media: rc: add new imon protocol decoder and encoder
This makes it possible to use the various iMON remotes with any raw IR RC device. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/rc-main.c')
-rw-r--r--drivers/media/rc/rc-main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 8621761a680f..b67be33bd62f 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -68,6 +68,8 @@ static const struct {
68 .scancode_bits = 0x1fff, .repeat_period = 250 }, 68 .scancode_bits = 0x1fff, .repeat_period = 250 },
69 [RC_PROTO_XMP] = { .name = "xmp", .repeat_period = 250 }, 69 [RC_PROTO_XMP] = { .name = "xmp", .repeat_period = 250 },
70 [RC_PROTO_CEC] = { .name = "cec", .repeat_period = 550 }, 70 [RC_PROTO_CEC] = { .name = "cec", .repeat_period = 550 },
71 [RC_PROTO_IMON] = { .name = "imon",
72 .scancode_bits = 0x7fffffff, .repeat_period = 250 },
71}; 73};
72 74
73/* Used to keep track of known keymaps */ 75/* Used to keep track of known keymaps */
@@ -1004,6 +1006,7 @@ static const struct {
1004 RC_PROTO_BIT_MCIR2_MSE, "mce_kbd", "ir-mce_kbd-decoder" }, 1006 RC_PROTO_BIT_MCIR2_MSE, "mce_kbd", "ir-mce_kbd-decoder" },
1005 { RC_PROTO_BIT_XMP, "xmp", "ir-xmp-decoder" }, 1007 { RC_PROTO_BIT_XMP, "xmp", "ir-xmp-decoder" },
1006 { RC_PROTO_BIT_CEC, "cec", NULL }, 1008 { RC_PROTO_BIT_CEC, "cec", NULL },
1009 { RC_PROTO_BIT_IMON, "imon", "ir-imon-decoder" },
1007}; 1010};
1008 1011
1009/** 1012/**