1 // SPDX-License-Identifier: GPL-2.0+
2 // rc-dvb0700-big.c - Keytable for devices in dvb0700
4 // Copyright (c) 2010 by Mauro Carvalho Chehab
6 // TODO: This table is a real mess, as it merges RC codes from several
7 // devices into a big table. It also has both RC-5 and NEC codes inside.
8 // It should be broken into small tables, and the protocols should properly
11 // The table were imported from dib0700_devices.c.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
16 static struct rc_map_table dib0700_rc5_table
[] = {
17 /* Key codes for the tiny Pinnacle remote*/
19 { 0x0701, KEY_MENU
}, /* Pinnacle logo */
20 { 0x0739, KEY_POWER
},
21 { 0x0703, KEY_VOLUMEUP
},
22 { 0x0709, KEY_VOLUMEDOWN
},
23 { 0x0706, KEY_CHANNELUP
},
24 { 0x070c, KEY_CHANNELDOWN
},
25 { 0x070f, KEY_NUMERIC_1
},
26 { 0x0715, KEY_NUMERIC_2
},
27 { 0x0710, KEY_NUMERIC_3
},
28 { 0x0718, KEY_NUMERIC_4
},
29 { 0x071b, KEY_NUMERIC_5
},
30 { 0x071e, KEY_NUMERIC_6
},
31 { 0x0711, KEY_NUMERIC_7
},
32 { 0x0721, KEY_NUMERIC_8
},
33 { 0x0712, KEY_NUMERIC_9
},
34 { 0x0727, KEY_NUMERIC_0
},
35 { 0x0724, KEY_SCREEN
}, /* 'Square' key */
36 { 0x072a, KEY_TEXT
}, /* 'T' key */
37 { 0x072d, KEY_REWIND
},
39 { 0x0733, KEY_FASTFORWARD
},
40 { 0x0736, KEY_RECORD
},
42 { 0x073f, KEY_CANCEL
}, /* '?' key */
44 /* Key codes for the Terratec Cinergy DT XS Diversity, similar to cinergyT2.c */
45 { 0xeb01, KEY_POWER
},
46 { 0xeb02, KEY_NUMERIC_1
},
47 { 0xeb03, KEY_NUMERIC_2
},
48 { 0xeb04, KEY_NUMERIC_3
},
49 { 0xeb05, KEY_NUMERIC_4
},
50 { 0xeb06, KEY_NUMERIC_5
},
51 { 0xeb07, KEY_NUMERIC_6
},
52 { 0xeb08, KEY_NUMERIC_7
},
53 { 0xeb09, KEY_NUMERIC_8
},
54 { 0xeb0a, KEY_NUMERIC_9
},
55 { 0xeb0b, KEY_VIDEO
},
56 { 0xeb0c, KEY_NUMERIC_0
},
57 { 0xeb0d, KEY_REFRESH
},
62 { 0xeb13, KEY_RIGHT
},
66 { 0xeb18, KEY_GREEN
},
67 { 0xeb19, KEY_YELLOW
},
69 { 0xeb1b, KEY_CHANNELUP
},
70 { 0xeb1c, KEY_VOLUMEUP
},
72 { 0xeb1e, KEY_VOLUMEDOWN
},
73 { 0xeb1f, KEY_CHANNELDOWN
},
74 { 0xeb40, KEY_PAUSE
},
76 { 0xeb42, KEY_MENU
}, /* DVD Menu */
77 { 0xeb43, KEY_SUBTITLE
},
78 { 0xeb44, KEY_TEXT
}, /* Teletext */
79 { 0xeb45, KEY_DELETE
},
83 { 0xeb49, KEY_VIDEO
},
84 { 0xeb4a, KEY_AUDIO
}, /* Music */
85 { 0xeb4b, KEY_SCREEN
}, /* Pic */
88 { 0xeb4e, KEY_REWIND
},
89 { 0xeb4f, KEY_FASTFORWARD
},
90 { 0xeb54, KEY_PREVIOUS
},
91 { 0xeb58, KEY_RECORD
},
94 /* Key codes for the Haupauge WinTV Nova-TD, copied from nova-t-usb2.c (Nova-T USB2) */
95 { 0x1e00, KEY_NUMERIC_0
},
96 { 0x1e01, KEY_NUMERIC_1
},
97 { 0x1e02, KEY_NUMERIC_2
},
98 { 0x1e03, KEY_NUMERIC_3
},
99 { 0x1e04, KEY_NUMERIC_4
},
100 { 0x1e05, KEY_NUMERIC_5
},
101 { 0x1e06, KEY_NUMERIC_6
},
102 { 0x1e07, KEY_NUMERIC_7
},
103 { 0x1e08, KEY_NUMERIC_8
},
104 { 0x1e09, KEY_NUMERIC_9
},
105 { 0x1e0a, KEY_KPASTERISK
},
107 { 0x1e0c, KEY_RADIO
},
108 { 0x1e0d, KEY_MENU
},
109 { 0x1e0e, KEY_GRAVE
}, /* # */
110 { 0x1e0f, KEY_MUTE
},
111 { 0x1e10, KEY_VOLUMEUP
},
112 { 0x1e11, KEY_VOLUMEDOWN
},
113 { 0x1e12, KEY_CHANNEL
},
115 { 0x1e15, KEY_DOWN
},
116 { 0x1e16, KEY_LEFT
},
117 { 0x1e17, KEY_RIGHT
},
118 { 0x1e18, KEY_VIDEO
},
119 { 0x1e19, KEY_AUDIO
},
120 { 0x1e1a, KEY_MEDIA
},
123 { 0x1e1e, KEY_NEXT
},
124 { 0x1e1f, KEY_BACK
},
125 { 0x1e20, KEY_CHANNELUP
},
126 { 0x1e21, KEY_CHANNELDOWN
},
127 { 0x1e24, KEY_LAST
}, /* Skip backwards */
130 { 0x1e2e, KEY_GREEN
},
131 { 0x1e30, KEY_PAUSE
},
132 { 0x1e32, KEY_REWIND
},
133 { 0x1e34, KEY_FASTFORWARD
},
134 { 0x1e35, KEY_PLAY
},
135 { 0x1e36, KEY_STOP
},
136 { 0x1e37, KEY_RECORD
},
137 { 0x1e38, KEY_YELLOW
},
138 { 0x1e3b, KEY_GOTO
},
139 { 0x1e3d, KEY_POWER
},
141 /* Key codes for the Leadtek Winfast DTV Dongle */
142 { 0x0042, KEY_POWER
},
143 { 0x077c, KEY_TUNER
},
144 { 0x0f4e, KEY_PRINT
}, /* PREVIEW */
145 { 0x0840, KEY_SCREEN
}, /* full screen toggle*/
146 { 0x0f71, KEY_DOT
}, /* frequency */
147 { 0x0743, KEY_NUMERIC_0
},
148 { 0x0c41, KEY_NUMERIC_1
},
149 { 0x0443, KEY_NUMERIC_2
},
150 { 0x0b7f, KEY_NUMERIC_3
},
151 { 0x0e41, KEY_NUMERIC_4
},
152 { 0x0643, KEY_NUMERIC_5
},
153 { 0x097f, KEY_NUMERIC_6
},
154 { 0x0d7e, KEY_NUMERIC_7
},
155 { 0x057c, KEY_NUMERIC_8
},
156 { 0x0a40, KEY_NUMERIC_9
},
157 { 0x0e4e, KEY_CLEAR
},
158 { 0x047c, KEY_CHANNEL
}, /* show channel number */
159 { 0x0f41, KEY_LAST
}, /* recall */
160 { 0x0342, KEY_MUTE
},
161 { 0x064c, KEY_RESERVED
}, /* PIP button*/
162 { 0x0172, KEY_SHUFFLE
}, /* SNAPSHOT */
163 { 0x0c4e, KEY_PLAYPAUSE
}, /* TIMESHIFT */
164 { 0x0b70, KEY_RECORD
},
165 { 0x037d, KEY_VOLUMEUP
},
166 { 0x017d, KEY_VOLUMEDOWN
},
167 { 0x0242, KEY_CHANNELUP
},
168 { 0x007d, KEY_CHANNELDOWN
},
170 /* Key codes for Nova-TD "credit card" remote control. */
171 { 0x1d00, KEY_NUMERIC_0
},
172 { 0x1d01, KEY_NUMERIC_1
},
173 { 0x1d02, KEY_NUMERIC_2
},
174 { 0x1d03, KEY_NUMERIC_3
},
175 { 0x1d04, KEY_NUMERIC_4
},
176 { 0x1d05, KEY_NUMERIC_5
},
177 { 0x1d06, KEY_NUMERIC_6
},
178 { 0x1d07, KEY_NUMERIC_7
},
179 { 0x1d08, KEY_NUMERIC_8
},
180 { 0x1d09, KEY_NUMERIC_9
},
181 { 0x1d0a, KEY_TEXT
},
182 { 0x1d0d, KEY_MENU
},
183 { 0x1d0f, KEY_MUTE
},
184 { 0x1d10, KEY_VOLUMEUP
},
185 { 0x1d11, KEY_VOLUMEDOWN
},
186 { 0x1d12, KEY_CHANNEL
},
188 { 0x1d15, KEY_DOWN
},
189 { 0x1d16, KEY_LEFT
},
190 { 0x1d17, KEY_RIGHT
},
192 { 0x1d1e, KEY_NEXT
},
193 { 0x1d1f, KEY_BACK
},
194 { 0x1d20, KEY_CHANNELUP
},
195 { 0x1d21, KEY_CHANNELDOWN
},
196 { 0x1d24, KEY_LAST
},
198 { 0x1d30, KEY_PAUSE
},
199 { 0x1d32, KEY_REWIND
},
200 { 0x1d34, KEY_FASTFORWARD
},
201 { 0x1d35, KEY_PLAY
},
202 { 0x1d36, KEY_STOP
},
203 { 0x1d37, KEY_RECORD
},
204 { 0x1d3b, KEY_GOTO
},
205 { 0x1d3d, KEY_POWER
},
208 static struct rc_map_list dib0700_rc5_map
= {
210 .scan
= dib0700_rc5_table
,
211 .size
= ARRAY_SIZE(dib0700_rc5_table
),
212 .rc_proto
= RC_PROTO_RC5
,
213 .name
= RC_MAP_DIB0700_RC5_TABLE
,
217 static int __init
init_rc_map(void)
219 return rc_map_register(&dib0700_rc5_map
);
222 static void __exit
exit_rc_map(void)
224 rc_map_unregister(&dib0700_rc5_map
);
227 module_init(init_rc_map
)
228 module_exit(exit_rc_map
)
230 MODULE_LICENSE("GPL");
231 MODULE_AUTHOR("Mauro Carvalho Chehab");