1 // SPDX-License-Identifier: GPL-2.0+
3 // Copyright (C) 2019 Christian Hewitt <christianshewitt@gmail.com>
5 #include <media/rc-map.h>
6 #include <linux/module.h>
9 // Keytable for the X96-max STB remote control
12 static struct rc_map_table x96max
[] = {
22 { 0x118, KEY_VOLUMEUP
},
23 { 0x110, KEY_VOLUMEDOWN
},
25 { 0x143, KEY_MUTE
}, // config
27 { 0x100, KEY_EPG
}, // mouse
37 { 0x14c, KEY_CONTEXT_MENU
},
39 { 0x159, KEY_PREVIOUS
},
40 { 0x15a, KEY_PLAYPAUSE
},
43 { 0x147, KEY_MENU
}, // @ key
44 { 0x101, KEY_NUMERIC_0
},
45 { 0x142, KEY_BACKSPACE
},
47 { 0x14e, KEY_NUMERIC_1
},
48 { 0x10d, KEY_NUMERIC_2
},
49 { 0x10c, KEY_NUMERIC_3
},
51 { 0x14a, KEY_NUMERIC_4
},
52 { 0x109, KEY_NUMERIC_5
},
53 { 0x108, KEY_NUMERIC_6
},
55 { 0x146, KEY_NUMERIC_7
},
56 { 0x105, KEY_NUMERIC_8
},
57 { 0x104, KEY_NUMERIC_9
},
60 static struct rc_map_list x96max_map
= {
63 .size
= ARRAY_SIZE(x96max
),
64 .rc_proto
= RC_PROTO_NEC
,
65 .name
= RC_MAP_X96MAX
,
69 static int __init
init_rc_map_x96max(void)
71 return rc_map_register(&x96max_map
);
74 static void __exit
exit_rc_map_x96max(void)
76 rc_map_unregister(&x96max_map
);
79 module_init(init_rc_map_x96max
)
80 module_exit(exit_rc_map_x96max
)
82 MODULE_LICENSE("GPL");
83 MODULE_AUTHOR("Christian Hewitt <christianshewitt@gmail.com");