This source file includes following definitions.
- init_rc_map_powercolor_real_angel
- exit_rc_map_powercolor_real_angel
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 static struct rc_map_table powercolor_real_angel[] = {
17 { 0x38, KEY_SWITCHVIDEOMODE },
18 { 0x0c, KEY_MEDIA },
19 { 0x00, KEY_NUMERIC_0 },
20 { 0x01, KEY_NUMERIC_1 },
21 { 0x02, KEY_NUMERIC_2 },
22 { 0x03, KEY_NUMERIC_3 },
23 { 0x04, KEY_NUMERIC_4 },
24 { 0x05, KEY_NUMERIC_5 },
25 { 0x06, KEY_NUMERIC_6 },
26 { 0x07, KEY_NUMERIC_7 },
27 { 0x08, KEY_NUMERIC_8 },
28 { 0x09, KEY_NUMERIC_9 },
29 { 0x0a, KEY_DIGITS },
30 { 0x29, KEY_PREVIOUS },
31 { 0x12, KEY_BRIGHTNESSUP },
32 { 0x13, KEY_BRIGHTNESSDOWN },
33 { 0x2b, KEY_MODE },
34 { 0x2c, KEY_TEXT },
35 { 0x20, KEY_CHANNELUP },
36 { 0x21, KEY_CHANNELDOWN },
37 { 0x10, KEY_VOLUMEUP },
38 { 0x11, KEY_VOLUMEDOWN },
39 { 0x0d, KEY_MUTE },
40 { 0x1f, KEY_RECORD },
41 { 0x17, KEY_PLAY },
42 { 0x16, KEY_PAUSE },
43 { 0x0b, KEY_STOP },
44 { 0x27, KEY_FASTFORWARD },
45 { 0x26, KEY_REWIND },
46 { 0x1e, KEY_SEARCH },
47 { 0x0e, KEY_CAMERA },
48 { 0x2d, KEY_SETUP },
49 { 0x0f, KEY_SCREEN },
50 { 0x14, KEY_RADIO },
51 { 0x25, KEY_POWER },
52 };
53
54 static struct rc_map_list powercolor_real_angel_map = {
55 .map = {
56 .scan = powercolor_real_angel,
57 .size = ARRAY_SIZE(powercolor_real_angel),
58 .rc_proto = RC_PROTO_UNKNOWN,
59 .name = RC_MAP_POWERCOLOR_REAL_ANGEL,
60 }
61 };
62
63 static int __init init_rc_map_powercolor_real_angel(void)
64 {
65 return rc_map_register(&powercolor_real_angel_map);
66 }
67
68 static void __exit exit_rc_map_powercolor_real_angel(void)
69 {
70 rc_map_unregister(&powercolor_real_angel_map);
71 }
72
73 module_init(init_rc_map_powercolor_real_angel)
74 module_exit(exit_rc_map_powercolor_real_angel)
75
76 MODULE_LICENSE("GPL");
77 MODULE_AUTHOR("Mauro Carvalho Chehab");