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