aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-input.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-02 19:01:00 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:56:50 -0400
commit02858eedcb78a664215b918d98cdb753ce432ce6 (patch)
treedd212b7b2e63cd846a1c9cf0d9b751514648b130 /drivers/media/video/saa7134/saa7134-input.c
parentb2245ba1644eb1eba400fd04c6e7bb3ab2d4a8fa (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/saa7134/saa7134-input.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c81
1 files changed, 40 insertions, 41 deletions
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index bf6751c760b4..f46dca3ccf79 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -587,7 +587,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
587{ 587{
588 struct card_ir *ir; 588 struct card_ir *ir;
589 struct input_dev *input_dev; 589 struct input_dev *input_dev;
590 struct ir_scancode_table *ir_codes = NULL; 590 char *ir_codes = NULL;
591 u32 mask_keycode = 0; 591 u32 mask_keycode = 0;
592 u32 mask_keydown = 0; 592 u32 mask_keydown = 0;
593 u32 mask_keyup = 0; 593 u32 mask_keyup = 0;
@@ -595,6 +595,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
595 int rc5_gpio = 0; 595 int rc5_gpio = 0;
596 int nec_gpio = 0; 596 int nec_gpio = 0;
597 int raw_decode = 0; 597 int raw_decode = 0;
598 int allow_protocol_change = 0;
598 u64 ir_type = IR_TYPE_OTHER; 599 u64 ir_type = IR_TYPE_OTHER;
599 int err; 600 int err;
600 601
@@ -610,27 +611,27 @@ int saa7134_input_init1(struct saa7134_dev *dev)
610 case SAA7134_BOARD_FLYTVPLATINUM_FM: 611 case SAA7134_BOARD_FLYTVPLATINUM_FM:
611 case SAA7134_BOARD_FLYTVPLATINUM_MINI2: 612 case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
612 case SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM: 613 case SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM:
613 ir_codes = &IR_KEYTABLE(flyvideo); 614 ir_codes = RC_MAP_FLYVIDEO;
614 mask_keycode = 0xEC00000; 615 mask_keycode = 0xEC00000;
615 mask_keydown = 0x0040000; 616 mask_keydown = 0x0040000;
616 break; 617 break;
617 case SAA7134_BOARD_CINERGY400: 618 case SAA7134_BOARD_CINERGY400:
618 case SAA7134_BOARD_CINERGY600: 619 case SAA7134_BOARD_CINERGY600:
619 case SAA7134_BOARD_CINERGY600_MK3: 620 case SAA7134_BOARD_CINERGY600_MK3:
620 ir_codes = &IR_KEYTABLE(cinergy); 621 ir_codes = RC_MAP_CINERGY;
621 mask_keycode = 0x00003f; 622 mask_keycode = 0x00003f;
622 mask_keyup = 0x040000; 623 mask_keyup = 0x040000;
623 break; 624 break;
624 case SAA7134_BOARD_ECS_TVP3XP: 625 case SAA7134_BOARD_ECS_TVP3XP:
625 case SAA7134_BOARD_ECS_TVP3XP_4CB5: 626 case SAA7134_BOARD_ECS_TVP3XP_4CB5:
626 ir_codes = &IR_KEYTABLE(eztv); 627 ir_codes = RC_MAP_EZTV;
627 mask_keycode = 0x00017c; 628 mask_keycode = 0x00017c;
628 mask_keyup = 0x000002; 629 mask_keyup = 0x000002;
629 polling = 50; // ms 630 polling = 50; // ms
630 break; 631 break;
631 case SAA7134_BOARD_KWORLD_XPERT: 632 case SAA7134_BOARD_KWORLD_XPERT:
632 case SAA7134_BOARD_AVACSSMARTTV: 633 case SAA7134_BOARD_AVACSSMARTTV:
633 ir_codes = &IR_KEYTABLE(pixelview); 634 ir_codes = RC_MAP_PIXELVIEW;
634 mask_keycode = 0x00001F; 635 mask_keycode = 0x00001F;
635 mask_keyup = 0x000020; 636 mask_keyup = 0x000020;
636 polling = 50; // ms 637 polling = 50; // ms
@@ -647,7 +648,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
647 case SAA7134_BOARD_AVERMEDIA_GO_007_FM: 648 case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
648 case SAA7134_BOARD_AVERMEDIA_M102: 649 case SAA7134_BOARD_AVERMEDIA_M102:
649 case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS: 650 case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS:
650 ir_codes = &IR_KEYTABLE(avermedia); 651 ir_codes = RC_MAP_AVERMEDIA;
651 mask_keycode = 0x0007C8; 652 mask_keycode = 0x0007C8;
652 mask_keydown = 0x000010; 653 mask_keydown = 0x000010;
653 polling = 50; // ms 654 polling = 50; // ms
@@ -656,14 +657,14 @@ int saa7134_input_init1(struct saa7134_dev *dev)
656 saa_setb(SAA7134_GPIO_GPSTATUS0, 0x4); 657 saa_setb(SAA7134_GPIO_GPSTATUS0, 0x4);
657 break; 658 break;
658 case SAA7134_BOARD_AVERMEDIA_M135A: 659 case SAA7134_BOARD_AVERMEDIA_M135A:
659 ir_codes = &IR_KEYTABLE(avermedia_m135a_rm_jx); 660 ir_codes = RC_MAP_AVERMEDIA_M135A_RM_JX;
660 mask_keydown = 0x0040000; 661 mask_keydown = 0x0040000;
661 mask_keycode = 0xffff; 662 mask_keycode = 0xffff;
662 raw_decode = 1; 663 raw_decode = 1;
663 break; 664 break;
664 case SAA7134_BOARD_AVERMEDIA_777: 665 case SAA7134_BOARD_AVERMEDIA_777:
665 case SAA7134_BOARD_AVERMEDIA_A16AR: 666 case SAA7134_BOARD_AVERMEDIA_A16AR:
666 ir_codes = &IR_KEYTABLE(avermedia); 667 ir_codes = RC_MAP_AVERMEDIA;
667 mask_keycode = 0x02F200; 668 mask_keycode = 0x02F200;
668 mask_keydown = 0x000400; 669 mask_keydown = 0x000400;
669 polling = 50; // ms 670 polling = 50; // ms
@@ -672,7 +673,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
672 saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1); 673 saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1);
673 break; 674 break;
674 case SAA7134_BOARD_AVERMEDIA_A16D: 675 case SAA7134_BOARD_AVERMEDIA_A16D:
675 ir_codes = &IR_KEYTABLE(avermedia_a16d); 676 ir_codes = RC_MAP_AVERMEDIA_A16D;
676 mask_keycode = 0x02F200; 677 mask_keycode = 0x02F200;
677 mask_keydown = 0x000400; 678 mask_keydown = 0x000400;
678 polling = 50; /* ms */ 679 polling = 50; /* ms */
@@ -681,14 +682,14 @@ int saa7134_input_init1(struct saa7134_dev *dev)
681 saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1); 682 saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1);
682 break; 683 break;
683 case SAA7134_BOARD_KWORLD_TERMINATOR: 684 case SAA7134_BOARD_KWORLD_TERMINATOR:
684 ir_codes = &IR_KEYTABLE(pixelview); 685 ir_codes = RC_MAP_PIXELVIEW;
685 mask_keycode = 0x00001f; 686 mask_keycode = 0x00001f;
686 mask_keyup = 0x000060; 687 mask_keyup = 0x000060;
687 polling = 50; // ms 688 polling = 50; // ms
688 break; 689 break;
689 case SAA7134_BOARD_MANLI_MTV001: 690 case SAA7134_BOARD_MANLI_MTV001:
690 case SAA7134_BOARD_MANLI_MTV002: 691 case SAA7134_BOARD_MANLI_MTV002:
691 ir_codes = &IR_KEYTABLE(manli); 692 ir_codes = RC_MAP_MANLI;
692 mask_keycode = 0x001f00; 693 mask_keycode = 0x001f00;
693 mask_keyup = 0x004000; 694 mask_keyup = 0x004000;
694 polling = 50; /* ms */ 695 polling = 50; /* ms */
@@ -708,25 +709,25 @@ int saa7134_input_init1(struct saa7134_dev *dev)
708 case SAA7134_BOARD_BEHOLD_507_9FM: 709 case SAA7134_BOARD_BEHOLD_507_9FM:
709 case SAA7134_BOARD_BEHOLD_507RDS_MK3: 710 case SAA7134_BOARD_BEHOLD_507RDS_MK3:
710 case SAA7134_BOARD_BEHOLD_507RDS_MK5: 711 case SAA7134_BOARD_BEHOLD_507RDS_MK5:
711 ir_codes = &IR_KEYTABLE(manli); 712 ir_codes = RC_MAP_MANLI;
712 mask_keycode = 0x003f00; 713 mask_keycode = 0x003f00;
713 mask_keyup = 0x004000; 714 mask_keyup = 0x004000;
714 polling = 50; /* ms */ 715 polling = 50; /* ms */
715 break; 716 break;
716 case SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM: 717 case SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM:
717 ir_codes = &IR_KEYTABLE(behold_columbus); 718 ir_codes = RC_MAP_BEHOLD_COLUMBUS;
718 mask_keycode = 0x003f00; 719 mask_keycode = 0x003f00;
719 mask_keyup = 0x004000; 720 mask_keyup = 0x004000;
720 polling = 50; // ms 721 polling = 50; // ms
721 break; 722 break;
722 case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS: 723 case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
723 ir_codes = &IR_KEYTABLE(pctv_sedna); 724 ir_codes = RC_MAP_PCTV_SEDNA;
724 mask_keycode = 0x001f00; 725 mask_keycode = 0x001f00;
725 mask_keyup = 0x004000; 726 mask_keyup = 0x004000;
726 polling = 50; // ms 727 polling = 50; // ms
727 break; 728 break;
728 case SAA7134_BOARD_GOTVIEW_7135: 729 case SAA7134_BOARD_GOTVIEW_7135:
729 ir_codes = &IR_KEYTABLE(gotview7135); 730 ir_codes = RC_MAP_GOTVIEW7135;
730 mask_keycode = 0x0003CC; 731 mask_keycode = 0x0003CC;
731 mask_keydown = 0x000010; 732 mask_keydown = 0x000010;
732 polling = 5; /* ms */ 733 polling = 5; /* ms */
@@ -735,80 +736,80 @@ int saa7134_input_init1(struct saa7134_dev *dev)
735 case SAA7134_BOARD_VIDEOMATE_TV_PVR: 736 case SAA7134_BOARD_VIDEOMATE_TV_PVR:
736 case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS: 737 case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
737 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII: 738 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
738 ir_codes = &IR_KEYTABLE(videomate_tv_pvr); 739 ir_codes = RC_MAP_VIDEOMATE_TV_PVR;
739 mask_keycode = 0x00003F; 740 mask_keycode = 0x00003F;
740 mask_keyup = 0x400000; 741 mask_keyup = 0x400000;
741 polling = 50; // ms 742 polling = 50; // ms
742 break; 743 break;
743 case SAA7134_BOARD_PROTEUS_2309: 744 case SAA7134_BOARD_PROTEUS_2309:
744 ir_codes = &IR_KEYTABLE(proteus_2309); 745 ir_codes = RC_MAP_PROTEUS_2309;
745 mask_keycode = 0x00007F; 746 mask_keycode = 0x00007F;
746 mask_keyup = 0x000080; 747 mask_keyup = 0x000080;
747 polling = 50; // ms 748 polling = 50; // ms
748 break; 749 break;
749 case SAA7134_BOARD_VIDEOMATE_DVBT_300: 750 case SAA7134_BOARD_VIDEOMATE_DVBT_300:
750 case SAA7134_BOARD_VIDEOMATE_DVBT_200: 751 case SAA7134_BOARD_VIDEOMATE_DVBT_200:
751 ir_codes = &IR_KEYTABLE(videomate_tv_pvr); 752 ir_codes = RC_MAP_VIDEOMATE_TV_PVR;
752 mask_keycode = 0x003F00; 753 mask_keycode = 0x003F00;
753 mask_keyup = 0x040000; 754 mask_keyup = 0x040000;
754 break; 755 break;
755 case SAA7134_BOARD_FLYDVBS_LR300: 756 case SAA7134_BOARD_FLYDVBS_LR300:
756 case SAA7134_BOARD_FLYDVBT_LR301: 757 case SAA7134_BOARD_FLYDVBT_LR301:
757 case SAA7134_BOARD_FLYDVBTDUO: 758 case SAA7134_BOARD_FLYDVBTDUO:
758 ir_codes = &IR_KEYTABLE(flydvb); 759 ir_codes = RC_MAP_FLYDVB;
759 mask_keycode = 0x0001F00; 760 mask_keycode = 0x0001F00;
760 mask_keydown = 0x0040000; 761 mask_keydown = 0x0040000;
761 break; 762 break;
762 case SAA7134_BOARD_ASUSTeK_P7131_DUAL: 763 case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
763 case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA: 764 case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
764 case SAA7134_BOARD_ASUSTeK_P7131_ANALOG: 765 case SAA7134_BOARD_ASUSTeK_P7131_ANALOG:
765 ir_codes = &IR_KEYTABLE(asus_pc39); 766 ir_codes = RC_MAP_ASUS_PC39;
766 mask_keydown = 0x0040000; 767 mask_keydown = 0x0040000;
767 rc5_gpio = 1; 768 rc5_gpio = 1;
768 break; 769 break;
769 case SAA7134_BOARD_ENCORE_ENLTV: 770 case SAA7134_BOARD_ENCORE_ENLTV:
770 case SAA7134_BOARD_ENCORE_ENLTV_FM: 771 case SAA7134_BOARD_ENCORE_ENLTV_FM:
771 ir_codes = &IR_KEYTABLE(encore_enltv); 772 ir_codes = RC_MAP_ENCORE_ENLTV;
772 mask_keycode = 0x00007f; 773 mask_keycode = 0x00007f;
773 mask_keyup = 0x040000; 774 mask_keyup = 0x040000;
774 polling = 50; // ms 775 polling = 50; // ms
775 break; 776 break;
776 case SAA7134_BOARD_ENCORE_ENLTV_FM53: 777 case SAA7134_BOARD_ENCORE_ENLTV_FM53:
777 ir_codes = &IR_KEYTABLE(encore_enltv_fm53); 778 ir_codes = RC_MAP_ENCORE_ENLTV_FM53;
778 mask_keydown = 0x0040000; 779 mask_keydown = 0x0040000;
779 mask_keycode = 0x00007f; 780 mask_keycode = 0x00007f;
780 nec_gpio = 1; 781 nec_gpio = 1;
781 break; 782 break;
782 case SAA7134_BOARD_10MOONSTVMASTER3: 783 case SAA7134_BOARD_10MOONSTVMASTER3:
783 ir_codes = &IR_KEYTABLE(encore_enltv); 784 ir_codes = RC_MAP_ENCORE_ENLTV;
784 mask_keycode = 0x5f80000; 785 mask_keycode = 0x5f80000;
785 mask_keyup = 0x8000000; 786 mask_keyup = 0x8000000;
786 polling = 50; //ms 787 polling = 50; //ms
787 break; 788 break;
788 case SAA7134_BOARD_GENIUS_TVGO_A11MCE: 789 case SAA7134_BOARD_GENIUS_TVGO_A11MCE:
789 ir_codes = &IR_KEYTABLE(genius_tvgo_a11mce); 790 ir_codes = RC_MAP_GENIUS_TVGO_A11MCE;
790 mask_keycode = 0xff; 791 mask_keycode = 0xff;
791 mask_keydown = 0xf00000; 792 mask_keydown = 0xf00000;
792 polling = 50; /* ms */ 793 polling = 50; /* ms */
793 break; 794 break;
794 case SAA7134_BOARD_REAL_ANGEL_220: 795 case SAA7134_BOARD_REAL_ANGEL_220:
795 ir_codes = &IR_KEYTABLE(real_audio_220_32_keys); 796 ir_codes = RC_MAP_REAL_AUDIO_220_32_KEYS;
796 mask_keycode = 0x3f00; 797 mask_keycode = 0x3f00;
797 mask_keyup = 0x4000; 798 mask_keyup = 0x4000;
798 polling = 50; /* ms */ 799 polling = 50; /* ms */
799 break; 800 break;
800 case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG: 801 case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG:
801 ir_codes = &IR_KEYTABLE(kworld_plus_tv_analog); 802 ir_codes = RC_MAP_KWORLD_PLUS_TV_ANALOG;
802 mask_keycode = 0x7f; 803 mask_keycode = 0x7f;
803 polling = 40; /* ms */ 804 polling = 40; /* ms */
804 break; 805 break;
805 case SAA7134_BOARD_VIDEOMATE_S350: 806 case SAA7134_BOARD_VIDEOMATE_S350:
806 ir_codes = &IR_KEYTABLE(videomate_s350); 807 ir_codes = RC_MAP_VIDEOMATE_S350;
807 mask_keycode = 0x003f00; 808 mask_keycode = 0x003f00;
808 mask_keydown = 0x040000; 809 mask_keydown = 0x040000;
809 break; 810 break;
810 case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S: 811 case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
811 ir_codes = &IR_KEYTABLE(winfast); 812 ir_codes = RC_MAP_WINFAST;
812 mask_keycode = 0x5f00; 813 mask_keycode = 0x5f00;
813 mask_keyup = 0x020000; 814 mask_keyup = 0x020000;
814 polling = 50; /* ms */ 815 polling = 50; /* ms */
@@ -853,13 +854,11 @@ int saa7134_input_init1(struct saa7134_dev *dev)
853 ir->props.open = saa7134_ir_open; 854 ir->props.open = saa7134_ir_open;
854 ir->props.close = saa7134_ir_close; 855 ir->props.close = saa7134_ir_close;
855 856
856 if (ir_codes->ir_type != IR_TYPE_OTHER && !raw_decode) { 857 if (!raw_decode && allow_protocol_change) {
857 ir->props.allowed_protos = IR_TYPE_RC5 | IR_TYPE_NEC; 858 ir->props.allowed_protos = IR_TYPE_RC5 | IR_TYPE_NEC;
858 ir->props.change_protocol = saa7134_ir_change_protocol; 859 ir->props.change_protocol = saa7134_ir_change_protocol;
859
860 /* Set IR protocol */
861 saa7134_ir_change_protocol(ir->props.priv, ir_codes->ir_type);
862 } 860 }
861
863 err = ir_input_init(input_dev, &ir->ir, ir_type); 862 err = ir_input_init(input_dev, &ir->ir, ir_type);
864 if (err < 0) 863 if (err < 0)
865 goto err_out_free; 864 goto err_out_free;
@@ -877,10 +876,10 @@ int saa7134_input_init1(struct saa7134_dev *dev)
877 } 876 }
878 input_dev->dev.parent = &dev->pci->dev; 877 input_dev->dev.parent = &dev->pci->dev;
879 878
880 err = __ir_input_register(ir->dev, ir_codes, &ir->props, MODULE_NAME); 879 err = ir_input_register(ir->dev, ir_codes, &ir->props, MODULE_NAME);
881 if (err) 880 if (err)
882 goto err_out_free; 881 goto err_out_free;
883 if (ir_codes->ir_type != IR_TYPE_OTHER) { 882 if (raw_decode) {
884 err = ir_raw_event_register(ir->dev); 883 err = ir_raw_event_register(ir->dev);
885 if (err) 884 if (err)
886 goto err_out_free; 885 goto err_out_free;
@@ -938,24 +937,24 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
938 dev->init_data.name = "Pinnacle PCTV"; 937 dev->init_data.name = "Pinnacle PCTV";
939 if (pinnacle_remote == 0) { 938 if (pinnacle_remote == 0) {
940 dev->init_data.get_key = get_key_pinnacle_color; 939 dev->init_data.get_key = get_key_pinnacle_color;
941 dev->init_data.ir_codes = &IR_KEYTABLE(pinnacle_color); 940 dev->init_data.ir_codes = RC_MAP_PINNACLE_COLOR;
942 info.addr = 0x47; 941 info.addr = 0x47;
943 } else { 942 } else {
944 dev->init_data.get_key = get_key_pinnacle_grey; 943 dev->init_data.get_key = get_key_pinnacle_grey;
945 dev->init_data.ir_codes = &IR_KEYTABLE(pinnacle_grey); 944 dev->init_data.ir_codes = RC_MAP_PINNACLE_GREY;
946 info.addr = 0x47; 945 info.addr = 0x47;
947 } 946 }
948 break; 947 break;
949 case SAA7134_BOARD_UPMOST_PURPLE_TV: 948 case SAA7134_BOARD_UPMOST_PURPLE_TV:
950 dev->init_data.name = "Purple TV"; 949 dev->init_data.name = "Purple TV";
951 dev->init_data.get_key = get_key_purpletv; 950 dev->init_data.get_key = get_key_purpletv;
952 dev->init_data.ir_codes = &IR_KEYTABLE(purpletv); 951 dev->init_data.ir_codes = RC_MAP_PURPLETV;
953 info.addr = 0x7a; 952 info.addr = 0x7a;
954 break; 953 break;
955 case SAA7134_BOARD_MSI_TVATANYWHERE_PLUS: 954 case SAA7134_BOARD_MSI_TVATANYWHERE_PLUS:
956 dev->init_data.name = "MSI TV@nywhere Plus"; 955 dev->init_data.name = "MSI TV@nywhere Plus";
957 dev->init_data.get_key = get_key_msi_tvanywhere_plus; 956 dev->init_data.get_key = get_key_msi_tvanywhere_plus;
958 dev->init_data.ir_codes = &IR_KEYTABLE(msi_tvanywhere_plus); 957 dev->init_data.ir_codes = RC_MAP_MSI_TVANYWHERE_PLUS;
959 info.addr = 0x30; 958 info.addr = 0x30;
960 /* MSI TV@nywhere Plus controller doesn't seem to 959 /* MSI TV@nywhere Plus controller doesn't seem to
961 respond to probes unless we read something from 960 respond to probes unless we read something from
@@ -969,7 +968,7 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
969 case SAA7134_BOARD_HAUPPAUGE_HVR1110: 968 case SAA7134_BOARD_HAUPPAUGE_HVR1110:
970 dev->init_data.name = "HVR 1110"; 969 dev->init_data.name = "HVR 1110";
971 dev->init_data.get_key = get_key_hvr1110; 970 dev->init_data.get_key = get_key_hvr1110;
972 dev->init_data.ir_codes = &IR_KEYTABLE(hauppauge_new); 971 dev->init_data.ir_codes = RC_MAP_HAUPPAUGE_NEW;
973 info.addr = 0x71; 972 info.addr = 0x71;
974 break; 973 break;
975 case SAA7134_BOARD_BEHOLD_607FM_MK3: 974 case SAA7134_BOARD_BEHOLD_607FM_MK3:
@@ -987,7 +986,7 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
987 case SAA7134_BOARD_BEHOLD_X7: 986 case SAA7134_BOARD_BEHOLD_X7:
988 dev->init_data.name = "BeholdTV"; 987 dev->init_data.name = "BeholdTV";
989 dev->init_data.get_key = get_key_beholdm6xx; 988 dev->init_data.get_key = get_key_beholdm6xx;
990 dev->init_data.ir_codes = &IR_KEYTABLE(behold); 989 dev->init_data.ir_codes = RC_MAP_BEHOLD;
991 dev->init_data.type = IR_TYPE_NEC; 990 dev->init_data.type = IR_TYPE_NEC;
992 info.addr = 0x2d; 991 info.addr = 0x2d;
993 break; 992 break;
@@ -998,7 +997,7 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
998 case SAA7134_BOARD_FLYDVB_TRIO: 997 case SAA7134_BOARD_FLYDVB_TRIO:
999 dev->init_data.name = "FlyDVB Trio"; 998 dev->init_data.name = "FlyDVB Trio";
1000 dev->init_data.get_key = get_key_flydvb_trio; 999 dev->init_data.get_key = get_key_flydvb_trio;
1001 dev->init_data.ir_codes = &IR_KEYTABLE(flydvb); 1000 dev->init_data.ir_codes = RC_MAP_FLYDVB;
1002 info.addr = 0x0b; 1001 info.addr = 0x0b;
1003 break; 1002 break;
1004 default: 1003 default: