diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-04-02 19:01:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:56:50 -0400 |
commit | 02858eedcb78a664215b918d98cdb753ce432ce6 (patch) | |
tree | dd212b7b2e63cd846a1c9cf0d9b751514648b130 /drivers/media/video/bt8xx/bttv-input.c | |
parent | b2245ba1644eb1eba400fd04c6e7bb3ab2d4a8fa (diff) |
V4L/DVB: ir-core: Make use of the new IR keymap modules
Instead of using the ugly keymap sequences, use the new rc-*.ko keymap
files. For now, it is still needed to have one keymap loaded, for the
RC code to work. Later patches will remove this depenency.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-input.c')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-input.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c index 71a0047ca7b..f68717a4bde 100644 --- a/drivers/media/video/bt8xx/bttv-input.c +++ b/drivers/media/video/bt8xx/bttv-input.c | |||
@@ -248,7 +248,7 @@ static void bttv_ir_stop(struct bttv *btv) | |||
248 | int bttv_input_init(struct bttv *btv) | 248 | int bttv_input_init(struct bttv *btv) |
249 | { | 249 | { |
250 | struct card_ir *ir; | 250 | struct card_ir *ir; |
251 | struct ir_scancode_table *ir_codes = NULL; | 251 | char *ir_codes = NULL; |
252 | struct input_dev *input_dev; | 252 | struct input_dev *input_dev; |
253 | u64 ir_type = IR_TYPE_OTHER; | 253 | u64 ir_type = IR_TYPE_OTHER; |
254 | int err = -ENOMEM; | 254 | int err = -ENOMEM; |
@@ -266,7 +266,7 @@ int bttv_input_init(struct bttv *btv) | |||
266 | case BTTV_BOARD_AVERMEDIA: | 266 | case BTTV_BOARD_AVERMEDIA: |
267 | case BTTV_BOARD_AVPHONE98: | 267 | case BTTV_BOARD_AVPHONE98: |
268 | case BTTV_BOARD_AVERMEDIA98: | 268 | case BTTV_BOARD_AVERMEDIA98: |
269 | ir_codes = &IR_KEYTABLE(avermedia); | 269 | ir_codes = RC_MAP_AVERMEDIA; |
270 | ir->mask_keycode = 0xf88000; | 270 | ir->mask_keycode = 0xf88000; |
271 | ir->mask_keydown = 0x010000; | 271 | ir->mask_keydown = 0x010000; |
272 | ir->polling = 50; // ms | 272 | ir->polling = 50; // ms |
@@ -274,14 +274,14 @@ int bttv_input_init(struct bttv *btv) | |||
274 | 274 | ||
275 | case BTTV_BOARD_AVDVBT_761: | 275 | case BTTV_BOARD_AVDVBT_761: |
276 | case BTTV_BOARD_AVDVBT_771: | 276 | case BTTV_BOARD_AVDVBT_771: |
277 | ir_codes = &IR_KEYTABLE(avermedia_dvbt); | 277 | ir_codes = RC_MAP_AVERMEDIA_DVBT; |
278 | ir->mask_keycode = 0x0f00c0; | 278 | ir->mask_keycode = 0x0f00c0; |
279 | ir->mask_keydown = 0x000020; | 279 | ir->mask_keydown = 0x000020; |
280 | ir->polling = 50; // ms | 280 | ir->polling = 50; // ms |
281 | break; | 281 | break; |
282 | 282 | ||
283 | case BTTV_BOARD_PXELVWPLTVPAK: | 283 | case BTTV_BOARD_PXELVWPLTVPAK: |
284 | ir_codes = &IR_KEYTABLE(pixelview); | 284 | ir_codes = RC_MAP_PIXELVIEW; |
285 | ir->mask_keycode = 0x003e00; | 285 | ir->mask_keycode = 0x003e00; |
286 | ir->mask_keyup = 0x010000; | 286 | ir->mask_keyup = 0x010000; |
287 | ir->polling = 50; // ms | 287 | ir->polling = 50; // ms |
@@ -289,24 +289,24 @@ int bttv_input_init(struct bttv *btv) | |||
289 | case BTTV_BOARD_PV_M4900: | 289 | case BTTV_BOARD_PV_M4900: |
290 | case BTTV_BOARD_PV_BT878P_9B: | 290 | case BTTV_BOARD_PV_BT878P_9B: |
291 | case BTTV_BOARD_PV_BT878P_PLUS: | 291 | case BTTV_BOARD_PV_BT878P_PLUS: |
292 | ir_codes = &IR_KEYTABLE(pixelview); | 292 | ir_codes = RC_MAP_PIXELVIEW; |
293 | ir->mask_keycode = 0x001f00; | 293 | ir->mask_keycode = 0x001f00; |
294 | ir->mask_keyup = 0x008000; | 294 | ir->mask_keyup = 0x008000; |
295 | ir->polling = 50; // ms | 295 | ir->polling = 50; // ms |
296 | break; | 296 | break; |
297 | 297 | ||
298 | case BTTV_BOARD_WINFAST2000: | 298 | case BTTV_BOARD_WINFAST2000: |
299 | ir_codes = &IR_KEYTABLE(winfast); | 299 | ir_codes = RC_MAP_WINFAST; |
300 | ir->mask_keycode = 0x1f8; | 300 | ir->mask_keycode = 0x1f8; |
301 | break; | 301 | break; |
302 | case BTTV_BOARD_MAGICTVIEW061: | 302 | case BTTV_BOARD_MAGICTVIEW061: |
303 | case BTTV_BOARD_MAGICTVIEW063: | 303 | case BTTV_BOARD_MAGICTVIEW063: |
304 | ir_codes = &IR_KEYTABLE(winfast); | 304 | ir_codes = RC_MAP_WINFAST; |
305 | ir->mask_keycode = 0x0008e000; | 305 | ir->mask_keycode = 0x0008e000; |
306 | ir->mask_keydown = 0x00200000; | 306 | ir->mask_keydown = 0x00200000; |
307 | break; | 307 | break; |
308 | case BTTV_BOARD_APAC_VIEWCOMP: | 308 | case BTTV_BOARD_APAC_VIEWCOMP: |
309 | ir_codes = &IR_KEYTABLE(apac_viewcomp); | 309 | ir_codes = RC_MAP_APAC_VIEWCOMP; |
310 | ir->mask_keycode = 0x001f00; | 310 | ir->mask_keycode = 0x001f00; |
311 | ir->mask_keyup = 0x008000; | 311 | ir->mask_keyup = 0x008000; |
312 | ir->polling = 50; // ms | 312 | ir->polling = 50; // ms |
@@ -314,30 +314,30 @@ int bttv_input_init(struct bttv *btv) | |||
314 | case BTTV_BOARD_ASKEY_CPH03X: | 314 | case BTTV_BOARD_ASKEY_CPH03X: |
315 | case BTTV_BOARD_CONCEPTRONIC_CTVFMI2: | 315 | case BTTV_BOARD_CONCEPTRONIC_CTVFMI2: |
316 | case BTTV_BOARD_CONTVFMI: | 316 | case BTTV_BOARD_CONTVFMI: |
317 | ir_codes = &IR_KEYTABLE(pixelview); | 317 | ir_codes = RC_MAP_PIXELVIEW; |
318 | ir->mask_keycode = 0x001F00; | 318 | ir->mask_keycode = 0x001F00; |
319 | ir->mask_keyup = 0x006000; | 319 | ir->mask_keyup = 0x006000; |
320 | ir->polling = 50; // ms | 320 | ir->polling = 50; // ms |
321 | break; | 321 | break; |
322 | case BTTV_BOARD_NEBULA_DIGITV: | 322 | case BTTV_BOARD_NEBULA_DIGITV: |
323 | ir_codes = &IR_KEYTABLE(nebula); | 323 | ir_codes = RC_MAP_NEBULA; |
324 | btv->custom_irq = bttv_rc5_irq; | 324 | btv->custom_irq = bttv_rc5_irq; |
325 | ir->rc5_gpio = 1; | 325 | ir->rc5_gpio = 1; |
326 | break; | 326 | break; |
327 | case BTTV_BOARD_MACHTV_MAGICTV: | 327 | case BTTV_BOARD_MACHTV_MAGICTV: |
328 | ir_codes = &IR_KEYTABLE(apac_viewcomp); | 328 | ir_codes = RC_MAP_APAC_VIEWCOMP; |
329 | ir->mask_keycode = 0x001F00; | 329 | ir->mask_keycode = 0x001F00; |
330 | ir->mask_keyup = 0x004000; | 330 | ir->mask_keyup = 0x004000; |
331 | ir->polling = 50; /* ms */ | 331 | ir->polling = 50; /* ms */ |
332 | break; | 332 | break; |
333 | case BTTV_BOARD_KOZUMI_KTV_01C: | 333 | case BTTV_BOARD_KOZUMI_KTV_01C: |
334 | ir_codes = &IR_KEYTABLE(pctv_sedna); | 334 | ir_codes = RC_MAP_PCTV_SEDNA; |
335 | ir->mask_keycode = 0x001f00; | 335 | ir->mask_keycode = 0x001f00; |
336 | ir->mask_keyup = 0x006000; | 336 | ir->mask_keyup = 0x006000; |
337 | ir->polling = 50; /* ms */ | 337 | ir->polling = 50; /* ms */ |
338 | break; | 338 | break; |
339 | case BTTV_BOARD_ENLTV_FM_2: | 339 | case BTTV_BOARD_ENLTV_FM_2: |
340 | ir_codes = &IR_KEYTABLE(encore_enltv2); | 340 | ir_codes = RC_MAP_ENCORE_ENLTV2; |
341 | ir->mask_keycode = 0x00fd00; | 341 | ir->mask_keycode = 0x00fd00; |
342 | ir->mask_keyup = 0x000080; | 342 | ir->mask_keyup = 0x000080; |
343 | ir->polling = 1; /* ms */ | 343 | ir->polling = 1; /* ms */ |
@@ -392,7 +392,7 @@ int bttv_input_init(struct bttv *btv) | |||
392 | bttv_ir_start(btv, ir); | 392 | bttv_ir_start(btv, ir); |
393 | 393 | ||
394 | /* all done */ | 394 | /* all done */ |
395 | err = __ir_input_register(btv->remote->dev, ir_codes, NULL, MODULE_NAME); | 395 | err = ir_input_register(btv->remote->dev, ir_codes, NULL, MODULE_NAME); |
396 | if (err) | 396 | if (err) |
397 | goto err_out_stop; | 397 | goto err_out_stop; |
398 | 398 | ||