diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/digitv.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/digitv.c | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c index b545cf3eab2..955147d0075 100644 --- a/drivers/media/dvb/dvb-usb/digitv.c +++ b/drivers/media/dvb/dvb-usb/digitv.c | |||
@@ -162,61 +162,61 @@ static int digitv_tuner_attach(struct dvb_usb_adapter *adap) | |||
162 | } | 162 | } |
163 | 163 | ||
164 | static struct dvb_usb_rc_key digitv_rc_keys[] = { | 164 | static struct dvb_usb_rc_key digitv_rc_keys[] = { |
165 | { 0x5f, 0x55, KEY_0 }, | 165 | { 0x5f55, KEY_0 }, |
166 | { 0x6f, 0x55, KEY_1 }, | 166 | { 0x6f55, KEY_1 }, |
167 | { 0x9f, 0x55, KEY_2 }, | 167 | { 0x9f55, KEY_2 }, |
168 | { 0xaf, 0x55, KEY_3 }, | 168 | { 0xaf55, KEY_3 }, |
169 | { 0x5f, 0x56, KEY_4 }, | 169 | { 0x5f56, KEY_4 }, |
170 | { 0x6f, 0x56, KEY_5 }, | 170 | { 0x6f56, KEY_5 }, |
171 | { 0x9f, 0x56, KEY_6 }, | 171 | { 0x9f56, KEY_6 }, |
172 | { 0xaf, 0x56, KEY_7 }, | 172 | { 0xaf56, KEY_7 }, |
173 | { 0x5f, 0x59, KEY_8 }, | 173 | { 0x5f59, KEY_8 }, |
174 | { 0x6f, 0x59, KEY_9 }, | 174 | { 0x6f59, KEY_9 }, |
175 | { 0x9f, 0x59, KEY_TV }, | 175 | { 0x9f59, KEY_TV }, |
176 | { 0xaf, 0x59, KEY_AUX }, | 176 | { 0xaf59, KEY_AUX }, |
177 | { 0x5f, 0x5a, KEY_DVD }, | 177 | { 0x5f5a, KEY_DVD }, |
178 | { 0x6f, 0x5a, KEY_POWER }, | 178 | { 0x6f5a, KEY_POWER }, |
179 | { 0x9f, 0x5a, KEY_MHP }, /* labelled 'Picture' */ | 179 | { 0x9f5a, KEY_MHP }, /* labelled 'Picture' */ |
180 | { 0xaf, 0x5a, KEY_AUDIO }, | 180 | { 0xaf5a, KEY_AUDIO }, |
181 | { 0x5f, 0x65, KEY_INFO }, | 181 | { 0x5f65, KEY_INFO }, |
182 | { 0x6f, 0x65, KEY_F13 }, /* 16:9 */ | 182 | { 0x6f65, KEY_F13 }, /* 16:9 */ |
183 | { 0x9f, 0x65, KEY_F14 }, /* 14:9 */ | 183 | { 0x9f65, KEY_F14 }, /* 14:9 */ |
184 | { 0xaf, 0x65, KEY_EPG }, | 184 | { 0xaf65, KEY_EPG }, |
185 | { 0x5f, 0x66, KEY_EXIT }, | 185 | { 0x5f66, KEY_EXIT }, |
186 | { 0x6f, 0x66, KEY_MENU }, | 186 | { 0x6f66, KEY_MENU }, |
187 | { 0x9f, 0x66, KEY_UP }, | 187 | { 0x9f66, KEY_UP }, |
188 | { 0xaf, 0x66, KEY_DOWN }, | 188 | { 0xaf66, KEY_DOWN }, |
189 | { 0x5f, 0x69, KEY_LEFT }, | 189 | { 0x5f69, KEY_LEFT }, |
190 | { 0x6f, 0x69, KEY_RIGHT }, | 190 | { 0x6f69, KEY_RIGHT }, |
191 | { 0x9f, 0x69, KEY_ENTER }, | 191 | { 0x9f69, KEY_ENTER }, |
192 | { 0xaf, 0x69, KEY_CHANNELUP }, | 192 | { 0xaf69, KEY_CHANNELUP }, |
193 | { 0x5f, 0x6a, KEY_CHANNELDOWN }, | 193 | { 0x5f6a, KEY_CHANNELDOWN }, |
194 | { 0x6f, 0x6a, KEY_VOLUMEUP }, | 194 | { 0x6f6a, KEY_VOLUMEUP }, |
195 | { 0x9f, 0x6a, KEY_VOLUMEDOWN }, | 195 | { 0x9f6a, KEY_VOLUMEDOWN }, |
196 | { 0xaf, 0x6a, KEY_RED }, | 196 | { 0xaf6a, KEY_RED }, |
197 | { 0x5f, 0x95, KEY_GREEN }, | 197 | { 0x5f95, KEY_GREEN }, |
198 | { 0x6f, 0x95, KEY_YELLOW }, | 198 | { 0x6f95, KEY_YELLOW }, |
199 | { 0x9f, 0x95, KEY_BLUE }, | 199 | { 0x9f95, KEY_BLUE }, |
200 | { 0xaf, 0x95, KEY_SUBTITLE }, | 200 | { 0xaf95, KEY_SUBTITLE }, |
201 | { 0x5f, 0x96, KEY_F15 }, /* AD */ | 201 | { 0x5f96, KEY_F15 }, /* AD */ |
202 | { 0x6f, 0x96, KEY_TEXT }, | 202 | { 0x6f96, KEY_TEXT }, |
203 | { 0x9f, 0x96, KEY_MUTE }, | 203 | { 0x9f96, KEY_MUTE }, |
204 | { 0xaf, 0x96, KEY_REWIND }, | 204 | { 0xaf96, KEY_REWIND }, |
205 | { 0x5f, 0x99, KEY_STOP }, | 205 | { 0x5f99, KEY_STOP }, |
206 | { 0x6f, 0x99, KEY_PLAY }, | 206 | { 0x6f99, KEY_PLAY }, |
207 | { 0x9f, 0x99, KEY_FASTFORWARD }, | 207 | { 0x9f99, KEY_FASTFORWARD }, |
208 | { 0xaf, 0x99, KEY_F16 }, /* chapter */ | 208 | { 0xaf99, KEY_F16 }, /* chapter */ |
209 | { 0x5f, 0x9a, KEY_PAUSE }, | 209 | { 0x5f9a, KEY_PAUSE }, |
210 | { 0x6f, 0x9a, KEY_PLAY }, | 210 | { 0x6f9a, KEY_PLAY }, |
211 | { 0x9f, 0x9a, KEY_RECORD }, | 211 | { 0x9f9a, KEY_RECORD }, |
212 | { 0xaf, 0x9a, KEY_F17 }, /* picture in picture */ | 212 | { 0xaf9a, KEY_F17 }, /* picture in picture */ |
213 | { 0x5f, 0xa5, KEY_KPPLUS }, /* zoom in */ | 213 | { 0x5fa5, KEY_KPPLUS }, /* zoom in */ |
214 | { 0x6f, 0xa5, KEY_KPMINUS }, /* zoom out */ | 214 | { 0x6fa5, KEY_KPMINUS }, /* zoom out */ |
215 | { 0x9f, 0xa5, KEY_F18 }, /* capture */ | 215 | { 0x9fa5, KEY_F18 }, /* capture */ |
216 | { 0xaf, 0xa5, KEY_F19 }, /* web */ | 216 | { 0xafa5, KEY_F19 }, /* web */ |
217 | { 0x5f, 0xa6, KEY_EMAIL }, | 217 | { 0x5fa6, KEY_EMAIL }, |
218 | { 0x6f, 0xa6, KEY_PHONE }, | 218 | { 0x6fa6, KEY_PHONE }, |
219 | { 0x9f, 0xa6, KEY_PC }, | 219 | { 0x9fa6, KEY_PC }, |
220 | }; | 220 | }; |
221 | 221 | ||
222 | static int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | 222 | static int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state) |
@@ -238,8 +238,8 @@ static int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | |||
238 | if (key[1] != 0) | 238 | if (key[1] != 0) |
239 | { | 239 | { |
240 | for (i = 0; i < d->props.rc_key_map_size; i++) { | 240 | for (i = 0; i < d->props.rc_key_map_size; i++) { |
241 | if (d->props.rc_key_map[i].custom == key[1] && | 241 | if (rc5_custom(&d->props.rc_key_map[i]) == key[1] && |
242 | d->props.rc_key_map[i].data == key[2]) { | 242 | rc5_data(&d->props.rc_key_map[i]) == key[2]) { |
243 | *event = d->props.rc_key_map[i].event; | 243 | *event = d->props.rc_key_map[i].event; |
244 | *state = REMOTE_KEY_PRESSED; | 244 | *state = REMOTE_KEY_PRESSED; |
245 | return 0; | 245 | return 0; |