aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/keymaps
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-01-24 10:18:45 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 18:24:13 -0400
commit0548757419c974d8c0851c13279b2c89a12b2978 (patch)
treedfdcd98d36517b5f3ea8169ebfb967465f6807ae /drivers/media/rc/keymaps
parent9890a9edc8b8bba6d710499afb70e981e0b0dfae (diff)
[media] rc-rc5-hauppauge-new: Fix Hauppauge Grey mapping
The keys for the old black were messed with the ones for the hauppauge grey. Fix it. Also, fixes some keycodes and order the keys according with the way they appear inside the remote controller. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Jarod Wilson <jarod@redhat.com>
Diffstat (limited to 'drivers/media/rc/keymaps')
-rw-r--r--drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c88
1 files changed, 47 insertions, 41 deletions
diff --git a/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c b/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
index 4106008c7f98..cb312dae6fac 100644
--- a/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
+++ b/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
@@ -24,61 +24,67 @@ static struct rc_map_table rc5_hauppauge_new[] = {
24 * Remote Controller Hauppauge Gray found on modern devices 24 * Remote Controller Hauppauge Gray found on modern devices
25 * Keycodes start with address = 0x1e 25 * Keycodes start with address = 0x1e
26 */ 26 */
27 /* Keys 0 to 9 */ 27
28 { 0x1e00, KEY_0 }, 28 { 0x1e3b, KEY_SELECT }, /* GO / house symbol */
29 { 0x1e3d, KEY_POWER2 }, /* system power (green button) */
30
31 { 0x1e1c, KEY_TV },
32 { 0x1e18, KEY_VIDEO }, /* Videos */
33 { 0x1e19, KEY_AUDIO }, /* Music */
34 { 0x1e1a, KEY_CAMERA }, /* Pictures */
35
36 { 0x1e1b, KEY_EPG }, /* Guide */
37 { 0x1e0c, KEY_RADIO },
38
39 { 0x1e14, KEY_UP },
40 { 0x1e15, KEY_DOWN },
41 { 0x1e16, KEY_LEFT },
42 { 0x1e17, KEY_RIGHT },
43 { 0x1e25, KEY_OK }, /* OK */
44
45 { 0x1e1f, KEY_EXIT }, /* back/exit */
46 { 0x1e0d, KEY_MENU },
47
48 { 0x1e10, KEY_VOLUMEUP },
49 { 0x1e11, KEY_VOLUMEDOWN },
50
51 { 0x1e12, KEY_PREVIOUS }, /* previous channel */
52 { 0x1e0f, KEY_MUTE },
53
54 { 0x1e20, KEY_CHANNELUP }, /* channel / program + */
55 { 0x1e21, KEY_CHANNELDOWN }, /* channel / program - */
56
57 { 0x1e37, KEY_RECORD }, /* recording */
58 { 0x1e36, KEY_STOP },
59
60 { 0x1e32, KEY_REWIND }, /* backward << */
61 { 0x1e35, KEY_PLAY },
62 { 0x1e34, KEY_FASTFORWARD }, /* forward >> */
63
64 { 0x1e24, KEY_PREVIOUSSONG }, /* replay |< */
65 { 0x1e30, KEY_PAUSE }, /* pause */
66 { 0x1e1e, KEY_NEXTSONG }, /* skip >| */
67
29 { 0x1e01, KEY_1 }, 68 { 0x1e01, KEY_1 },
30 { 0x1e02, KEY_2 }, 69 { 0x1e02, KEY_2 },
31 { 0x1e03, KEY_3 }, 70 { 0x1e03, KEY_3 },
71
32 { 0x1e04, KEY_4 }, 72 { 0x1e04, KEY_4 },
33 { 0x1e05, KEY_5 }, 73 { 0x1e05, KEY_5 },
34 { 0x1e06, KEY_6 }, 74 { 0x1e06, KEY_6 },
75
35 { 0x1e07, KEY_7 }, 76 { 0x1e07, KEY_7 },
36 { 0x1e08, KEY_8 }, 77 { 0x1e08, KEY_8 },
37 { 0x1e09, KEY_9 }, 78 { 0x1e09, KEY_9 },
38 79
39 { 0x1e0a, KEY_TEXT }, /* keypad asterisk as well */ 80 { 0x1e0a, KEY_TEXT }, /* keypad asterisk as well */
40 { 0x1e0b, KEY_RED }, /* red button */ 81 { 0x1e00, KEY_0 },
41 { 0x1e0c, KEY_RADIO }, 82 { 0x1e0e, KEY_SUBTITLE }, /* also the Pound key (#) */
42 { 0x1e0d, KEY_MENU },
43 { 0x1e0e, KEY_SUBTITLE }, /* also the # key */
44 { 0x1e0f, KEY_MUTE },
45 { 0x1e10, KEY_VOLUMEUP },
46 { 0x1e11, KEY_VOLUMEDOWN },
47 { 0x1e12, KEY_PREVIOUS }, /* previous channel */
48 { 0x1e14, KEY_UP },
49 { 0x1e15, KEY_DOWN },
50 { 0x1e16, KEY_LEFT },
51 { 0x1e17, KEY_RIGHT },
52 { 0x1e18, KEY_VCR }, /* Videos */
53 { 0x1e19, KEY_AUDIO }, /* Music */
54 /* 0x1e1a: Pictures - presume this means
55 "Multimedia Home Platform" -
56 no "PICTURES" key in input.h
57 */
58 { 0x1e1a, KEY_CAMERA },
59 83
60 { 0x1e1b, KEY_EPG }, /* Guide */ 84 { 0x1e0b, KEY_RED }, /* red button */
61 { 0x1e1c, KEY_TV },
62 { 0x1e1e, KEY_NEXTSONG }, /* skip >| */
63 { 0x1e1f, KEY_EXIT }, /* back/exit */
64 { 0x1e20, KEY_CHANNELUP }, /* channel / program + */
65 { 0x1e21, KEY_CHANNELDOWN }, /* channel / program - */
66 { 0x1e22, KEY_VIDEO }, /* source (old black remote) */
67 { 0x1e24, KEY_PREVIOUSSONG }, /* replay |< */
68 { 0x1e25, KEY_ENTER }, /* OK */
69 { 0x1e26, KEY_SLEEP }, /* minimize (old black remote) */
70 { 0x1e29, KEY_BLUE }, /* blue key */
71 { 0x1e2e, KEY_GREEN }, /* green button */ 85 { 0x1e2e, KEY_GREEN }, /* green button */
72 { 0x1e30, KEY_PAUSE }, /* pause */
73 { 0x1e32, KEY_REWIND }, /* backward << */
74 { 0x1e34, KEY_FASTFORWARD }, /* forward >> */
75 { 0x1e35, KEY_PLAY },
76 { 0x1e36, KEY_STOP },
77 { 0x1e37, KEY_RECORD }, /* recording */
78 { 0x1e38, KEY_YELLOW }, /* yellow key */ 86 { 0x1e38, KEY_YELLOW }, /* yellow key */
79 { 0x1e3b, KEY_SELECT }, /* top right button */ 87 { 0x1e29, KEY_BLUE }, /* blue key */
80 { 0x1e3c, KEY_ZOOM }, /* full */
81 { 0x1e3d, KEY_POWER }, /* system power (green button) */
82 88
83 /* 89 /*
84 * Old Remote Controller Hauppauge Gray with a golden screen 90 * Old Remote Controller Hauppauge Gray with a golden screen