1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32#include <media/rc-map.h>
33#include <linux/module.h>
34
35static struct rc_map_table technisat_usb2[] = {
36 {0x0a0c, KEY_POWER},
37 {0x0a01, KEY_1},
38 {0x0a02, KEY_2},
39 {0x0a03, KEY_3},
40 {0x0a0d, KEY_MUTE},
41 {0x0a04, KEY_4},
42 {0x0a05, KEY_5},
43 {0x0a06, KEY_6},
44 {0x0a38, KEY_VIDEO},
45 {0x0a07, KEY_7},
46 {0x0a08, KEY_8},
47 {0x0a09, KEY_9},
48 {0x0a00, KEY_0},
49 {0x0a4f, KEY_INFO},
50 {0x0a20, KEY_CHANNELUP},
51 {0x0a52, KEY_MENU},
52 {0x0a11, KEY_VOLUMEUP},
53 {0x0a57, KEY_OK},
54 {0x0a10, KEY_VOLUMEDOWN},
55 {0x0a2f, KEY_EPG},
56 {0x0a21, KEY_CHANNELDOWN},
57 {0x0a22, KEY_REFRESH},
58 {0x0a3c, KEY_TEXT},
59 {0x0a76, KEY_ENTER},
60 {0x0a0f, KEY_HELP},
61 {0x0a6b, KEY_RED},
62 {0x0a6c, KEY_GREEN},
63 {0x0a6d, KEY_YELLOW},
64 {0x0a6e, KEY_BLUE},
65 {0x0a29, KEY_STOP},
66 {0x0a23, KEY_LANGUAGE},
67 {0x0a53, KEY_TV},
68 {0x0a0a, KEY_PROGRAM},
69};
70
71static struct rc_map_list technisat_usb2_map = {
72 .map = {
73 .scan = technisat_usb2,
74 .size = ARRAY_SIZE(technisat_usb2),
75 .rc_type = RC_TYPE_RC5,
76 .name = RC_MAP_TECHNISAT_USB2,
77 }
78};
79
80static int __init init_rc_map(void)
81{
82 return rc_map_register(&technisat_usb2_map);
83}
84
85static void __exit exit_rc_map(void)
86{
87 rc_map_unregister(&technisat_usb2_map);
88}
89
90module_init(init_rc_map)
91module_exit(exit_rc_map)
92
93MODULE_AUTHOR("Patrick Boettcher <pboettcher@kernellabs.com>");
94MODULE_LICENSE("GPL");
95