2 * Keytable for the Astrometa T2hybrid remote controller
4 * Copyright (C) 2017 Oleh Kravchenko <oleg@kaa.org.ua>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * You should have received a copy of the GNU General Public License
11 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 #include <media/rc-map.h>
15 #include <linux/module.h>
17 static struct rc_map_table t2hybrid
[] = {
19 { 0x54, KEY_VIDEO
}, /* Source */
23 { 0x05, KEY_CHANNELUP
},
24 { 0x0c, KEY_TIME
}, /* Timeshift */
26 { 0x0a, KEY_VOLUMEDOWN
},
27 { 0x40, KEY_ZOOM
}, /* Fullscreen */
28 { 0x1e, KEY_VOLUMEUP
},
31 { 0x02, KEY_CHANNELDOWN
},
32 { 0x1c, KEY_AGAIN
}, /* Recall */
47 static struct rc_map_list t2hybrid_map
= {
50 .size
= ARRAY_SIZE(t2hybrid
),
51 .rc_proto
= RC_PROTO_NEC
,
52 .name
= RC_MAP_ASTROMETA_T2HYBRID
,
56 static int __init
init_rc_map_t2hybrid(void)
58 return rc_map_register(&t2hybrid_map
);
61 static void __exit
exit_rc_map_t2hybrid(void)
63 rc_map_unregister(&t2hybrid_map
);
66 module_init(init_rc_map_t2hybrid
)
67 module_exit(exit_rc_map_t2hybrid
)
69 MODULE_LICENSE("GPL");
70 MODULE_AUTHOR("Oleh Kravchenko <oleg@kaa.org.ua>");