diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-24 10:18:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 18:24:12 -0400 |
commit | 9890a9edc8b8bba6d710499afb70e981e0b0dfae (patch) | |
tree | 68650f988d37ed09fed5ab9c436352fb3dca2250 | |
parent | 0684f5b0fc2b543287abad03fc40e65d5e89d1ef (diff) |
[media] rc-rc5-hauppauge-new: Add support for the old Black RC
Hans borrowed me an old Black Hauppauge RC. Thanks to that, we
can fix the RC5 table for Hauppauge.
Thanks-to: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
-rw-r--r-- | drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c b/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c index dcbf3bddc826..4106008c7f98 100644 --- a/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c +++ b/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c | |||
@@ -82,7 +82,7 @@ static struct rc_map_table rc5_hauppauge_new[] = { | |||
82 | 82 | ||
83 | /* | 83 | /* |
84 | * Old Remote Controller Hauppauge Gray with a golden screen | 84 | * Old Remote Controller Hauppauge Gray with a golden screen |
85 | * Keycodes start with address = 0x1d | 85 | * Keycodes start with address = 0x1f |
86 | */ | 86 | */ |
87 | { 0x1f3d, KEY_POWER2 }, /* system power (green button) */ | 87 | { 0x1f3d, KEY_POWER2 }, /* system power (green button) */ |
88 | { 0x1f3b, KEY_SELECT }, /* GO */ | 88 | { 0x1f3b, KEY_SELECT }, /* GO */ |
@@ -130,6 +130,7 @@ static struct rc_map_table rc5_hauppauge_new[] = { | |||
130 | 130 | ||
131 | /* | 131 | /* |
132 | * Keycodes for DSR-0112 remote bundled with Haupauge MiniStick | 132 | * Keycodes for DSR-0112 remote bundled with Haupauge MiniStick |
133 | * Keycodes start with address = 0x1d | ||
133 | */ | 134 | */ |
134 | { 0x1d00, KEY_0 }, | 135 | { 0x1d00, KEY_0 }, |
135 | { 0x1d01, KEY_1 }, | 136 | { 0x1d01, KEY_1 }, |
@@ -167,6 +168,39 @@ static struct rc_map_table rc5_hauppauge_new[] = { | |||
167 | { 0x1d3b, KEY_GOTO }, | 168 | { 0x1d3b, KEY_GOTO }, |
168 | { 0x1d3d, KEY_POWER }, | 169 | { 0x1d3d, KEY_POWER }, |
169 | { 0x1d3f, KEY_HOME }, | 170 | { 0x1d3f, KEY_HOME }, |
171 | |||
172 | /* | ||
173 | * Keycodes for the old Black Remote Controller | ||
174 | * This one also uses RC-5 protocol | ||
175 | * Keycodes start with address = 0x00 | ||
176 | */ | ||
177 | { 0x001f, KEY_TV }, | ||
178 | { 0x0020, KEY_CHANNELUP }, | ||
179 | { 0x000c, KEY_RADIO }, | ||
180 | |||
181 | { 0x0011, KEY_VOLUMEDOWN }, | ||
182 | { 0x002e, KEY_ZOOM }, /* full screen */ | ||
183 | { 0x0010, KEY_VOLUMEUP }, | ||
184 | |||
185 | { 0x000d, KEY_MUTE }, | ||
186 | { 0x0021, KEY_CHANNELDOWN }, | ||
187 | { 0x0022, KEY_VIDEO }, /* source */ | ||
188 | |||
189 | { 0x0001, KEY_1 }, | ||
190 | { 0x0002, KEY_2 }, | ||
191 | { 0x0003, KEY_3 }, | ||
192 | |||
193 | { 0x0004, KEY_4 }, | ||
194 | { 0x0005, KEY_5 }, | ||
195 | { 0x0006, KEY_6 }, | ||
196 | |||
197 | { 0x0007, KEY_7 }, | ||
198 | { 0x0008, KEY_8 }, | ||
199 | { 0x0009, KEY_9 }, | ||
200 | |||
201 | { 0x001e, KEY_RED }, /* Reserved */ | ||
202 | { 0x0000, KEY_0 }, | ||
203 | { 0x0026, KEY_SLEEP }, /* Minimize */ | ||
170 | }; | 204 | }; |
171 | 205 | ||
172 | static struct rc_map_list rc5_hauppauge_new_map = { | 206 | static struct rc_map_list rc5_hauppauge_new_map = { |