This source file includes following definitions.
- init_rc_map_tbs_nec
- exit_rc_map_tbs_nec
1
2
3
4
5
6
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11 static struct rc_map_table tbs_nec[] = {
12 { 0x84, KEY_POWER2},
13 { 0x94, KEY_MUTE},
14 { 0x87, KEY_NUMERIC_1},
15 { 0x86, KEY_NUMERIC_2},
16 { 0x85, KEY_NUMERIC_3},
17 { 0x8b, KEY_NUMERIC_4},
18 { 0x8a, KEY_NUMERIC_5},
19 { 0x89, KEY_NUMERIC_6},
20 { 0x8f, KEY_NUMERIC_7},
21 { 0x8e, KEY_NUMERIC_8},
22 { 0x8d, KEY_NUMERIC_9},
23 { 0x92, KEY_NUMERIC_0},
24 { 0xc0, KEY_10CHANNELSUP},
25 { 0xd0, KEY_10CHANNELSDOWN},
26 { 0x96, KEY_CHANNELUP},
27 { 0x91, KEY_CHANNELDOWN},
28 { 0x93, KEY_VOLUMEUP},
29 { 0x8c, KEY_VOLUMEDOWN},
30 { 0x83, KEY_RECORD},
31 { 0x98, KEY_PAUSE},
32 { 0x99, KEY_OK},
33 { 0x9a, KEY_CAMERA},
34 { 0x81, KEY_UP},
35 { 0x90, KEY_LEFT},
36 { 0x82, KEY_RIGHT},
37 { 0x88, KEY_DOWN},
38 { 0x95, KEY_FAVORITES},
39 { 0x97, KEY_SUBTITLE},
40 { 0x9d, KEY_ZOOM},
41 { 0x9f, KEY_EXIT},
42 { 0x9e, KEY_MENU},
43 { 0x9c, KEY_EPG},
44 { 0x80, KEY_PREVIOUS},
45 { 0x9b, KEY_MODE},
46 };
47
48 static struct rc_map_list tbs_nec_map = {
49 .map = {
50 .scan = tbs_nec,
51 .size = ARRAY_SIZE(tbs_nec),
52 .rc_proto = RC_PROTO_UNKNOWN,
53 .name = RC_MAP_TBS_NEC,
54 }
55 };
56
57 static int __init init_rc_map_tbs_nec(void)
58 {
59 return rc_map_register(&tbs_nec_map);
60 }
61
62 static void __exit exit_rc_map_tbs_nec(void)
63 {
64 rc_map_unregister(&tbs_nec_map);
65 }
66
67 module_init(init_rc_map_tbs_nec)
68 module_exit(exit_rc_map_tbs_nec)
69
70 MODULE_LICENSE("GPL");
71 MODULE_AUTHOR("Mauro Carvalho Chehab");