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
20
21static struct rc_map_table pixelview_new[] = {
22 { 0x3c, KEY_TIME },
23 { 0x12, KEY_POWER },
24
25 { 0x3d, KEY_1 },
26 { 0x38, KEY_2 },
27 { 0x18, KEY_3 },
28 { 0x35, KEY_4 },
29 { 0x39, KEY_5 },
30 { 0x15, KEY_6 },
31 { 0x36, KEY_7 },
32 { 0x3a, KEY_8 },
33 { 0x1e, KEY_9 },
34 { 0x3e, KEY_0 },
35
36 { 0x1c, KEY_AGAIN },
37 { 0x3f, KEY_VIDEO },
38 { 0x1f, KEY_LAST },
39 { 0x1b, KEY_MUTE },
40
41 { 0x17, KEY_CHANNELDOWN },
42 { 0x16, KEY_CHANNELUP },
43 { 0x10, KEY_VOLUMEUP },
44 { 0x14, KEY_VOLUMEDOWN },
45 { 0x13, KEY_ZOOM },
46
47 { 0x19, KEY_CAMERA },
48 { 0x1a, KEY_SEARCH },
49
50 { 0x37, KEY_REWIND },
51 { 0x32, KEY_RECORD },
52 { 0x33, KEY_FORWARD },
53 { 0x11, KEY_STOP },
54 { 0x3b, KEY_PLAY },
55 { 0x30, KEY_PLAYPAUSE },
56
57 { 0x31, KEY_TV },
58 { 0x34, KEY_RADIO },
59};
60
61static struct rc_map_list pixelview_new_map = {
62 .map = {
63 .scan = pixelview_new,
64 .size = ARRAY_SIZE(pixelview_new),
65 .rc_type = RC_TYPE_UNKNOWN,
66 .name = RC_MAP_PIXELVIEW_NEW,
67 }
68};
69
70static int __init init_rc_map_pixelview_new(void)
71{
72 return rc_map_register(&pixelview_new_map);
73}
74
75static void __exit exit_rc_map_pixelview_new(void)
76{
77 rc_map_unregister(&pixelview_new_map);
78}
79
80module_init(init_rc_map_pixelview_new)
81module_exit(exit_rc_map_pixelview_new)
82
83MODULE_LICENSE("GPL");
84MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
85