This source file includes following definitions.
- init_rc_map_norwood
- exit_rc_map_norwood
1
2
3
4
5
6
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11
12
13
14
15 static struct rc_map_table norwood[] = {
16
17 { 0x20, KEY_NUMERIC_0 },
18 { 0x21, KEY_NUMERIC_1 },
19 { 0x22, KEY_NUMERIC_2 },
20 { 0x23, KEY_NUMERIC_3 },
21 { 0x24, KEY_NUMERIC_4 },
22 { 0x25, KEY_NUMERIC_5 },
23 { 0x26, KEY_NUMERIC_6 },
24 { 0x27, KEY_NUMERIC_7 },
25 { 0x28, KEY_NUMERIC_8 },
26 { 0x29, KEY_NUMERIC_9 },
27
28 { 0x78, KEY_VIDEO },
29 { 0x2c, KEY_EXIT },
30 { 0x2a, KEY_SELECT },
31 { 0x69, KEY_AGAIN },
32
33 { 0x32, KEY_BRIGHTNESSUP },
34 { 0x33, KEY_BRIGHTNESSDOWN },
35 { 0x6b, KEY_KPPLUS },
36 { 0x6c, KEY_KPMINUS },
37
38 { 0x2d, KEY_MUTE },
39 { 0x30, KEY_VOLUMEUP },
40 { 0x31, KEY_VOLUMEDOWN },
41 { 0x60, KEY_CHANNELUP },
42 { 0x61, KEY_CHANNELDOWN },
43
44 { 0x3f, KEY_RECORD },
45 { 0x37, KEY_PLAY },
46 { 0x36, KEY_PAUSE },
47 { 0x2b, KEY_STOP },
48 { 0x67, KEY_FASTFORWARD },
49 { 0x66, KEY_REWIND },
50 { 0x3e, KEY_SEARCH },
51 { 0x2e, KEY_CAMERA },
52 { 0x6d, KEY_MENU },
53 { 0x2f, KEY_ZOOM },
54 { 0x34, KEY_RADIO },
55 { 0x65, KEY_POWER },
56 };
57
58 static struct rc_map_list norwood_map = {
59 .map = {
60 .scan = norwood,
61 .size = ARRAY_SIZE(norwood),
62 .rc_proto = RC_PROTO_UNKNOWN,
63 .name = RC_MAP_NORWOOD,
64 }
65 };
66
67 static int __init init_rc_map_norwood(void)
68 {
69 return rc_map_register(&norwood_map);
70 }
71
72 static void __exit exit_rc_map_norwood(void)
73 {
74 rc_map_unregister(&norwood_map);
75 }
76
77 module_init(init_rc_map_norwood)
78 module_exit(exit_rc_map_norwood)
79
80 MODULE_LICENSE("GPL");
81 MODULE_AUTHOR("Mauro Carvalho Chehab");