1
2
3
4
5
6
7
8
9
10
11
12
13#include <media/rc-map.h>
14#include <linux/module.h>
15
16
17
18static struct rc_map_table avermedia_dvbt[] = {
19 { 0x28, KEY_0 },
20 { 0x22, KEY_1 },
21 { 0x12, KEY_2 },
22 { 0x32, KEY_3 },
23 { 0x24, KEY_4 },
24 { 0x14, KEY_5 },
25 { 0x34, KEY_6 },
26 { 0x26, KEY_7 },
27 { 0x16, KEY_8 },
28 { 0x36, KEY_9 },
29
30 { 0x20, KEY_VIDEO },
31 { 0x10, KEY_TEXT },
32 { 0x00, KEY_POWER },
33 { 0x04, KEY_AUDIO },
34 { 0x06, KEY_ZOOM },
35 { 0x18, KEY_SWITCHVIDEOMODE },
36 { 0x38, KEY_SEARCH },
37 { 0x08, KEY_INFO },
38 { 0x2a, KEY_REWIND },
39 { 0x1a, KEY_FASTFORWARD },
40 { 0x3a, KEY_RECORD },
41 { 0x0a, KEY_MUTE },
42 { 0x2c, KEY_RECORD },
43 { 0x1c, KEY_PAUSE },
44 { 0x3c, KEY_STOP },
45 { 0x0c, KEY_PLAY },
46 { 0x2e, KEY_RED },
47 { 0x01, KEY_BLUE },
48 { 0x0e, KEY_YELLOW },
49 { 0x21, KEY_GREEN },
50 { 0x11, KEY_CHANNELDOWN },
51 { 0x31, KEY_CHANNELUP },
52 { 0x1e, KEY_VOLUMEDOWN },
53 { 0x3e, KEY_VOLUMEUP },
54};
55
56static struct rc_map_list avermedia_dvbt_map = {
57 .map = {
58 .scan = avermedia_dvbt,
59 .size = ARRAY_SIZE(avermedia_dvbt),
60 .rc_type = RC_TYPE_UNKNOWN,
61 .name = RC_MAP_AVERMEDIA_DVBT,
62 }
63};
64
65static int __init init_rc_map_avermedia_dvbt(void)
66{
67 return rc_map_register(&avermedia_dvbt_map);
68}
69
70static void __exit exit_rc_map_avermedia_dvbt(void)
71{
72 rc_map_unregister(&avermedia_dvbt_map);
73}
74
75module_init(init_rc_map_avermedia_dvbt)
76module_exit(exit_rc_map_avermedia_dvbt)
77
78MODULE_LICENSE("GPL");
79MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
80