1 /* rc-hauppauge.c - Keytable for Hauppauge Remote Controllers
3 * keymap imported from ir-keymaps.c
5 * This map currently contains the code for four different RCs:
6 * - New Hauppauge Gray;
7 * - Old Hauppauge Gray (with a golden screen for media keys);
9 * - DSR-0112 remote bundled with Haupauge MiniStick.
11 * Copyright (c) 2010-2011 by Mauro Carvalho Chehab <mchehab@redhat.com>
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
19 #include <media/rc-map.h>
20 #include <linux/module.h>
23 * Hauppauge:the newer, gray remotes (seems there are multiple
24 * slightly different versions), shipped with cx88+ivtv cards.
26 * This table contains the complete RC5 code, instead of just the data part
29 static struct rc_map_table rc5_hauppauge_new[] = {
31 * Remote Controller Hauppauge Gray found on modern devices
32 * Keycodes start with address = 0x1e
35 { 0x1e3b, KEY_SELECT }, /* GO / house symbol */
36 { 0x1e3d, KEY_POWER2 }, /* system power (green button) */
39 { 0x1e18, KEY_VIDEO }, /* Videos */
40 { 0x1e19, KEY_AUDIO }, /* Music */
41 { 0x1e1a, KEY_CAMERA }, /* Pictures */
43 { 0x1e1b, KEY_EPG }, /* Guide */
44 { 0x1e0c, KEY_RADIO },
49 { 0x1e17, KEY_RIGHT },
50 { 0x1e25, KEY_OK }, /* OK */
52 { 0x1e1f, KEY_EXIT }, /* back/exit */
55 { 0x1e10, KEY_VOLUMEUP },
56 { 0x1e11, KEY_VOLUMEDOWN },
58 { 0x1e12, KEY_PREVIOUS }, /* previous channel */
61 { 0x1e20, KEY_CHANNELUP }, /* channel / program + */
62 { 0x1e21, KEY_CHANNELDOWN }, /* channel / program - */
64 { 0x1e37, KEY_RECORD }, /* recording */
67 { 0x1e32, KEY_REWIND }, /* backward << */
69 { 0x1e34, KEY_FASTFORWARD }, /* forward >> */
71 { 0x1e24, KEY_PREVIOUSSONG }, /* replay |< */
72 { 0x1e30, KEY_PAUSE }, /* pause */
73 { 0x1e1e, KEY_NEXTSONG }, /* skip >| */
87 { 0x1e0a, KEY_TEXT }, /* keypad asterisk as well */
89 { 0x1e0e, KEY_SUBTITLE }, /* also the Pound key (#) */
91 { 0x1e0b, KEY_RED }, /* red button */
92 { 0x1e2e, KEY_GREEN }, /* green button */
93 { 0x1e38, KEY_YELLOW }, /* yellow key */
94 { 0x1e29, KEY_BLUE }, /* blue key */
97 * Old Remote Controller Hauppauge Gray with a golden screen
98 * Keycodes start with address = 0x1f
100 { 0x1f3d, KEY_POWER2 }, /* system power (green button) */
101 { 0x1f3b, KEY_SELECT }, /* GO */
115 { 0x1f1f, KEY_EXIT }, /* back/exit */
116 { 0x1f0d, KEY_MENU },
118 { 0x1f10, KEY_VOLUMEUP },
119 { 0x1f11, KEY_VOLUMEDOWN },
120 { 0x1f20, KEY_CHANNELUP }, /* channel / program + */
121 { 0x1f21, KEY_CHANNELDOWN }, /* channel / program - */
122 { 0x1f25, KEY_ENTER }, /* OK */
124 { 0x1f0b, KEY_RED }, /* red button */
125 { 0x1f2e, KEY_GREEN }, /* green button */
126 { 0x1f38, KEY_YELLOW }, /* yellow key */
127 { 0x1f29, KEY_BLUE }, /* blue key */
129 { 0x1f0f, KEY_MUTE },
130 { 0x1f0c, KEY_RADIO }, /* There's no indicator on this key */
131 { 0x1f3c, KEY_ZOOM }, /* full */
133 { 0x1f32, KEY_REWIND }, /* backward << */
134 { 0x1f35, KEY_PLAY },
135 { 0x1f34, KEY_FASTFORWARD }, /* forward >> */
137 { 0x1f37, KEY_RECORD }, /* recording */
138 { 0x1f36, KEY_STOP },
139 { 0x1f30, KEY_PAUSE }, /* pause */
141 { 0x1f24, KEY_PREVIOUSSONG }, /* replay |< */
142 { 0x1f1e, KEY_NEXTSONG }, /* skip >| */
145 * Keycodes for DSR-0112 remote bundled with Haupauge MiniStick
146 * Keycodes start with address = 0x1d
158 { 0x1d0a, KEY_TEXT },
159 { 0x1d0d, KEY_MENU },
160 { 0x1d0f, KEY_MUTE },
161 { 0x1d10, KEY_VOLUMEUP },
162 { 0x1d11, KEY_VOLUMEDOWN },
163 { 0x1d12, KEY_PREVIOUS }, /* Prev.Ch .. ??? */
165 { 0x1d15, KEY_DOWN },
166 { 0x1d16, KEY_LEFT },
167 { 0x1d17, KEY_RIGHT },
169 { 0x1d1e, KEY_NEXT }, /* >| */
170 { 0x1d1f, KEY_EXIT },
171 { 0x1d20, KEY_CHANNELUP },
172 { 0x1d21, KEY_CHANNELDOWN },
173 { 0x1d24, KEY_LAST }, /* <| */
175 { 0x1d30, KEY_PAUSE },
176 { 0x1d32, KEY_REWIND },
177 { 0x1d34, KEY_FASTFORWARD },
178 { 0x1d35, KEY_PLAY },
179 { 0x1d36, KEY_STOP },
180 { 0x1d37, KEY_RECORD },
181 { 0x1d3b, KEY_GOTO },
182 { 0x1d3d, KEY_POWER },
183 { 0x1d3f, KEY_HOME },
186 * Keycodes for the old Black Remote Controller
187 * This one also uses RC-5 protocol
188 * Keycodes start with address = 0x00
191 { 0x0020, KEY_CHANNELUP },
192 { 0x000c, KEY_RADIO },
194 { 0x0011, KEY_VOLUMEDOWN },
195 { 0x002e, KEY_ZOOM }, /* full screen */
196 { 0x0010, KEY_VOLUMEUP },
198 { 0x000d, KEY_MUTE },
199 { 0x0021, KEY_CHANNELDOWN },
200 { 0x0022, KEY_VIDEO }, /* source */
214 { 0x001e, KEY_RED }, /* Reserved */
216 { 0x0026, KEY_SLEEP }, /* Minimize */
219 static struct rc_map_list rc5_hauppauge_new_map = {
221 .scan = rc5_hauppauge_new,
222 .size = ARRAY_SIZE(rc5_hauppauge_new),
223 .rc_type = RC_TYPE_RC5,
224 .name = RC_MAP_HAUPPAUGE,
228 static int __init init_rc_map_rc5_hauppauge_new(void)
230 return rc_map_register(&rc5_hauppauge_new_map);
233 static void __exit exit_rc_map_rc5_hauppauge_new(void)
235 rc_map_unregister(&rc5_hauppauge_new_map);
238 module_init(init_rc_map_rc5_hauppauge_new)
239 module_exit(exit_rc_map_rc5_hauppauge_new)
241 MODULE_LICENSE("GPL");
242 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");