1
2
3
4
5
6
7
8
9
10
11
12#include <media/rc-map.h>
13#include <linux/module.h>
14
15
16
17
18
19
20
21
22
23
24
25
26static struct rc_map_table avermedia_m135a[] = {
27
28 { 0x0200, KEY_POWER2 },
29 { 0x022e, KEY_DOT },
30 { 0x0201, KEY_MODE },
31
32 { 0x0205, KEY_1 },
33 { 0x0206, KEY_2 },
34 { 0x0207, KEY_3 },
35 { 0x0209, KEY_4 },
36 { 0x020a, KEY_5 },
37 { 0x020b, KEY_6 },
38 { 0x020d, KEY_7 },
39 { 0x020e, KEY_8 },
40 { 0x020f, KEY_9 },
41 { 0x0211, KEY_0 },
42
43 { 0x0213, KEY_RIGHT },
44 { 0x0212, KEY_LEFT },
45
46 { 0x0217, KEY_SLEEP },
47 { 0x0210, KEY_SHUFFLE },
48
49 { 0x0303, KEY_CHANNELUP },
50 { 0x0302, KEY_CHANNELDOWN },
51 { 0x021f, KEY_VOLUMEUP },
52 { 0x021e, KEY_VOLUMEDOWN },
53 { 0x020c, KEY_ENTER },
54
55 { 0x0214, KEY_MUTE },
56 { 0x0208, KEY_AUDIO },
57
58 { 0x0203, KEY_TEXT },
59 { 0x0204, KEY_EPG },
60 { 0x022b, KEY_TV2 },
61
62 { 0x021d, KEY_RED },
63 { 0x021c, KEY_YELLOW },
64 { 0x0301, KEY_GREEN },
65 { 0x0300, KEY_BLUE },
66
67 { 0x021a, KEY_PLAYPAUSE },
68 { 0x0219, KEY_RECORD },
69 { 0x0218, KEY_PLAY },
70 { 0x021b, KEY_STOP },
71
72
73 { 0x0401, KEY_POWER2 },
74 { 0x0406, KEY_MUTE },
75 { 0x0408, KEY_MODE },
76
77 { 0x0409, KEY_1 },
78 { 0x040a, KEY_2 },
79 { 0x040b, KEY_3 },
80 { 0x040c, KEY_4 },
81 { 0x040d, KEY_5 },
82 { 0x040e, KEY_6 },
83 { 0x040f, KEY_7 },
84 { 0x0410, KEY_8 },
85 { 0x0411, KEY_9 },
86 { 0x044c, KEY_DOT },
87 { 0x0412, KEY_0 },
88 { 0x0407, KEY_REFRESH },
89
90 { 0x0413, KEY_AUDIO },
91 { 0x0440, KEY_SCREEN },
92 { 0x0441, KEY_HOME },
93 { 0x0442, KEY_BACK },
94 { 0x0447, KEY_UP },
95 { 0x0448, KEY_DOWN },
96 { 0x0449, KEY_LEFT },
97 { 0x044a, KEY_RIGHT },
98 { 0x044b, KEY_OK },
99 { 0x0404, KEY_VOLUMEUP },
100 { 0x0405, KEY_VOLUMEDOWN },
101 { 0x0402, KEY_CHANNELUP },
102 { 0x0403, KEY_CHANNELDOWN },
103
104 { 0x0443, KEY_RED },
105 { 0x0444, KEY_GREEN },
106 { 0x0445, KEY_YELLOW },
107 { 0x0446, KEY_BLUE },
108
109 { 0x0414, KEY_TEXT },
110 { 0x0415, KEY_EPG },
111 { 0x041a, KEY_TV2 },
112 { 0x041b, KEY_CAMERA },
113
114 { 0x0417, KEY_RECORD },
115 { 0x0416, KEY_PLAYPAUSE },
116 { 0x0418, KEY_STOP },
117 { 0x0419, KEY_PAUSE },
118
119 { 0x041f, KEY_PREVIOUS },
120 { 0x041c, KEY_REWIND },
121 { 0x041d, KEY_FORWARD },
122 { 0x041e, KEY_NEXT },
123};
124
125static struct rc_map_list avermedia_m135a_map = {
126 .map = {
127 .scan = avermedia_m135a,
128 .size = ARRAY_SIZE(avermedia_m135a),
129 .rc_type = RC_TYPE_NEC,
130 .name = RC_MAP_AVERMEDIA_M135A,
131 }
132};
133
134static int __init init_rc_map_avermedia_m135a(void)
135{
136 return rc_map_register(&avermedia_m135a_map);
137}
138
139static void __exit exit_rc_map_avermedia_m135a(void)
140{
141 rc_map_unregister(&avermedia_m135a_map);
142}
143
144module_init(init_rc_map_avermedia_m135a)
145module_exit(exit_rc_map_avermedia_m135a)
146
147MODULE_LICENSE("GPL");
148MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
149