aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-input.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2005-11-09 00:36:22 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:07 -0500
commit6b96144026e27b9250713f86355e83095204d5f2 (patch)
treebddf687c9eb864aef2c86782eddf7d5e70c2c14f /drivers/media/video/saa7134/saa7134-input.c
parent7c08fb02f1a1b86292aa144cc876a95fbe2a5606 (diff)
[PATCH] v4l: 639: added new card gotview pci 7135
- Added new card GoTView PCI 7135 Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-input.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index 8e2cc9d75cd5..899abd8ba0d1 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -401,6 +401,48 @@ static IR_KEYTAB_TYPE manli_codes[IR_KEYTAB_SIZE] = {
401 401
402 // 0x1d unused ? 402 // 0x1d unused ?
403}; 403};
404
405
406/* Mike Baikov Mike Baikov <lists@baikov.com> */
407static IR_KEYTAB_TYPE gotview7135_codes[IR_KEYTAB_SIZE] = {
408
409 [ 33 ] = KEY_POWER,
410 [ 105] = KEY_TV,
411 [ 51 ] = KEY_KP0,
412 [ 81 ] = KEY_KP1,
413 [ 49 ] = KEY_KP2,
414 [ 113] = KEY_KP3,
415 [ 59 ] = KEY_KP4,
416 [ 88 ] = KEY_KP5,
417 [ 65 ] = KEY_KP6,
418 [ 72 ] = KEY_KP7,
419 [ 48 ] = KEY_KP8,
420 [ 83 ] = KEY_KP9,
421 [ 115] = KEY_AGAIN, /* LOOP */
422 [ 10 ] = KEY_AUDIO,
423 [ 97 ] = KEY_PRINT, /* PREVIEW */
424 [ 122] = KEY_VIDEO,
425 [ 32 ] = KEY_CHANNELUP,
426 [ 64 ] = KEY_CHANNELDOWN,
427 [ 24 ] = KEY_VOLUMEDOWN,
428 [ 80 ] = KEY_VOLUMEUP,
429 [ 16 ] = KEY_MUTE,
430 [ 74 ] = KEY_SEARCH,
431 [ 123] = KEY_SHUFFLE, /* SNAPSHOT */
432 [ 34 ] = KEY_RECORD,
433 [ 98 ] = KEY_STOP,
434 [ 120] = KEY_PLAY,
435 [ 57 ] = KEY_REWIND,
436 [ 89 ] = KEY_PAUSE,
437 [ 25 ] = KEY_FORWARD,
438 [ 9 ] = KEY_ZOOM,
439
440 [ 82 ] = KEY_F21, /* LIVE TIMESHIFT */
441 [ 26 ] = KEY_F22, /* MIN TIMESHIFT */
442 [ 58 ] = KEY_F23, /* TIMESHIFT */
443 [ 112] = KEY_F24, /* NORMAL TIMESHIFT */
444};
445
404/* ---------------------------------------------------------------------- */ 446/* ---------------------------------------------------------------------- */
405 447
406static int build_key(struct saa7134_dev *dev) 448static int build_key(struct saa7134_dev *dev)
@@ -523,6 +565,13 @@ int saa7134_input_init1(struct saa7134_dev *dev)
523 mask_keydown = 0x002000; 565 mask_keydown = 0x002000;
524 polling = 50; // ms 566 polling = 50; // ms
525 break; 567 break;
568 case SAA7134_BOARD_GOTVIEW_7135:
569 ir_codes = gotview7135_codes;
570 mask_keycode = 0x0003EC;
571 mask_keyup = 0x008000;
572 mask_keydown = 0x000010;
573 polling = 50; // ms
574 break;
526 case SAA7134_BOARD_VIDEOMATE_TV_PVR: 575 case SAA7134_BOARD_VIDEOMATE_TV_PVR:
527 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII: 576 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
528 ir_codes = videomate_tv_pvr_codes; 577 ir_codes = videomate_tv_pvr_codes;