1
2
3
4
5
6
7
8
9
10
11#include <media/rc-map.h>
12#include <linux/module.h>
13
14static struct rc_map_table rc_map_d680_dmb_table[] = {
15 { 0x0038, KEY_SWITCHVIDEOMODE },
16 { 0x080c, KEY_ZOOM },
17 { 0x0800, KEY_0 },
18 { 0x0001, KEY_1 },
19 { 0x0802, KEY_2 },
20 { 0x0003, KEY_3 },
21 { 0x0804, KEY_4 },
22 { 0x0005, KEY_5 },
23 { 0x0806, KEY_6 },
24 { 0x0007, KEY_7 },
25 { 0x0808, KEY_8 },
26 { 0x0009, KEY_9 },
27 { 0x000a, KEY_MUTE },
28 { 0x0829, KEY_BACK },
29 { 0x0012, KEY_CHANNELUP },
30 { 0x0813, KEY_CHANNELDOWN },
31 { 0x002b, KEY_VOLUMEUP },
32 { 0x082c, KEY_VOLUMEDOWN },
33 { 0x0020, KEY_UP },
34 { 0x0821, KEY_DOWN },
35 { 0x0011, KEY_LEFT },
36 { 0x0810, KEY_RIGHT },
37 { 0x000d, KEY_OK },
38 { 0x081f, KEY_RECORD },
39 { 0x0017, KEY_PLAYPAUSE },
40 { 0x0816, KEY_PLAYPAUSE },
41 { 0x000b, KEY_STOP },
42 { 0x0827, KEY_FASTFORWARD },
43 { 0x0026, KEY_REWIND },
44 { 0x081e, KEY_UNKNOWN },
45 { 0x000e, KEY_UNKNOWN },
46 { 0x082d, KEY_UNKNOWN },
47 { 0x000f, KEY_UNKNOWN },
48 { 0x0814, KEY_SHUFFLE },
49 { 0x0025, KEY_POWER },
50};
51
52static struct rc_map_list d680_dmb_map = {
53 .map = {
54 .scan = rc_map_d680_dmb_table,
55 .size = ARRAY_SIZE(rc_map_d680_dmb_table),
56 .rc_proto = RC_PROTO_UNKNOWN,
57 .name = RC_MAP_D680_DMB,
58 }
59};
60
61static int __init init_rc_map_d680_dmb(void)
62{
63 return rc_map_register(&d680_dmb_map);
64}
65
66static void __exit exit_rc_map_d680_dmb(void)
67{
68 rc_map_unregister(&d680_dmb_map);
69}
70
71module_init(init_rc_map_d680_dmb)
72module_exit(exit_rc_map_d680_dmb)
73
74MODULE_LICENSE("GPL");
75MODULE_AUTHOR("Mauro Carvalho Chehab");
76