109c434b8SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-only
232cf86f6SMauro Carvalho Chehab #include <media/rc-map.h>
37a707b89SPaul Gortmaker #include <linux/module.h>
432cf86f6SMauro Carvalho Chehab
52f4f58d6SMauro Carvalho Chehab static struct rc_map_table twinhan_vp1027[] = {
632cf86f6SMauro Carvalho Chehab { 0x16, KEY_POWER2 },
732cf86f6SMauro Carvalho Chehab { 0x17, KEY_FAVORITES },
832cf86f6SMauro Carvalho Chehab { 0x0f, KEY_TEXT },
932cf86f6SMauro Carvalho Chehab { 0x48, KEY_INFO},
1032cf86f6SMauro Carvalho Chehab { 0x1c, KEY_EPG },
1132cf86f6SMauro Carvalho Chehab { 0x04, KEY_LIST },
1232cf86f6SMauro Carvalho Chehab
13*1910ea42SBastien Nocera { 0x03, KEY_NUMERIC_1 },
14*1910ea42SBastien Nocera { 0x01, KEY_NUMERIC_2 },
15*1910ea42SBastien Nocera { 0x06, KEY_NUMERIC_3 },
16*1910ea42SBastien Nocera { 0x09, KEY_NUMERIC_4 },
17*1910ea42SBastien Nocera { 0x1d, KEY_NUMERIC_5 },
18*1910ea42SBastien Nocera { 0x1f, KEY_NUMERIC_6 },
19*1910ea42SBastien Nocera { 0x0d, KEY_NUMERIC_7 },
20*1910ea42SBastien Nocera { 0x19, KEY_NUMERIC_8 },
21*1910ea42SBastien Nocera { 0x1b, KEY_NUMERIC_9 },
22*1910ea42SBastien Nocera { 0x15, KEY_NUMERIC_0 },
2332cf86f6SMauro Carvalho Chehab
2432cf86f6SMauro Carvalho Chehab { 0x0c, KEY_CANCEL },
2532cf86f6SMauro Carvalho Chehab { 0x4a, KEY_CLEAR },
2632cf86f6SMauro Carvalho Chehab { 0x13, KEY_BACKSPACE },
2732cf86f6SMauro Carvalho Chehab { 0x00, KEY_TAB },
2832cf86f6SMauro Carvalho Chehab
2932cf86f6SMauro Carvalho Chehab { 0x4b, KEY_UP },
3032cf86f6SMauro Carvalho Chehab { 0x51, KEY_DOWN },
3132cf86f6SMauro Carvalho Chehab { 0x4e, KEY_LEFT },
3232cf86f6SMauro Carvalho Chehab { 0x52, KEY_RIGHT },
3332cf86f6SMauro Carvalho Chehab { 0x4f, KEY_ENTER },
3432cf86f6SMauro Carvalho Chehab
3532cf86f6SMauro Carvalho Chehab { 0x1e, KEY_VOLUMEUP },
3632cf86f6SMauro Carvalho Chehab { 0x0a, KEY_VOLUMEDOWN },
3732cf86f6SMauro Carvalho Chehab { 0x02, KEY_CHANNELDOWN },
3832cf86f6SMauro Carvalho Chehab { 0x05, KEY_CHANNELUP },
3932cf86f6SMauro Carvalho Chehab { 0x11, KEY_RECORD },
4032cf86f6SMauro Carvalho Chehab
4132cf86f6SMauro Carvalho Chehab { 0x14, KEY_PLAY },
4232cf86f6SMauro Carvalho Chehab { 0x4c, KEY_PAUSE },
4332cf86f6SMauro Carvalho Chehab { 0x1a, KEY_STOP },
4432cf86f6SMauro Carvalho Chehab { 0x40, KEY_REWIND },
4532cf86f6SMauro Carvalho Chehab { 0x12, KEY_FASTFORWARD },
4632cf86f6SMauro Carvalho Chehab { 0x41, KEY_PREVIOUSSONG },
4732cf86f6SMauro Carvalho Chehab { 0x42, KEY_NEXTSONG },
4832cf86f6SMauro Carvalho Chehab { 0x54, KEY_SAVE },
4932cf86f6SMauro Carvalho Chehab { 0x50, KEY_LANGUAGE },
5032cf86f6SMauro Carvalho Chehab { 0x47, KEY_MEDIA },
5132cf86f6SMauro Carvalho Chehab { 0x4d, KEY_SCREEN },
5232cf86f6SMauro Carvalho Chehab { 0x43, KEY_SUBTITLE },
5332cf86f6SMauro Carvalho Chehab { 0x10, KEY_MUTE },
5432cf86f6SMauro Carvalho Chehab { 0x49, KEY_AUDIO },
5532cf86f6SMauro Carvalho Chehab { 0x07, KEY_SLEEP },
5632cf86f6SMauro Carvalho Chehab { 0x08, KEY_VIDEO },
5732cf86f6SMauro Carvalho Chehab { 0x0e, KEY_AGAIN },
5832cf86f6SMauro Carvalho Chehab { 0x45, KEY_EQUAL },
5932cf86f6SMauro Carvalho Chehab { 0x46, KEY_MINUS },
6032cf86f6SMauro Carvalho Chehab { 0x18, KEY_RED },
6132cf86f6SMauro Carvalho Chehab { 0x53, KEY_GREEN },
6232cf86f6SMauro Carvalho Chehab { 0x5e, KEY_YELLOW },
6332cf86f6SMauro Carvalho Chehab { 0x5f, KEY_BLUE },
6432cf86f6SMauro Carvalho Chehab };
6532cf86f6SMauro Carvalho Chehab
66d100e659SMauro Carvalho Chehab static struct rc_map_list twinhan_vp1027_map = {
6732cf86f6SMauro Carvalho Chehab .map = {
6832cf86f6SMauro Carvalho Chehab .scan = twinhan_vp1027,
6932cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(twinhan_vp1027),
70771f8726SSean Young .rc_proto = RC_PROTO_NEC,
7132cf86f6SMauro Carvalho Chehab .name = RC_MAP_TWINHAN_VP1027_DVBS,
7232cf86f6SMauro Carvalho Chehab }
7332cf86f6SMauro Carvalho Chehab };
7432cf86f6SMauro Carvalho Chehab
init_rc_map_twinhan_vp1027(void)7532cf86f6SMauro Carvalho Chehab static int __init init_rc_map_twinhan_vp1027(void)
7632cf86f6SMauro Carvalho Chehab {
77d100e659SMauro Carvalho Chehab return rc_map_register(&twinhan_vp1027_map);
7832cf86f6SMauro Carvalho Chehab }
7932cf86f6SMauro Carvalho Chehab
exit_rc_map_twinhan_vp1027(void)8032cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_twinhan_vp1027(void)
8132cf86f6SMauro Carvalho Chehab {
82d100e659SMauro Carvalho Chehab rc_map_unregister(&twinhan_vp1027_map);
8332cf86f6SMauro Carvalho Chehab }
8432cf86f6SMauro Carvalho Chehab
8532cf86f6SMauro Carvalho Chehab module_init(init_rc_map_twinhan_vp1027)
8632cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_twinhan_vp1027)
8732cf86f6SMauro Carvalho Chehab
8832cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
8932cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Sergey Ivanov <123kash@gmail.com>");
90