1 // SPDX-License-Identifier: GPL-2.0+
3 // Copyright (C) 2021 Christian Hewitt <christianshewitt@gmail.com>
5 #include <media/rc-map.h>
6 #include <linux/module.h>
9 // Keytable for the Mecool Kii Pro remote control
12 static struct rc_map_table mecool_kii_pro[] = {
22 { 0x48, KEY_FORWARD },
23 { 0x08, KEY_PREVIOUSSONG},
24 { 0x0b, KEY_NEXTSONG},
26 { 0x46, KEY_PLAYPAUSE },
28 { 0x1f, KEY_FAVORITES},
33 { 0x09, KEY_SUBTITLE },
34 { 0x01, KEY_LANGUAGE }, // AUDIO
47 { 0x13, KEY_VOLUMEUP },
48 { 0x17, KEY_VOLUMEDOWN },
49 { 0x58, KEY_APPSELECT }, // APPS
50 { 0x12, KEY_CONTEXT_MENU }, // MOUSE
51 { 0x55, KEY_CHANNELUP }, // PAGE_UP
52 { 0x15, KEY_CHANNELDOWN }, // PAGE_DOWN
68 static struct rc_map_list mecool_kii_pro_map = {
70 .scan = mecool_kii_pro,
71 .size = ARRAY_SIZE(mecool_kii_pro),
72 .rc_proto = RC_PROTO_NEC,
73 .name = RC_MAP_MECOOL_KII_PRO,
77 static int __init init_rc_map_mecool_kii_pro(void)
79 return rc_map_register(&mecool_kii_pro_map);
82 static void __exit exit_rc_map_mecool_kii_pro(void)
84 rc_map_unregister(&mecool_kii_pro_map);
87 module_init(init_rc_map_mecool_kii_pro)
88 module_exit(exit_rc_map_mecool_kii_pro)
90 MODULE_LICENSE("GPL");
91 MODULE_AUTHOR("Christian Hewitt <christianshewitt@gmail.com");
92 MODULE_DESCRIPTION("Mecool Kii Pro remote controller keytable");