This source file includes following definitions.
- init_rc_map_manli
- exit_rc_map_manli
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 static struct rc_map_table manli[] = {
21
22
23
24
25
26 { 0x1c, KEY_RADIO },
27 { 0x12, KEY_POWER },
28
29
30
31
32
33
34
35
36
37
38 { 0x01, KEY_NUMERIC_1 },
39 { 0x02, KEY_NUMERIC_2 },
40 { 0x03, KEY_NUMERIC_3 },
41 { 0x04, KEY_NUMERIC_4 },
42 { 0x05, KEY_NUMERIC_5 },
43 { 0x06, KEY_NUMERIC_6 },
44 { 0x07, KEY_NUMERIC_7 },
45 { 0x08, KEY_NUMERIC_8 },
46 { 0x09, KEY_NUMERIC_9 },
47
48
49
50
51
52 { 0x0a, KEY_AGAIN },
53 { 0x00, KEY_NUMERIC_0 },
54 { 0x17, KEY_DIGITS },
55
56
57
58
59 { 0x14, KEY_MENU },
60 { 0x10, KEY_INFO },
61
62
63
64
65
66
67
68
69
70
71 { 0x0b, KEY_UP },
72 { 0x18, KEY_LEFT },
73 { 0x16, KEY_OK },
74 { 0x0c, KEY_RIGHT },
75 { 0x15, KEY_DOWN },
76
77
78
79
80
81 { 0x11, KEY_TV },
82 { 0x0d, KEY_MODE },
83
84
85
86
87
88
89
90
91 { 0x0f, KEY_AUDIO },
92 { 0x1b, KEY_VOLUMEUP },
93 { 0x1a, KEY_CHANNELUP },
94 { 0x0e, KEY_TIME },
95 { 0x1f, KEY_VOLUMEDOWN },
96 { 0x1e, KEY_CHANNELDOWN },
97
98
99
100
101 { 0x13, KEY_MUTE },
102 { 0x19, KEY_CAMERA },
103
104
105 };
106
107 static struct rc_map_list manli_map = {
108 .map = {
109 .scan = manli,
110 .size = ARRAY_SIZE(manli),
111 .rc_proto = RC_PROTO_UNKNOWN,
112 .name = RC_MAP_MANLI,
113 }
114 };
115
116 static int __init init_rc_map_manli(void)
117 {
118 return rc_map_register(&manli_map);
119 }
120
121 static void __exit exit_rc_map_manli(void)
122 {
123 rc_map_unregister(&manli_map);
124 }
125
126 module_init(init_rc_map_manli)
127 module_exit(exit_rc_map_manli)
128
129 MODULE_LICENSE("GPL");
130 MODULE_AUTHOR("Mauro Carvalho Chehab");