1 // SPDX-License-Identifier: GPL-2.0+
2 // nec-terratec-cinergy-xs.h - Keytable for nec_terratec_cinergy_xs Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 /* Terratec Cinergy Hybrid T USB XS FM
15 static struct rc_map_table nec_terratec_cinergy_xs
[] = {
17 /* Terratec Grey IR, with most keys in orange */
19 { 0x1401, KEY_POWER2
},
21 { 0x1442, KEY_MENU
}, /* DVD menu */
22 { 0x1443, KEY_SUBTITLE
},
23 { 0x1444, KEY_TEXT
}, /* Teletext */
24 { 0x1445, KEY_DELETE
},
26 { 0x1402, KEY_NUMERIC_1
},
27 { 0x1403, KEY_NUMERIC_2
},
28 { 0x1404, KEY_NUMERIC_3
},
29 { 0x1405, KEY_NUMERIC_4
},
30 { 0x1406, KEY_NUMERIC_5
},
31 { 0x1407, KEY_NUMERIC_6
},
32 { 0x1408, KEY_NUMERIC_7
},
33 { 0x1409, KEY_NUMERIC_8
},
34 { 0x140a, KEY_NUMERIC_9
},
35 { 0x140c, KEY_NUMERIC_0
},
37 { 0x140b, KEY_TUNER
}, /* AV */
38 { 0x140d, KEY_MODE
}, /* A.B */
43 { 0x144a, KEY_RADIO
}, /* Music */
44 { 0x144b, KEY_CAMERA
}, /* PIC */
54 { 0x144d, KEY_BACKSPACE
},
56 { 0x141c, KEY_VOLUMEUP
},
57 { 0x141e, KEY_VOLUMEDOWN
},
62 { 0x141b, KEY_CHANNELUP
},
63 { 0x141f, KEY_CHANNELDOWN
},
67 { 0x1419, KEY_YELLOW
},
70 { 0x1458, KEY_RECORD
},
75 { 0x144e, KEY_REWIND
},
76 { 0x144f, KEY_FASTFORWARD
},
79 /* Terratec Black IR, with most keys in black */
80 { 0x04eb01, KEY_POWER2
},
82 { 0x04eb02, KEY_NUMERIC_1
},
83 { 0x04eb03, KEY_NUMERIC_2
},
84 { 0x04eb04, KEY_NUMERIC_3
},
85 { 0x04eb05, KEY_NUMERIC_4
},
86 { 0x04eb06, KEY_NUMERIC_5
},
87 { 0x04eb07, KEY_NUMERIC_6
},
88 { 0x04eb08, KEY_NUMERIC_7
},
89 { 0x04eb09, KEY_NUMERIC_8
},
90 { 0x04eb0a, KEY_NUMERIC_9
},
91 { 0x04eb0c, KEY_NUMERIC_0
},
93 { 0x04eb0b, KEY_TEXT
}, /* TXT */
94 { 0x04eb0d, KEY_REFRESH
}, /* Refresh */
96 { 0x04eb0e, KEY_HOME
},
100 { 0x04eb11, KEY_LEFT
},
102 { 0x04eb13, KEY_RIGHT
},
103 { 0x04eb14, KEY_DOWN
},
105 { 0x04eb15, KEY_BACKSPACE
},
106 { 0x04eb16, KEY_INFO
},
108 { 0x04eb17, KEY_RED
},
109 { 0x04eb18, KEY_GREEN
},
110 { 0x04eb19, KEY_YELLOW
},
111 { 0x04eb1a, KEY_BLUE
},
113 { 0x04eb1c, KEY_VOLUMEUP
},
114 { 0x04eb1e, KEY_VOLUMEDOWN
},
116 { 0x04eb1d, KEY_MUTE
},
118 { 0x04eb1b, KEY_CHANNELUP
},
119 { 0x04eb1f, KEY_CHANNELDOWN
},
121 { 0x04eb40, KEY_RECORD
},
122 { 0x04eb4c, KEY_PLAY
},
123 { 0x04eb58, KEY_PAUSE
},
125 { 0x04eb54, KEY_REWIND
},
126 { 0x04eb48, KEY_STOP
},
127 { 0x04eb5c, KEY_NEXT
},
130 static struct rc_map_list nec_terratec_cinergy_xs_map
= {
132 .scan
= nec_terratec_cinergy_xs
,
133 .size
= ARRAY_SIZE(nec_terratec_cinergy_xs
),
134 .rc_proto
= RC_PROTO_NEC
,
135 .name
= RC_MAP_NEC_TERRATEC_CINERGY_XS
,
139 static int __init
init_rc_map_nec_terratec_cinergy_xs(void)
141 return rc_map_register(&nec_terratec_cinergy_xs_map
);
144 static void __exit
exit_rc_map_nec_terratec_cinergy_xs(void)
146 rc_map_unregister(&nec_terratec_cinergy_xs_map
);
149 module_init(init_rc_map_nec_terratec_cinergy_xs
)
150 module_exit(exit_rc_map_nec_terratec_cinergy_xs
)
152 MODULE_LICENSE("GPL");
153 MODULE_AUTHOR("Mauro Carvalho Chehab");