diff options
Diffstat (limited to 'drivers/media/common/ir-keymaps.c')
-rw-r--r-- | drivers/media/common/ir-keymaps.c | 92 |
1 files changed, 91 insertions, 1 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c index b7ed88c59b54..4952aeb5dd80 100644 --- a/drivers/media/common/ir-keymaps.c +++ b/drivers/media/common/ir-keymaps.c | |||
@@ -517,7 +517,8 @@ EXPORT_SYMBOL_GPL(ir_codes_adstech_dvb_t_pci); | |||
517 | 517 | ||
518 | /* ---------------------------------------------------------------------- */ | 518 | /* ---------------------------------------------------------------------- */ |
519 | 519 | ||
520 | /* MSI TV@nywhere remote */ | 520 | /* MSI TV@nywhere MASTER remote */ |
521 | |||
521 | IR_KEYTAB_TYPE ir_codes_msi_tvanywhere[IR_KEYTAB_SIZE] = { | 522 | IR_KEYTAB_TYPE ir_codes_msi_tvanywhere[IR_KEYTAB_SIZE] = { |
522 | /* Keys 0 to 9 */ | 523 | /* Keys 0 to 9 */ |
523 | [ 0x00 ] = KEY_0, | 524 | [ 0x00 ] = KEY_0, |
@@ -551,6 +552,95 @@ EXPORT_SYMBOL_GPL(ir_codes_msi_tvanywhere); | |||
551 | 552 | ||
552 | /* ---------------------------------------------------------------------- */ | 553 | /* ---------------------------------------------------------------------- */ |
553 | 554 | ||
555 | /* | ||
556 | Keycodes for remote on the MSI TV@nywhere Plus. The controller IC on the card | ||
557 | is marked "KS003". The controller is I2C at address 0x30, but does not seem | ||
558 | to respond to probes until a read is performed from a valid device. | ||
559 | I don't know why... | ||
560 | |||
561 | Note: This remote may be of similar or identical design to the | ||
562 | Pixelview remote (?). The raw codes and duplicate button codes | ||
563 | appear to be the same. | ||
564 | |||
565 | Henry Wong <henry@stuffedcow.net> | ||
566 | Some changes to formatting and keycodes by Mark Schultz <n9xmj@yahoo.com> | ||
567 | |||
568 | */ | ||
569 | |||
570 | IR_KEYTAB_TYPE ir_codes_msi_tvanywhere_plus[IR_KEYTAB_SIZE] = { | ||
571 | |||
572 | /* ---- Remote Button Layout ---- | ||
573 | |||
574 | POWER SOURCE SCAN MUTE | ||
575 | TV/FM 1 2 3 | ||
576 | |> 4 5 6 | ||
577 | <| 7 8 9 | ||
578 | ^^UP 0 + RECALL | ||
579 | vvDN RECORD STOP PLAY | ||
580 | |||
581 | MINIMIZE ZOOM | ||
582 | |||
583 | CH+ | ||
584 | VOL- VOL+ | ||
585 | CH- | ||
586 | |||
587 | SNAPSHOT MTS | ||
588 | |||
589 | << FUNC >> RESET | ||
590 | */ | ||
591 | |||
592 | [0x01] = KEY_KP1, /* 1 */ | ||
593 | [0x0b] = KEY_KP2, /* 2 */ | ||
594 | [0x1b] = KEY_KP3, /* 3 */ | ||
595 | [0x05] = KEY_KP4, /* 4 */ | ||
596 | [0x09] = KEY_KP5, /* 5 */ | ||
597 | [0x15] = KEY_KP6, /* 6 */ | ||
598 | [0x06] = KEY_KP7, /* 7 */ | ||
599 | [0x0a] = KEY_KP8, /* 8 */ | ||
600 | [0x12] = KEY_KP9, /* 9 */ | ||
601 | [0x02] = KEY_KP0, /* 0 */ | ||
602 | [0x10] = KEY_KPPLUS, /* + */ | ||
603 | [0x13] = KEY_AGAIN, /* Recall */ | ||
604 | |||
605 | [0x1e] = KEY_POWER, /* Power */ | ||
606 | [0x07] = KEY_TUNER, /* Source */ | ||
607 | [0x1c] = KEY_SEARCH, /* Scan */ | ||
608 | [0x18] = KEY_MUTE, /* Mute */ | ||
609 | |||
610 | [0x03] = KEY_RADIO, /* TV/FM */ | ||
611 | /* The next four keys are duplicates that appear to send the | ||
612 | same IR code as Ch+, Ch-, >>, and << . The raw code assigned | ||
613 | to them is the actual code + 0x20 - they will never be | ||
614 | detected as such unless some way is discovered to distinguish | ||
615 | these buttons from those that have the same code. */ | ||
616 | [0x3f] = KEY_RIGHT, /* |> and Ch+ */ | ||
617 | [0x37] = KEY_LEFT, /* <| and Ch- */ | ||
618 | [0x2c] = KEY_UP, /* ^^Up and >> */ | ||
619 | [0x24] = KEY_DOWN, /* vvDn and << */ | ||
620 | |||
621 | [0x00] = KEY_RECORD, /* Record */ | ||
622 | [0x08] = KEY_STOP, /* Stop */ | ||
623 | [0x11] = KEY_PLAY, /* Play */ | ||
624 | |||
625 | [0x0f] = KEY_CLOSE, /* Minimize */ | ||
626 | [0x19] = KEY_ZOOM, /* Zoom */ | ||
627 | [0x1a] = KEY_SHUFFLE, /* Snapshot */ | ||
628 | [0x0d] = KEY_LANGUAGE, /* MTS */ | ||
629 | |||
630 | [0x14] = KEY_VOLUMEDOWN, /* Vol- */ | ||
631 | [0x16] = KEY_VOLUMEUP, /* Vol+ */ | ||
632 | [0x17] = KEY_CHANNELDOWN, /* Ch- */ | ||
633 | [0x1f] = KEY_CHANNELUP, /* Ch+ */ | ||
634 | |||
635 | [0x04] = KEY_REWIND, /* << */ | ||
636 | [0x0e] = KEY_MENU, /* Function */ | ||
637 | [0x0c] = KEY_FASTFORWARD, /* >> */ | ||
638 | [0x1d] = KEY_RESTART, /* Reset */ | ||
639 | }; | ||
640 | EXPORT_SYMBOL_GPL(ir_codes_msi_tvanywhere_plus); | ||
641 | |||
642 | /* ---------------------------------------------------------------------- */ | ||
643 | |||
554 | /* Cinergy 1400 DVB-T */ | 644 | /* Cinergy 1400 DVB-T */ |
555 | IR_KEYTAB_TYPE ir_codes_cinergy_1400[IR_KEYTAB_SIZE] = { | 645 | IR_KEYTAB_TYPE ir_codes_cinergy_1400[IR_KEYTAB_SIZE] = { |
556 | [ 0x01 ] = KEY_POWER, | 646 | [ 0x01 ] = KEY_POWER, |