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 gadmei_rm008z[] = {
21 { 0x14, KEY_POWER2},
22 { 0x0c, KEY_MUTE},
23
24 { 0x18, KEY_TV},
25 { 0x0e, KEY_VIDEO},
26 { 0x0b, KEY_AUDIO},
27 { 0x0f, KEY_RADIO},
28
29 { 0x00, KEY_1},
30 { 0x01, KEY_2},
31 { 0x02, KEY_3},
32 { 0x03, KEY_4},
33 { 0x04, KEY_5},
34 { 0x05, KEY_6},
35 { 0x06, KEY_7},
36 { 0x07, KEY_8},
37 { 0x08, KEY_9},
38 { 0x09, KEY_0},
39 { 0x0a, KEY_INFO},
40 { 0x1c, KEY_BACKSPACE},
41
42 { 0x0d, KEY_PLAY},
43 { 0x1e, KEY_CAMERA},
44 { 0x1a, KEY_RECORD},
45 { 0x17, KEY_STOP},
46
47 { 0x1f, KEY_UP},
48 { 0x44, KEY_DOWN},
49 { 0x46, KEY_TAB},
50 { 0x4a, KEY_ZOOM},
51
52 { 0x10, KEY_VOLUMEUP},
53 { 0x11, KEY_VOLUMEDOWN},
54 { 0x12, KEY_CHANNELUP},
55 { 0x13, KEY_CHANNELDOWN},
56 { 0x15, KEY_ENTER},
57};
58
59static struct rc_map_list gadmei_rm008z_map = {
60 .map = {
61 .scan = gadmei_rm008z,
62 .size = ARRAY_SIZE(gadmei_rm008z),
63 .rc_type = RC_TYPE_UNKNOWN,
64 .name = RC_MAP_GADMEI_RM008Z,
65 }
66};
67
68static int __init init_rc_map_gadmei_rm008z(void)
69{
70 return rc_map_register(&gadmei_rm008z_map);
71}
72
73static void __exit exit_rc_map_gadmei_rm008z(void)
74{
75 rc_map_unregister(&gadmei_rm008z_map);
76}
77
78module_init(init_rc_map_gadmei_rm008z)
79module_exit(exit_rc_map_gadmei_rm008z)
80
81MODULE_LICENSE("GPL");
82MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
83