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
20static struct rc_map_table encore_enltv_fm53[] = {
21 { 0x10, KEY_POWER2},
22 { 0x06, KEY_MUTE},
23
24 { 0x09, KEY_1},
25 { 0x1d, KEY_2},
26 { 0x1f, KEY_3},
27 { 0x19, KEY_4},
28 { 0x1b, KEY_5},
29 { 0x11, KEY_6},
30 { 0x17, KEY_7},
31 { 0x12, KEY_8},
32 { 0x16, KEY_9},
33 { 0x48, KEY_0},
34
35 { 0x04, KEY_LIST},
36 { 0x40, KEY_LAST},
37
38 { 0x02, KEY_MODE},
39 { 0x05, KEY_CAMERA},
40
41 { 0x4c, KEY_CHANNELUP},
42 { 0x00, KEY_CHANNELDOWN},
43 { 0x0d, KEY_VOLUMEUP},
44 { 0x15, KEY_VOLUMEDOWN},
45 { 0x49, KEY_ENTER},
46
47 { 0x54, KEY_RECORD},
48 { 0x4d, KEY_PLAY},
49
50 { 0x1e, KEY_MENU},
51 { 0x0e, KEY_RIGHT},
52 { 0x1a, KEY_LEFT},
53
54 { 0x0a, KEY_CLEAR},
55 { 0x0c, KEY_ZOOM},
56 { 0x47, KEY_SLEEP},
57};
58
59static struct rc_map_list encore_enltv_fm53_map = {
60 .map = {
61 .scan = encore_enltv_fm53,
62 .size = ARRAY_SIZE(encore_enltv_fm53),
63 .rc_type = RC_TYPE_UNKNOWN,
64 .name = RC_MAP_ENCORE_ENLTV_FM53,
65 }
66};
67
68static int __init init_rc_map_encore_enltv_fm53(void)
69{
70 return rc_map_register(&encore_enltv_fm53_map);
71}
72
73static void __exit exit_rc_map_encore_enltv_fm53(void)
74{
75 rc_map_unregister(&encore_enltv_fm53_map);
76}
77
78module_init(init_rc_map_encore_enltv_fm53)
79module_exit(exit_rc_map_encore_enltv_fm53)
80
81MODULE_LICENSE("GPL");
82MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
83