This source file includes following definitions.
- init_rc_map_pv951
- exit_rc_map_pv951
1
2
3
4
5
6
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11
12
13 static struct rc_map_table pv951[] = {
14 { 0x00, KEY_NUMERIC_0 },
15 { 0x01, KEY_NUMERIC_1 },
16 { 0x02, KEY_NUMERIC_2 },
17 { 0x03, KEY_NUMERIC_3 },
18 { 0x04, KEY_NUMERIC_4 },
19 { 0x05, KEY_NUMERIC_5 },
20 { 0x06, KEY_NUMERIC_6 },
21 { 0x07, KEY_NUMERIC_7 },
22 { 0x08, KEY_NUMERIC_8 },
23 { 0x09, KEY_NUMERIC_9 },
24
25 { 0x12, KEY_POWER },
26 { 0x10, KEY_MUTE },
27 { 0x1f, KEY_VOLUMEDOWN },
28 { 0x1b, KEY_VOLUMEUP },
29 { 0x1a, KEY_CHANNELUP },
30 { 0x1e, KEY_CHANNELDOWN },
31 { 0x0e, KEY_PAGEUP },
32 { 0x1d, KEY_PAGEDOWN },
33 { 0x13, KEY_SOUND },
34
35 { 0x18, KEY_KPPLUSMINUS },
36 { 0x16, KEY_SUBTITLE },
37 { 0x0d, KEY_TEXT },
38 { 0x0b, KEY_TV },
39 { 0x11, KEY_PC },
40 { 0x17, KEY_OK },
41 { 0x19, KEY_MODE },
42 { 0x0c, KEY_SEARCH },
43
44
45 { 0x0f, KEY_VIDEO },
46 { 0x0a, KEY_KPPLUS },
47 { 0x14, KEY_EQUAL },
48 { 0x1c, KEY_TV },
49 };
50
51 static struct rc_map_list pv951_map = {
52 .map = {
53 .scan = pv951,
54 .size = ARRAY_SIZE(pv951),
55 .rc_proto = RC_PROTO_UNKNOWN,
56 .name = RC_MAP_PV951,
57 }
58 };
59
60 static int __init init_rc_map_pv951(void)
61 {
62 return rc_map_register(&pv951_map);
63 }
64
65 static void __exit exit_rc_map_pv951(void)
66 {
67 rc_map_unregister(&pv951_map);
68 }
69
70 module_init(init_rc_map_pv951)
71 module_exit(exit_rc_map_pv951)
72
73 MODULE_LICENSE("GPL");
74 MODULE_AUTHOR("Mauro Carvalho Chehab");