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