This source file includes following definitions.
- init_rc_map_reddo
- exit_rc_map_reddo
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 static struct rc_map_table reddo[] = {
25 { 0x61d601, KEY_EPG },
26 { 0x61d602, KEY_NUMERIC_3 },
27 { 0x61d604, KEY_NUMERIC_1 },
28 { 0x61d605, KEY_NUMERIC_5 },
29 { 0x61d606, KEY_NUMERIC_6 },
30 { 0x61d607, KEY_CHANNELDOWN },
31 { 0x61d608, KEY_NUMERIC_2 },
32 { 0x61d609, KEY_CHANNELUP },
33 { 0x61d60a, KEY_NUMERIC_9 },
34 { 0x61d60b, KEY_ZOOM },
35 { 0x61d60c, KEY_NUMERIC_7 },
36 { 0x61d60d, KEY_NUMERIC_8 },
37 { 0x61d60e, KEY_VOLUMEUP },
38 { 0x61d60f, KEY_NUMERIC_4 },
39 { 0x61d610, KEY_ESC },
40 { 0x61d611, KEY_NUMERIC_0 },
41 { 0x61d612, KEY_OK },
42 { 0x61d613, KEY_VOLUMEDOWN },
43 { 0x61d614, KEY_RECORD },
44 { 0x61d615, KEY_STOP },
45 { 0x61d616, KEY_PLAY },
46 { 0x61d617, KEY_MUTE },
47 { 0x61d643, KEY_POWER2 },
48 };
49
50 static struct rc_map_list reddo_map = {
51 .map = {
52 .scan = reddo,
53 .size = ARRAY_SIZE(reddo),
54 .rc_proto = RC_PROTO_NECX,
55 .name = RC_MAP_REDDO,
56 }
57 };
58
59 static int __init init_rc_map_reddo(void)
60 {
61 return rc_map_register(&reddo_map);
62 }
63
64 static void __exit exit_rc_map_reddo(void)
65 {
66 rc_map_unregister(&reddo_map);
67 }
68
69 module_init(init_rc_map_reddo)
70 module_exit(exit_rc_map_reddo)
71
72 MODULE_LICENSE("GPL");
73 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");