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
},
24 { 0x12, KEY_NUMERIC_0
},
25 { 0x02, KEY_CHANNELDOWN
},
26 { 0x1c, KEY_AGAIN
}, /* Recall */
28 { 0x09, KEY_NUMERIC_1
},
29 { 0x1d, KEY_NUMERIC_2
},
30 { 0x1f, KEY_NUMERIC_3
},
32 { 0x0d, KEY_NUMERIC_4
},
33 { 0x19, KEY_NUMERIC_5
},
34 { 0x1b, KEY_NUMERIC_6
},
36 { 0x11, KEY_NUMERIC_7
},
37 { 0x15, KEY_NUMERIC_8
},
38 { 0x17, KEY_NUMERIC_9
},
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>");