This source file includes following definitions.
- init_rc_map_winfast_usbii_deluxe
- exit_rc_map_winfast_usbii_deluxe
1
2
3
4
5
6
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11
12
13
14
15 static struct rc_map_table winfast_usbii_deluxe[] = {
16 { 0x62, KEY_NUMERIC_0},
17 { 0x75, KEY_NUMERIC_1},
18 { 0x76, KEY_NUMERIC_2},
19 { 0x77, KEY_NUMERIC_3},
20 { 0x79, KEY_NUMERIC_4},
21 { 0x7a, KEY_NUMERIC_5},
22 { 0x7b, KEY_NUMERIC_6},
23 { 0x7d, KEY_NUMERIC_7},
24 { 0x7e, KEY_NUMERIC_8},
25 { 0x7f, KEY_NUMERIC_9},
26
27 { 0x38, KEY_CAMERA},
28 { 0x37, KEY_RECORD},
29 { 0x35, KEY_TIME},
30
31 { 0x74, KEY_VOLUMEUP},
32 { 0x78, KEY_VOLUMEDOWN},
33 { 0x64, KEY_MUTE},
34
35 { 0x21, KEY_CHANNEL},
36 { 0x7c, KEY_CHANNELUP},
37 { 0x60, KEY_CHANNELDOWN},
38 { 0x61, KEY_LAST},
39
40 { 0x72, KEY_VIDEO},
41
42 { 0x70, KEY_POWER2},
43
44 { 0x39, KEY_CYCLEWINDOWS},
45 { 0x3a, KEY_NEW},
46 { 0x73, KEY_ZOOM},
47
48 { 0x66, KEY_INFO},
49
50 { 0x31, KEY_DOT},
51 { 0x63, KEY_ENTER},
52
53 };
54
55 static struct rc_map_list winfast_usbii_deluxe_map = {
56 .map = {
57 .scan = winfast_usbii_deluxe,
58 .size = ARRAY_SIZE(winfast_usbii_deluxe),
59 .rc_proto = RC_PROTO_UNKNOWN,
60 .name = RC_MAP_WINFAST_USBII_DELUXE,
61 }
62 };
63
64 static int __init init_rc_map_winfast_usbii_deluxe(void)
65 {
66 return rc_map_register(&winfast_usbii_deluxe_map);
67 }
68
69 static void __exit exit_rc_map_winfast_usbii_deluxe(void)
70 {
71 rc_map_unregister(&winfast_usbii_deluxe_map);
72 }
73
74 module_init(init_rc_map_winfast_usbii_deluxe)
75 module_exit(exit_rc_map_winfast_usbii_deluxe)
76
77 MODULE_LICENSE("GPL");
78 MODULE_AUTHOR("Mauro Carvalho Chehab");