This source file includes following definitions.
- init_rc_map_msi_tvanywhere_plus
- exit_rc_map_msi_tvanywhere_plus
1
2
3
4
5
6
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 static struct rc_map_table msi_tvanywhere_plus[] = {
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 { 0x01, KEY_NUMERIC_1 },
48 { 0x0b, KEY_NUMERIC_2 },
49 { 0x1b, KEY_NUMERIC_3 },
50 { 0x05, KEY_NUMERIC_4 },
51 { 0x09, KEY_NUMERIC_5 },
52 { 0x15, KEY_NUMERIC_6 },
53 { 0x06, KEY_NUMERIC_7 },
54 { 0x0a, KEY_NUMERIC_8 },
55 { 0x12, KEY_NUMERIC_9 },
56 { 0x02, KEY_NUMERIC_0 },
57 { 0x10, KEY_KPPLUS },
58 { 0x13, KEY_AGAIN },
59
60 { 0x1e, KEY_POWER },
61 { 0x07, KEY_VIDEO },
62 { 0x1c, KEY_SEARCH },
63 { 0x18, KEY_MUTE },
64
65 { 0x03, KEY_RADIO },
66
67
68
69
70
71 { 0x3f, KEY_RIGHT },
72 { 0x37, KEY_LEFT },
73 { 0x2c, KEY_UP },
74 { 0x24, KEY_DOWN },
75
76 { 0x00, KEY_RECORD },
77 { 0x08, KEY_STOP },
78 { 0x11, KEY_PLAY },
79
80 { 0x0f, KEY_CLOSE },
81 { 0x19, KEY_ZOOM },
82 { 0x1a, KEY_CAMERA },
83 { 0x0d, KEY_LANGUAGE },
84
85 { 0x14, KEY_VOLUMEDOWN },
86 { 0x16, KEY_VOLUMEUP },
87 { 0x17, KEY_CHANNELDOWN },
88 { 0x1f, KEY_CHANNELUP },
89
90 { 0x04, KEY_REWIND },
91 { 0x0e, KEY_MENU },
92 { 0x0c, KEY_FASTFORWARD },
93 { 0x1d, KEY_RESTART },
94 };
95
96 static struct rc_map_list msi_tvanywhere_plus_map = {
97 .map = {
98 .scan = msi_tvanywhere_plus,
99 .size = ARRAY_SIZE(msi_tvanywhere_plus),
100 .rc_proto = RC_PROTO_UNKNOWN,
101 .name = RC_MAP_MSI_TVANYWHERE_PLUS,
102 }
103 };
104
105 static int __init init_rc_map_msi_tvanywhere_plus(void)
106 {
107 return rc_map_register(&msi_tvanywhere_plus_map);
108 }
109
110 static void __exit exit_rc_map_msi_tvanywhere_plus(void)
111 {
112 rc_map_unregister(&msi_tvanywhere_plus_map);
113 }
114
115 module_init(init_rc_map_msi_tvanywhere_plus)
116 module_exit(exit_rc_map_msi_tvanywhere_plus)
117
118 MODULE_LICENSE("GPL");
119 MODULE_AUTHOR("Mauro Carvalho Chehab");