1 // SPDX-License-Identifier: GPL-2.0-only
3 * Keytable for the Astrometa T2hybrid remote controller
5 * Copyright (C) 2017 Oleh Kravchenko <oleg@kaa.org.ua>
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 static struct rc_map_table t2hybrid[] = {
13 { 0x54, KEY_VIDEO }, /* Source */
17 { 0x05, KEY_CHANNELUP },
18 { 0x0c, KEY_TIME}, /* Timeshift */
20 { 0x0a, KEY_VOLUMEDOWN },
21 { 0x40, KEY_ZOOM }, /* Fullscreen */
22 { 0x1e, KEY_VOLUMEUP },
25 { 0x02, KEY_CHANNELDOWN },
26 { 0x1c, KEY_AGAIN }, /* Recall */
41 static struct rc_map_list t2hybrid_map = {
44 .size = ARRAY_SIZE(t2hybrid),
45 .rc_proto = RC_PROTO_NEC,
46 .name = RC_MAP_ASTROMETA_T2HYBRID,
50 static int __init init_rc_map_t2hybrid(void)
52 return rc_map_register(&t2hybrid_map);
55 static void __exit exit_rc_map_t2hybrid(void)
57 rc_map_unregister(&t2hybrid_map);
60 module_init(init_rc_map_t2hybrid)
61 module_exit(exit_rc_map_t2hybrid)
63 MODULE_LICENSE("GPL");
64 MODULE_AUTHOR("Oleh Kravchenko <oleg@kaa.org.ua>");