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
18static struct rc_map_table apac_viewcomp[] = {
19
20 { 0x01, KEY_1 },
21 { 0x02, KEY_2 },
22 { 0x03, KEY_3 },
23 { 0x04, KEY_4 },
24 { 0x05, KEY_5 },
25 { 0x06, KEY_6 },
26 { 0x07, KEY_7 },
27 { 0x08, KEY_8 },
28 { 0x09, KEY_9 },
29 { 0x00, KEY_0 },
30 { 0x17, KEY_LAST },
31 { 0x0a, KEY_LIST },
32
33
34 { 0x1c, KEY_TUNER },
35 { 0x15, KEY_SEARCH },
36 { 0x12, KEY_POWER },
37 { 0x1f, KEY_VOLUMEDOWN },
38 { 0x1b, KEY_VOLUMEUP },
39 { 0x1e, KEY_CHANNELDOWN },
40 { 0x1a, KEY_CHANNELUP },
41
42 { 0x11, KEY_VIDEO },
43 { 0x0f, KEY_ZOOM },
44 { 0x13, KEY_MUTE },
45 { 0x10, KEY_TEXT },
46
47 { 0x0d, KEY_STOP },
48 { 0x0e, KEY_RECORD },
49 { 0x1d, KEY_PLAYPAUSE },
50 { 0x19, KEY_PLAY },
51
52 { 0x16, KEY_GOTO },
53 { 0x14, KEY_REFRESH },
54 { 0x0c, KEY_KPPLUS },
55 { 0x18, KEY_KPMINUS },
56};
57
58static struct rc_map_list apac_viewcomp_map = {
59 .map = {
60 .scan = apac_viewcomp,
61 .size = ARRAY_SIZE(apac_viewcomp),
62 .rc_type = RC_TYPE_UNKNOWN,
63 .name = RC_MAP_APAC_VIEWCOMP,
64 }
65};
66
67static int __init init_rc_map_apac_viewcomp(void)
68{
69 return rc_map_register(&apac_viewcomp_map);
70}
71
72static void __exit exit_rc_map_apac_viewcomp(void)
73{
74 rc_map_unregister(&apac_viewcomp_map);
75}
76
77module_init(init_rc_map_apac_viewcomp)
78module_exit(exit_rc_map_apac_viewcomp)
79
80MODULE_LICENSE("GPL");
81MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
82