1 // SPDX-License-Identifier: GPL-2.0-only
2 #include <media/rc-map.h>
3 #include <linux/module.h>
5 static struct rc_map_table twinhan_vp1027
[] = {
7 { 0x17, KEY_FAVORITES
},
13 { 0x03, KEY_NUMERIC_1
},
14 { 0x01, KEY_NUMERIC_2
},
15 { 0x06, KEY_NUMERIC_3
},
16 { 0x09, KEY_NUMERIC_4
},
17 { 0x1d, KEY_NUMERIC_5
},
18 { 0x1f, KEY_NUMERIC_6
},
19 { 0x0d, KEY_NUMERIC_7
},
20 { 0x19, KEY_NUMERIC_8
},
21 { 0x1b, KEY_NUMERIC_9
},
22 { 0x15, KEY_NUMERIC_0
},
26 { 0x13, KEY_BACKSPACE
},
35 { 0x1e, KEY_VOLUMEUP
},
36 { 0x0a, KEY_VOLUMEDOWN
},
37 { 0x02, KEY_CHANNELDOWN
},
38 { 0x05, KEY_CHANNELUP
},
45 { 0x12, KEY_FASTFORWARD
},
46 { 0x41, KEY_PREVIOUSSONG
},
47 { 0x42, KEY_NEXTSONG
},
49 { 0x50, KEY_LANGUAGE
},
52 { 0x43, KEY_SUBTITLE
},
66 static struct rc_map_list twinhan_vp1027_map
= {
68 .scan
= twinhan_vp1027
,
69 .size
= ARRAY_SIZE(twinhan_vp1027
),
70 .rc_proto
= RC_PROTO_NEC
,
71 .name
= RC_MAP_TWINHAN_VP1027_DVBS
,
75 static int __init
init_rc_map_twinhan_vp1027(void)
77 return rc_map_register(&twinhan_vp1027_map
);
80 static void __exit
exit_rc_map_twinhan_vp1027(void)
82 rc_map_unregister(&twinhan_vp1027_map
);
85 module_init(init_rc_map_twinhan_vp1027
)
86 module_exit(exit_rc_map_twinhan_vp1027
)
88 MODULE_LICENSE("GPL");
89 MODULE_AUTHOR("Sergey Ivanov <123kash@gmail.com>");