1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21#include <media/rc-map.h>
22#include <linux/module.h>
23
24
25
26
27
28
29static struct rc_map_table digittrade[] = {
30 { 0x0000, KEY_9 },
31 { 0x0001, KEY_EPG },
32 { 0x0002, KEY_VOLUMEDOWN },
33 { 0x0003, KEY_TEXT },
34 { 0x0004, KEY_8 },
35 { 0x0005, KEY_MUTE },
36 { 0x0006, KEY_POWER2 },
37 { 0x0009, KEY_ZOOM },
38 { 0x000a, KEY_RECORD },
39 { 0x000d, KEY_SUBTITLE },
40 { 0x000e, KEY_STOP },
41 { 0x0010, KEY_OK },
42 { 0x0011, KEY_2 },
43 { 0x0012, KEY_4 },
44 { 0x0015, KEY_3 },
45 { 0x0016, KEY_5 },
46 { 0x0017, KEY_CHANNELDOWN },
47 { 0x0019, KEY_CHANNELUP },
48 { 0x001a, KEY_PAUSE },
49 { 0x001b, KEY_1 },
50 { 0x001d, KEY_AUDIO },
51 { 0x001e, KEY_PLAY },
52 { 0x001f, KEY_CAMERA },
53 { 0x0040, KEY_VOLUMEUP },
54 { 0x0048, KEY_7 },
55 { 0x004c, KEY_6 },
56 { 0x004d, KEY_PLAYPAUSE },
57 { 0x0054, KEY_0 },
58};
59
60static struct rc_map_list digittrade_map = {
61 .map = {
62 .scan = digittrade,
63 .size = ARRAY_SIZE(digittrade),
64 .rc_type = RC_TYPE_NEC,
65 .name = RC_MAP_DIGITTRADE,
66 }
67};
68
69static int __init init_rc_map_digittrade(void)
70{
71 return rc_map_register(&digittrade_map);
72}
73
74static void __exit exit_rc_map_digittrade(void)
75{
76 rc_map_unregister(&digittrade_map);
77}
78
79module_init(init_rc_map_digittrade)
80module_exit(exit_rc_map_digittrade)
81
82MODULE_LICENSE("GPL");
83MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
84