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
19static struct rc_map_table encore_enltv[] = {
20
21
22
23 { 0x0d, KEY_MUTE },
24
25 { 0x1e, KEY_TV },
26 { 0x00, KEY_VIDEO },
27 { 0x01, KEY_AUDIO },
28 { 0x02, KEY_CAMERA },
29
30 { 0x1f, KEY_1 },
31 { 0x03, KEY_2 },
32 { 0x04, KEY_3 },
33 { 0x05, KEY_4 },
34 { 0x1c, KEY_5 },
35 { 0x06, KEY_6 },
36 { 0x07, KEY_7 },
37 { 0x08, KEY_8 },
38 { 0x1d, KEY_9 },
39 { 0x0a, KEY_0 },
40
41 { 0x09, KEY_LIST },
42 { 0x0b, KEY_LAST },
43
44 { 0x14, KEY_HOME },
45 { 0x15, KEY_EXIT },
46 { 0x16, KEY_CHANNELUP },
47 { 0x12, KEY_CHANNELDOWN },
48 { 0x0c, KEY_VOLUMEUP },
49 { 0x17, KEY_VOLUMEDOWN },
50
51 { 0x18, KEY_ENTER },
52
53 { 0x0e, KEY_ESC },
54 { 0x13, KEY_CYCLEWINDOWS },
55 { 0x11, KEY_TAB },
56 { 0x19, KEY_SWITCHVIDEOMODE },
57
58 { 0x1a, KEY_MENU },
59 { 0x1b, KEY_ZOOM },
60 { 0x44, KEY_TIME },
61 { 0x40, KEY_MODE },
62
63 { 0x5a, KEY_RECORD },
64 { 0x42, KEY_PLAY },
65 { 0x45, KEY_STOP },
66 { 0x43, KEY_CAMERA },
67
68 { 0x48, KEY_REWIND },
69 { 0x4a, KEY_FASTFORWARD },
70 { 0x49, KEY_PREVIOUS },
71 { 0x4b, KEY_NEXT },
72
73 { 0x4c, KEY_FAVORITES },
74 { 0x4d, KEY_SOUND },
75 { 0x4e, KEY_LANGUAGE },
76 { 0x4f, KEY_TEXT },
77
78 { 0x50, KEY_SLEEP },
79 { 0x51, KEY_MODE },
80 { 0x52, KEY_SELECT },
81 { 0x53, KEY_TEXT },
82
83
84 { 0x59, KEY_RED },
85 { 0x41, KEY_GREEN },
86 { 0x47, KEY_YELLOW },
87 { 0x57, KEY_BLUE },
88};
89
90static struct rc_map_list encore_enltv_map = {
91 .map = {
92 .scan = encore_enltv,
93 .size = ARRAY_SIZE(encore_enltv),
94 .rc_type = RC_TYPE_UNKNOWN,
95 .name = RC_MAP_ENCORE_ENLTV,
96 }
97};
98
99static int __init init_rc_map_encore_enltv(void)
100{
101 return rc_map_register(&encore_enltv_map);
102}
103
104static void __exit exit_rc_map_encore_enltv(void)
105{
106 rc_map_unregister(&encore_enltv_map);
107}
108
109module_init(init_rc_map_encore_enltv)
110module_exit(exit_rc_map_encore_enltv)
111
112MODULE_LICENSE("GPL");
113MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
114