1 /* rc5-hauppauge-new.h - Keytable for rc5_hauppauge_new Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
16 * Hauppauge:the newer, gray remotes (seems there are multiple
17 * slightly different versions), shipped with cx88+ivtv cards.
19 * This table contains the complete RC5 code, instead of just the data part
22 static struct rc_map_table rc5_hauppauge_new
[] = {
35 { 0x1e0a, KEY_TEXT
}, /* keypad asterisk as well */
36 { 0x1e0b, KEY_RED
}, /* red button */
37 { 0x1e0c, KEY_RADIO
},
39 { 0x1e0e, KEY_SUBTITLE
}, /* also the # key */
41 { 0x1e10, KEY_VOLUMEUP
},
42 { 0x1e11, KEY_VOLUMEDOWN
},
43 { 0x1e12, KEY_PREVIOUS
}, /* previous channel */
47 { 0x1e17, KEY_RIGHT
},
48 { 0x1e18, KEY_VIDEO
}, /* Videos */
49 { 0x1e19, KEY_AUDIO
}, /* Music */
50 /* 0x1e1a: Pictures - presume this means
51 "Multimedia Home Platform" -
52 no "PICTURES" key in input.h
56 { 0x1e1b, KEY_EPG
}, /* Guide */
58 { 0x1e1e, KEY_NEXTSONG
}, /* skip >| */
59 { 0x1e1f, KEY_EXIT
}, /* back/exit */
60 { 0x1e20, KEY_CHANNELUP
}, /* channel / program + */
61 { 0x1e21, KEY_CHANNELDOWN
}, /* channel / program - */
62 { 0x1e22, KEY_CHANNEL
}, /* source (old black remote) */
63 { 0x1e24, KEY_PREVIOUSSONG
}, /* replay |< */
64 { 0x1e25, KEY_ENTER
}, /* OK */
65 { 0x1e26, KEY_SLEEP
}, /* minimize (old black remote) */
66 { 0x1e29, KEY_BLUE
}, /* blue key */
67 { 0x1e2e, KEY_GREEN
}, /* green button */
68 { 0x1e30, KEY_PAUSE
}, /* pause */
69 { 0x1e32, KEY_REWIND
}, /* backward << */
70 { 0x1e34, KEY_FASTFORWARD
}, /* forward >> */
73 { 0x1e37, KEY_RECORD
}, /* recording */
74 { 0x1e38, KEY_YELLOW
}, /* yellow key */
75 { 0x1e3b, KEY_SELECT
}, /* top right button */
76 { 0x1e3c, KEY_ZOOM
}, /* full */
77 { 0x1e3d, KEY_POWER
}, /* system power (green button) */
79 /* Keycodes for DSR-0112 remote bundled with Haupauge MiniStick */
93 { 0x1d10, KEY_VOLUMEUP
},
94 { 0x1d11, KEY_VOLUMEDOWN
},
95 { 0x1d12, KEY_PREVIOUS
}, /* Prev.Ch .. ??? */
99 { 0x1d17, KEY_RIGHT
},
101 { 0x1d1e, KEY_NEXT
}, /* >| */
102 { 0x1d1f, KEY_EXIT
},
103 { 0x1d20, KEY_CHANNELUP
},
104 { 0x1d21, KEY_CHANNELDOWN
},
105 { 0x1d24, KEY_LAST
}, /* <| */
107 { 0x1d30, KEY_PAUSE
},
108 { 0x1d32, KEY_REWIND
},
109 { 0x1d34, KEY_FASTFORWARD
},
110 { 0x1d35, KEY_PLAY
},
111 { 0x1d36, KEY_STOP
},
112 { 0x1d37, KEY_RECORD
},
113 { 0x1d3b, KEY_GOTO
},
114 { 0x1d3d, KEY_POWER
},
115 { 0x1d3f, KEY_HOME
},
118 static struct rc_map_list rc5_hauppauge_new_map
= {
120 .scan
= rc5_hauppauge_new
,
121 .size
= ARRAY_SIZE(rc5_hauppauge_new
),
122 .rc_type
= RC_TYPE_RC5
,
123 .name
= RC_MAP_RC5_HAUPPAUGE_NEW
,
127 static int __init
init_rc_map_rc5_hauppauge_new(void)
129 return rc_map_register(&rc5_hauppauge_new_map
);
132 static void __exit
exit_rc_map_rc5_hauppauge_new(void)
134 rc_map_unregister(&rc5_hauppauge_new_map
);
137 module_init(init_rc_map_rc5_hauppauge_new
)
138 module_exit(exit_rc_map_rc5_hauppauge_new
)
140 MODULE_LICENSE("GPL");
141 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");