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