1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2019 Clément Péron
4 #include <media/rc-map.h>
5 #include <linux/module.h>
8 * Keymap for the Beelink GS1 remote control
11 static struct rc_map_table beelink_gs1_table
[] = {
13 * TV Keys (Power, Learn and Volume)
14 * { 0x40400d, KEY_TV },
20 { 0x8051, KEY_POWER
},
22 { 0x8040, KEY_CONFIG
},
27 { 0x8027, KEY_RIGHT
},
31 { 0x80bc, KEY_MEDIA
},
35 { 0x804e, KEY_VOLUMEUP
},
36 { 0x8056, KEY_VOLUMEDOWN
},
38 { 0x8054, KEY_SUBTITLE
}, /* Web */
39 { 0x8052, KEY_EPG
}, /* Media */
41 { 0x8041, KEY_CHANNELUP
},
42 { 0x8042, KEY_CHANNELDOWN
},
56 { 0x8044, KEY_DELETE
},
58 { 0x8058, KEY_MODE
}, /* # Input Method */
61 static struct rc_map_list beelink_gs1_map
= {
63 .scan
= beelink_gs1_table
,
64 .size
= ARRAY_SIZE(beelink_gs1_table
),
65 .rc_proto
= RC_PROTO_NEC
,
66 .name
= RC_MAP_BEELINK_GS1
,
70 static int __init
init_rc_map_beelink_gs1(void)
72 return rc_map_register(&beelink_gs1_map
);
75 static void __exit
exit_rc_map_beelink_gs1(void)
77 rc_map_unregister(&beelink_gs1_map
);
80 module_init(init_rc_map_beelink_gs1
)
81 module_exit(exit_rc_map_beelink_gs1
)
83 MODULE_LICENSE("GPL");
84 MODULE_AUTHOR("Clément Péron <peron.clem@gmail.com>");