This source file includes following definitions.
- init_rc_map_behold
- exit_rc_map_behold
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 static struct rc_map_table behold[] = {
24
25
26
27
28 { 0x866b1c, KEY_TUNER },
29 { 0x866b12, KEY_POWER },
30
31
32
33
34
35
36
37
38
39
40 { 0x866b01, KEY_NUMERIC_1 },
41 { 0x866b02, KEY_NUMERIC_2 },
42 { 0x866b03, KEY_NUMERIC_3 },
43 { 0x866b04, KEY_NUMERIC_4 },
44 { 0x866b05, KEY_NUMERIC_5 },
45 { 0x866b06, KEY_NUMERIC_6 },
46 { 0x866b07, KEY_NUMERIC_7 },
47 { 0x866b08, KEY_NUMERIC_8 },
48 { 0x866b09, KEY_NUMERIC_9 },
49
50
51
52
53 { 0x866b0a, KEY_AGAIN },
54 { 0x866b00, KEY_NUMERIC_0 },
55 { 0x866b17, KEY_MODE },
56
57
58
59
60 { 0x866b14, KEY_SCREEN },
61 { 0x866b10, KEY_ZOOM },
62
63
64
65
66
67
68
69
70
71
72 { 0x866b0b, KEY_CHANNELUP },
73 { 0x866b18, KEY_VOLUMEDOWN },
74 { 0x866b16, KEY_OK },
75 { 0x866b0c, KEY_VOLUMEUP },
76 { 0x866b15, KEY_CHANNELDOWN },
77
78
79
80
81 { 0x866b11, KEY_MUTE },
82 { 0x866b0d, KEY_INFO },
83
84
85
86
87
88
89
90
91 { 0x866b0f, KEY_RECORD },
92 { 0x866b1b, KEY_PLAYPAUSE },
93 { 0x866b1a, KEY_STOP },
94 { 0x866b0e, KEY_TEXT },
95 { 0x866b1f, KEY_RED },
96 { 0x866b1e, KEY_VIDEO },
97
98
99
100
101
102 { 0x866b1d, KEY_SLEEP },
103 { 0x866b13, KEY_GREEN },
104 { 0x866b19, KEY_BLUE },
105
106
107
108
109 { 0x866b58, KEY_SLOW },
110 { 0x866b5c, KEY_CAMERA },
111
112 };
113
114 static struct rc_map_list behold_map = {
115 .map = {
116 .scan = behold,
117 .size = ARRAY_SIZE(behold),
118 .rc_proto = RC_PROTO_NECX,
119 .name = RC_MAP_BEHOLD,
120 }
121 };
122
123 static int __init init_rc_map_behold(void)
124 {
125 return rc_map_register(&behold_map);
126 }
127
128 static void __exit exit_rc_map_behold(void)
129 {
130 rc_map_unregister(&behold_map);
131 }
132
133 module_init(init_rc_map_behold)
134 module_exit(exit_rc_map_behold)
135
136 MODULE_LICENSE("GPL");
137 MODULE_AUTHOR("Mauro Carvalho Chehab");