1 // SPDX-License-Identifier: GPL-2.0+
5 #include <media/rc-map.h>
6 #include <linux/module.h>
9 // Keytable for the Videostrong KII Pro STB remote control
12 static struct rc_map_table kii_pro[] = {
20 { 0x48, KEY_FORWARD },
21 { 0x08, KEY_PREVIOUSSONG},
22 { 0x0b, KEY_NEXTSONG},
23 { 0x46, KEY_PLAYPAUSE },
25 { 0x1f, KEY_FAVORITES}, //KEY_F5?
29 { 0x09, KEY_SUBTITLE },
31 { 0x0d, KEY_HOMEPAGE },
32 { 0x11, KEY_TV }, // DTV ?
35 { 0x1a, KEY_ENTER }, // KEY_OK ?
40 { 0x13, KEY_VOLUMEUP },
41 { 0x17, KEY_VOLUMEDOWN },
42 { 0x58, KEY_APPSELECT },
43 { 0x12, KEY_VENDOR }, // mouse
44 { 0x55, KEY_PAGEUP }, // KEY_CHANNELUP ?
45 { 0x15, KEY_PAGEDOWN }, // KEY_CHANNELDOWN ?
55 { 0x18, KEY_WWW }, // KEY_F7
57 { 0x51, KEY_BACKSPACE },
60 static struct rc_map_list kii_pro_map = {
63 .size = ARRAY_SIZE(kii_pro),
64 .rc_proto = RC_PROTO_NEC,
65 .name = RC_MAP_KII_PRO,
69 static int __init init_rc_map_kii_pro(void)
71 return rc_map_register(&kii_pro_map);
74 static void __exit exit_rc_map_kii_pro(void)
76 rc_map_unregister(&kii_pro_map);
79 module_init(init_rc_map_kii_pro)
80 module_exit(exit_rc_map_kii_pro)
82 MODULE_LICENSE("GPL");