1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2020 Christian Hewitt
4 #include <media/rc-map.h>
5 #include <linux/module.h>
8 * KHAMSIN is an IR/Bluetooth RCU supplied with the SmartLabs
9 * SML-5442TW DVB-S/VOD box. The RCU has separate IR (TV) and
10 * BT (STB) modes. This keymap suppors the IR controls.
13 static struct rc_map_table khamsin
[] = {
14 { 0x70702, KEY_POWER
},
16 { 0x70701, KEY_VIDEO
}, // source
19 { 0x70714, KEY_GREEN
},
20 { 0x70715, KEY_YELLOW
},
27 { 0x70761, KEY_DOWN
},
28 { 0x70765, KEY_LEFT
},
29 { 0x70762, KEY_RIGHT
},
30 { 0x70768, KEY_ENTER
},
32 { 0x7072d, KEY_ESC
}, // back
34 { 0x70707, KEY_VOLUMEUP
},
35 { 0x7070b, KEY_VOLUMEDOWN
},
36 { 0x7070f, KEY_MUTE
},
37 { 0x70712, KEY_CHANNELUP
},
38 { 0x70710, KEY_CHANNELDOWN
},
52 static struct rc_map_list khamsin_map
= {
55 .size
= ARRAY_SIZE(khamsin
),
56 .rc_proto
= RC_PROTO_NECX
,
57 .name
= RC_MAP_KHAMSIN
,
61 static int __init
init_rc_map_khamsin(void)
63 return rc_map_register(&khamsin_map
);
66 static void __exit
exit_rc_map_khamsin(void)
68 rc_map_unregister(&khamsin_map
);
71 module_init(init_rc_map_khamsin
)
72 module_exit(exit_rc_map_khamsin
)
74 MODULE_LICENSE("GPL");
75 MODULE_AUTHOR("Christian Hewitt <christianshewitt@gmail.com>");