1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2018 Christian Hewitt
4 #include <media/rc-map.h>
5 #include <linux/module.h>
8 * Keymap for the Tanix TX5 max STB remote control
11 static struct rc_map_table tanix_tx5max
[] = {
12 { 0x40404d, KEY_POWER
},
13 { 0x404043, KEY_MUTE
},
15 { 0x404017, KEY_VOLUMEDOWN
},
16 { 0x404018, KEY_VOLUMEUP
},
19 { 0x404010, KEY_LEFT
},
20 { 0x404011, KEY_RIGHT
},
21 { 0x40400e, KEY_DOWN
},
24 { 0x40401a, KEY_HOME
},
25 { 0x404045, KEY_MENU
},
26 { 0x404042, KEY_BACK
},
40 { 0x404047, KEY_SUBTITLE
}, // mouse
42 { 0x40400c, KEY_DELETE
},
45 static struct rc_map_list tanix_tx5max_map
= {
48 .size
= ARRAY_SIZE(tanix_tx5max
),
49 .rc_proto
= RC_PROTO_NECX
,
50 .name
= RC_MAP_TANIX_TX5MAX
,
54 static int __init
init_rc_map_tanix_tx5max(void)
56 return rc_map_register(&tanix_tx5max_map
);
59 static void __exit
exit_rc_map_tanix_tx5max(void)
61 rc_map_unregister(&tanix_tx5max_map
);
64 module_init(init_rc_map_tanix_tx5max
)
65 module_exit(exit_rc_map_tanix_tx5max
)
67 MODULE_LICENSE("GPL");
68 MODULE_AUTHOR("Christian Hewitt <christianshewitt@gmail.com>");