aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-dvb.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2008-04-22 13:46:08 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:52 -0400
commit7bff4b4d3ad2b9ff42b4087f409076035af1d165 (patch)
treecfa75f91fbd30b8b36f70d7056639ee031d2a7ed /drivers/media/video/saa7134/saa7134-dvb.c
parent5823b3a63c7661272ea7fef7635955e2a50d17eb (diff)
V4L/DVB (7393): tda827x: fixed support of tuners with LNA
Tuner refactoring broke support of tuners with LNA configurations 1 and 2 for both, analog TV and DVB-T. Additionally, this patch initializes the saa713x gpios defined by the gpiomask at driver init to avoid undefined stated at dvb. Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-dvb.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c160
1 files changed, 66 insertions, 94 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c
index 8e55c7572b4b..f95f5f2fbf72 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -439,8 +439,6 @@ static struct tda1004x_config philips_europa_config = {
439 .request_firmware = philips_tda1004x_request_firmware 439 .request_firmware = philips_tda1004x_request_firmware
440}; 440};
441 441
442/* ------------------------------------------------------------------ */
443
444static struct tda1004x_config medion_cardbus = { 442static struct tda1004x_config medion_cardbus = {
445 .demod_address = 0x08, 443 .demod_address = 0x08,
446 .invert = 1, 444 .invert = 1,
@@ -456,47 +454,6 @@ static struct tda1004x_config medion_cardbus = {
456 * tda 1004x based cards with philips silicon tuner 454 * tda 1004x based cards with philips silicon tuner
457 */ 455 */
458 456
459static void philips_tda827x_lna_gain(struct dvb_frontend *fe, int high)
460{
461 struct saa7134_dev *dev = fe->dvb->priv;
462 struct tda1004x_state *state = fe->demodulator_priv;
463 u8 addr = state->config->i2c_gate;
464 u8 config = state->config->tuner_config;
465 u8 GP00_CF[] = {0x20, 0x01};
466 u8 GP00_LEV[] = {0x22, 0x00};
467
468 struct i2c_msg msg = {.addr = addr,.flags = 0,.buf = GP00_CF, .len = 2};
469 if (config) {
470 if (high) {
471 dprintk("setting LNA to high gain\n");
472 } else {
473 dprintk("setting LNA to low gain\n");
474 }
475 }
476 switch (config) {
477 case 0: /* no LNA */
478 break;
479 case 1: /* switch is GPIO 0 of tda8290 */
480 case 2:
481 /* turn Vsync off */
482 saa7134_set_gpio(dev, 22, 0);
483 GP00_LEV[1] = high ? 0 : 1;
484 if (i2c_transfer(&dev->i2c_adap, &msg, 1) != 1) {
485 wprintk("could not access tda8290 at addr: 0x%02x\n",
486 addr << 1);
487 return;
488 }
489 msg.buf = GP00_LEV;
490 if (config == 2)
491 GP00_LEV[1] = high ? 1 : 0;
492 i2c_transfer(&dev->i2c_adap, &msg, 1);
493 break;
494 case 3: /* switch with GPIO of saa713x */
495 saa7134_set_gpio(dev, 22, high);
496 break;
497 }
498}
499
500static int tda8290_i2c_gate_ctrl( struct dvb_frontend* fe, int enable) 457static int tda8290_i2c_gate_ctrl( struct dvb_frontend* fe, int enable)
501{ 458{
502 struct tda1004x_state *state = fe->demodulator_priv; 459 struct tda1004x_state *state = fe->demodulator_priv;
@@ -519,8 +476,6 @@ static int tda8290_i2c_gate_ctrl( struct dvb_frontend* fe, int enable)
519 return 0; 476 return 0;
520} 477}
521 478
522/* ------------------------------------------------------------------ */
523
524static int philips_tda827x_tuner_init(struct dvb_frontend *fe) 479static int philips_tda827x_tuner_init(struct dvb_frontend *fe)
525{ 480{
526 struct saa7134_dev *dev = fe->dvb->priv; 481 struct saa7134_dev *dev = fe->dvb->priv;
@@ -555,28 +510,57 @@ static int philips_tda827x_tuner_sleep(struct dvb_frontend *fe)
555 return 0; 510 return 0;
556} 511}
557 512
558static struct tda827x_config tda827x_cfg = { 513static void configure_tda827x_fe(struct saa7134_dev *dev, struct tda1004x_config *cdec_conf,
559 .lna_gain = philips_tda827x_lna_gain, 514 struct tda827x_config *tuner_conf)
560 .init = philips_tda827x_tuner_init,
561 .sleep = philips_tda827x_tuner_sleep
562};
563
564static void configure_tda827x_fe(struct saa7134_dev *dev, struct tda1004x_config *tda_conf)
565{ 515{
566 dev->dvb.frontend = dvb_attach(tda10046_attach, tda_conf, &dev->i2c_adap); 516 dev->dvb.frontend = dvb_attach(tda10046_attach, cdec_conf, &dev->i2c_adap);
567 if (dev->dvb.frontend) { 517 if (dev->dvb.frontend) {
568 if (tda_conf->i2c_gate) 518 if (cdec_conf->i2c_gate)
569 dev->dvb.frontend->ops.i2c_gate_ctrl = tda8290_i2c_gate_ctrl; 519 dev->dvb.frontend->ops.i2c_gate_ctrl = tda8290_i2c_gate_ctrl;
570 if (dvb_attach(tda827x_attach, dev->dvb.frontend, tda_conf->tuner_address, 520 if (dvb_attach(tda827x_attach, dev->dvb.frontend, cdec_conf->tuner_address,
571 &dev->i2c_adap,&tda827x_cfg) == NULL) { 521 &dev->i2c_adap, tuner_conf) == NULL) {
572 wprintk("no tda827x tuner found at addr: %02x\n", 522 wprintk("no tda827x tuner found at addr: %02x\n",
573 tda_conf->tuner_address); 523 cdec_conf->tuner_address);
574 } 524 }
575 } 525 }
576} 526}
577 527
578/* ------------------------------------------------------------------ */ 528/* ------------------------------------------------------------------ */
579 529
530static struct tda827x_config tda827x_cfg_0 = {
531 .tuner_callback = saa7134_tuner_callback,
532 .init = philips_tda827x_tuner_init,
533 .sleep = philips_tda827x_tuner_sleep,
534 .config = 0,
535 .switch_addr = 0
536};
537
538static struct tda827x_config tda827x_cfg_1 = {
539 .tuner_callback = saa7134_tuner_callback,
540 .init = philips_tda827x_tuner_init,
541 .sleep = philips_tda827x_tuner_sleep,
542 .config = 1,
543 .switch_addr = 0x4b
544};
545
546static struct tda827x_config tda827x_cfg_2 = {
547 .tuner_callback = saa7134_tuner_callback,
548 .init = philips_tda827x_tuner_init,
549 .sleep = philips_tda827x_tuner_sleep,
550 .config = 2,
551 .switch_addr = 0x4b
552};
553
554static struct tda827x_config tda827x_cfg_2_sw42 = {
555 .tuner_callback = saa7134_tuner_callback,
556 .init = philips_tda827x_tuner_init,
557 .sleep = philips_tda827x_tuner_sleep,
558 .config = 2,
559 .switch_addr = 0x42
560};
561
562/* ------------------------------------------------------------------ */
563
580static struct tda1004x_config tda827x_lifeview_config = { 564static struct tda1004x_config tda827x_lifeview_config = {
581 .demod_address = 0x08, 565 .demod_address = 0x08,
582 .invert = 1, 566 .invert = 1,
@@ -599,7 +583,6 @@ static struct tda1004x_config philips_tiger_config = {
599 .if_freq = TDA10046_FREQ_045, 583 .if_freq = TDA10046_FREQ_045,
600 .i2c_gate = 0x4b, 584 .i2c_gate = 0x4b,
601 .tuner_address = 0x61, 585 .tuner_address = 0x61,
602 .tuner_config = 0,
603 .antenna_switch= 1, 586 .antenna_switch= 1,
604 .request_firmware = philips_tda1004x_request_firmware 587 .request_firmware = philips_tda1004x_request_firmware
605}; 588};
@@ -614,7 +597,6 @@ static struct tda1004x_config cinergy_ht_config = {
614 .if_freq = TDA10046_FREQ_045, 597 .if_freq = TDA10046_FREQ_045,
615 .i2c_gate = 0x4b, 598 .i2c_gate = 0x4b,
616 .tuner_address = 0x61, 599 .tuner_address = 0x61,
617 .tuner_config = 0,
618 .request_firmware = philips_tda1004x_request_firmware 600 .request_firmware = philips_tda1004x_request_firmware
619}; 601};
620 602
@@ -628,7 +610,6 @@ static struct tda1004x_config cinergy_ht_pci_config = {
628 .if_freq = TDA10046_FREQ_045, 610 .if_freq = TDA10046_FREQ_045,
629 .i2c_gate = 0x4b, 611 .i2c_gate = 0x4b,
630 .tuner_address = 0x60, 612 .tuner_address = 0x60,
631 .tuner_config = 0,
632 .request_firmware = philips_tda1004x_request_firmware 613 .request_firmware = philips_tda1004x_request_firmware
633}; 614};
634 615
@@ -642,7 +623,6 @@ static struct tda1004x_config philips_tiger_s_config = {
642 .if_freq = TDA10046_FREQ_045, 623 .if_freq = TDA10046_FREQ_045,
643 .i2c_gate = 0x4b, 624 .i2c_gate = 0x4b,
644 .tuner_address = 0x61, 625 .tuner_address = 0x61,
645 .tuner_config = 2,
646 .antenna_switch= 1, 626 .antenna_switch= 1,
647 .request_firmware = philips_tda1004x_request_firmware 627 .request_firmware = philips_tda1004x_request_firmware
648}; 628};
@@ -657,7 +637,6 @@ static struct tda1004x_config pinnacle_pctv_310i_config = {
657 .if_freq = TDA10046_FREQ_045, 637 .if_freq = TDA10046_FREQ_045,
658 .i2c_gate = 0x4b, 638 .i2c_gate = 0x4b,
659 .tuner_address = 0x61, 639 .tuner_address = 0x61,
660 .tuner_config = 1,
661 .request_firmware = philips_tda1004x_request_firmware 640 .request_firmware = philips_tda1004x_request_firmware
662}; 641};
663 642
@@ -671,7 +650,6 @@ static struct tda1004x_config hauppauge_hvr_1110_config = {
671 .if_freq = TDA10046_FREQ_045, 650 .if_freq = TDA10046_FREQ_045,
672 .i2c_gate = 0x4b, 651 .i2c_gate = 0x4b,
673 .tuner_address = 0x61, 652 .tuner_address = 0x61,
674 .tuner_config = 1,
675 .request_firmware = philips_tda1004x_request_firmware 653 .request_firmware = philips_tda1004x_request_firmware
676}; 654};
677 655
@@ -685,7 +663,6 @@ static struct tda1004x_config asus_p7131_dual_config = {
685 .if_freq = TDA10046_FREQ_045, 663 .if_freq = TDA10046_FREQ_045,
686 .i2c_gate = 0x4b, 664 .i2c_gate = 0x4b,
687 .tuner_address = 0x61, 665 .tuner_address = 0x61,
688 .tuner_config = 0,
689 .antenna_switch= 2, 666 .antenna_switch= 2,
690 .request_firmware = philips_tda1004x_request_firmware 667 .request_firmware = philips_tda1004x_request_firmware
691}; 668};
@@ -724,7 +701,6 @@ static struct tda1004x_config md8800_dvbt_config = {
724 .if_freq = TDA10046_FREQ_045, 701 .if_freq = TDA10046_FREQ_045,
725 .i2c_gate = 0x4b, 702 .i2c_gate = 0x4b,
726 .tuner_address = 0x60, 703 .tuner_address = 0x60,
727 .tuner_config = 0,
728 .request_firmware = philips_tda1004x_request_firmware 704 .request_firmware = philips_tda1004x_request_firmware
729}; 705};
730 706
@@ -738,7 +714,6 @@ static struct tda1004x_config asus_p7131_4871_config = {
738 .if_freq = TDA10046_FREQ_045, 714 .if_freq = TDA10046_FREQ_045,
739 .i2c_gate = 0x4b, 715 .i2c_gate = 0x4b,
740 .tuner_address = 0x61, 716 .tuner_address = 0x61,
741 .tuner_config = 2,
742 .antenna_switch= 2, 717 .antenna_switch= 2,
743 .request_firmware = philips_tda1004x_request_firmware 718 .request_firmware = philips_tda1004x_request_firmware
744}; 719};
@@ -753,7 +728,6 @@ static struct tda1004x_config asus_p7131_hybrid_lna_config = {
753 .if_freq = TDA10046_FREQ_045, 728 .if_freq = TDA10046_FREQ_045,
754 .i2c_gate = 0x4b, 729 .i2c_gate = 0x4b,
755 .tuner_address = 0x61, 730 .tuner_address = 0x61,
756 .tuner_config = 2,
757 .antenna_switch= 2, 731 .antenna_switch= 2,
758 .request_firmware = philips_tda1004x_request_firmware 732 .request_firmware = philips_tda1004x_request_firmware
759}; 733};
@@ -768,7 +742,6 @@ static struct tda1004x_config kworld_dvb_t_210_config = {
768 .if_freq = TDA10046_FREQ_045, 742 .if_freq = TDA10046_FREQ_045,
769 .i2c_gate = 0x4b, 743 .i2c_gate = 0x4b,
770 .tuner_address = 0x61, 744 .tuner_address = 0x61,
771 .tuner_config = 2,
772 .antenna_switch= 1, 745 .antenna_switch= 1,
773 .request_firmware = philips_tda1004x_request_firmware 746 .request_firmware = philips_tda1004x_request_firmware
774}; 747};
@@ -783,7 +756,6 @@ static struct tda1004x_config avermedia_super_007_config = {
783 .if_freq = TDA10046_FREQ_045, 756 .if_freq = TDA10046_FREQ_045,
784 .i2c_gate = 0x4b, 757 .i2c_gate = 0x4b,
785 .tuner_address = 0x60, 758 .tuner_address = 0x60,
786 .tuner_config = 0,
787 .antenna_switch= 1, 759 .antenna_switch= 1,
788 .request_firmware = philips_tda1004x_request_firmware 760 .request_firmware = philips_tda1004x_request_firmware
789}; 761};
@@ -798,7 +770,6 @@ static struct tda1004x_config twinhan_dtv_dvb_3056_config = {
798 .if_freq = TDA10046_FREQ_045, 770 .if_freq = TDA10046_FREQ_045,
799 .i2c_gate = 0x42, 771 .i2c_gate = 0x42,
800 .tuner_address = 0x61, 772 .tuner_address = 0x61,
801 .tuner_config = 2,
802 .antenna_switch = 1, 773 .antenna_switch = 1,
803 .request_firmware = philips_tda1004x_request_firmware 774 .request_firmware = philips_tda1004x_request_firmware
804}; 775};
@@ -826,9 +797,10 @@ static int ads_duo_tuner_sleep(struct dvb_frontend *fe)
826} 797}
827 798
828static struct tda827x_config ads_duo_cfg = { 799static struct tda827x_config ads_duo_cfg = {
829 .lna_gain = philips_tda827x_lna_gain, 800 .tuner_callback = saa7134_tuner_callback,
830 .init = ads_duo_tuner_init, 801 .init = ads_duo_tuner_init,
831 .sleep = ads_duo_tuner_sleep 802 .sleep = ads_duo_tuner_sleep,
803 .config = 0
832}; 804};
833 805
834static struct tda1004x_config ads_tech_duo_config = { 806static struct tda1004x_config ads_tech_duo_config = {
@@ -981,7 +953,7 @@ static int dvb_init(struct saa7134_dev *dev)
981 break; 953 break;
982 case SAA7134_BOARD_FLYDVBTDUO: 954 case SAA7134_BOARD_FLYDVBTDUO:
983 case SAA7134_BOARD_FLYDVBT_DUO_CARDBUS: 955 case SAA7134_BOARD_FLYDVBT_DUO_CARDBUS:
984 configure_tda827x_fe(dev, &tda827x_lifeview_config); 956 configure_tda827x_fe(dev, &tda827x_lifeview_config, &tda827x_cfg_0);
985 break; 957 break;
986 case SAA7134_BOARD_PHILIPS_EUROPA: 958 case SAA7134_BOARD_PHILIPS_EUROPA:
987 case SAA7134_BOARD_VIDEOMATE_DVBT_300: 959 case SAA7134_BOARD_VIDEOMATE_DVBT_300:
@@ -1006,27 +978,27 @@ static int dvb_init(struct saa7134_dev *dev)
1006 } 978 }
1007 break; 979 break;
1008 case SAA7134_BOARD_KWORLD_DVBT_210: 980 case SAA7134_BOARD_KWORLD_DVBT_210:
1009 configure_tda827x_fe(dev, &kworld_dvb_t_210_config); 981 configure_tda827x_fe(dev, &kworld_dvb_t_210_config, &tda827x_cfg_2);
1010 break; 982 break;
1011 case SAA7134_BOARD_PHILIPS_TIGER: 983 case SAA7134_BOARD_PHILIPS_TIGER:
1012 configure_tda827x_fe(dev, &philips_tiger_config); 984 configure_tda827x_fe(dev, &philips_tiger_config, &tda827x_cfg_0);
1013 break; 985 break;
1014 case SAA7134_BOARD_PINNACLE_PCTV_310i: 986 case SAA7134_BOARD_PINNACLE_PCTV_310i:
1015 configure_tda827x_fe(dev, &pinnacle_pctv_310i_config); 987 configure_tda827x_fe(dev, &pinnacle_pctv_310i_config, &tda827x_cfg_1);
1016 break; 988 break;
1017 case SAA7134_BOARD_HAUPPAUGE_HVR1110: 989 case SAA7134_BOARD_HAUPPAUGE_HVR1110:
1018 configure_tda827x_fe(dev, &hauppauge_hvr_1110_config); 990 configure_tda827x_fe(dev, &hauppauge_hvr_1110_config, &tda827x_cfg_1);
1019 break; 991 break;
1020 case SAA7134_BOARD_ASUSTeK_P7131_DUAL: 992 case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
1021 configure_tda827x_fe(dev, &asus_p7131_dual_config); 993 configure_tda827x_fe(dev, &asus_p7131_dual_config, &tda827x_cfg_0);
1022 break; 994 break;
1023 case SAA7134_BOARD_FLYDVBT_LR301: 995 case SAA7134_BOARD_FLYDVBT_LR301:
1024 configure_tda827x_fe(dev, &tda827x_lifeview_config); 996 configure_tda827x_fe(dev, &tda827x_lifeview_config, &tda827x_cfg_0);
1025 break; 997 break;
1026 case SAA7134_BOARD_FLYDVB_TRIO: 998 case SAA7134_BOARD_FLYDVB_TRIO:
1027 if(! use_frontend) { /* terrestrial */ 999 if(! use_frontend) { /* terrestrial */
1028 configure_tda827x_fe(dev, &lifeview_trio_config); 1000 configure_tda827x_fe(dev, &lifeview_trio_config, &tda827x_cfg_0);
1029 } else { /* satellite */ 1001 } else { /* satellite */
1030 dev->dvb.frontend = dvb_attach(tda10086_attach, &flydvbs, &dev->i2c_adap); 1002 dev->dvb.frontend = dvb_attach(tda10086_attach, &flydvbs, &dev->i2c_adap);
1031 if (dev->dvb.frontend) { 1003 if (dev->dvb.frontend) {
1032 if (dvb_attach(tda826x_attach, dev->dvb.frontend, 0x63, 1004 if (dvb_attach(tda826x_attach, dev->dvb.frontend, 0x63,
@@ -1047,19 +1019,19 @@ static int dvb_init(struct saa7134_dev *dev)
1047 &dev->i2c_adap); 1019 &dev->i2c_adap);
1048 if (dev->dvb.frontend) { 1020 if (dev->dvb.frontend) {
1049 if (dvb_attach(tda827x_attach,dev->dvb.frontend, 1021 if (dvb_attach(tda827x_attach,dev->dvb.frontend,
1050 ads_tech_duo_config.tuner_address, 1022 ads_tech_duo_config.tuner_address, &dev->i2c_adap,
1051 &dev->i2c_adap,&ads_duo_cfg) == NULL) { 1023 &ads_duo_cfg) == NULL) {
1052 wprintk("no tda827x tuner found at addr: %02x\n", 1024 wprintk("no tda827x tuner found at addr: %02x\n",
1053 ads_tech_duo_config.tuner_address); 1025 ads_tech_duo_config.tuner_address);
1054 } 1026 }
1055 } 1027 }
1056 break; 1028 break;
1057 case SAA7134_BOARD_TEVION_DVBT_220RF: 1029 case SAA7134_BOARD_TEVION_DVBT_220RF:
1058 configure_tda827x_fe(dev, &tevion_dvbt220rf_config); 1030 configure_tda827x_fe(dev, &tevion_dvbt220rf_config, &tda827x_cfg_0);
1059 break; 1031 break;
1060 case SAA7134_BOARD_MEDION_MD8800_QUADRO: 1032 case SAA7134_BOARD_MEDION_MD8800_QUADRO:
1061 if (!use_frontend) { /* terrestrial */ 1033 if (!use_frontend) { /* terrestrial */
1062 configure_tda827x_fe(dev, &md8800_dvbt_config); 1034 configure_tda827x_fe(dev, &md8800_dvbt_config, &tda827x_cfg_0);
1063 } else { /* satellite */ 1035 } else { /* satellite */
1064 dev->dvb.frontend = dvb_attach(tda10086_attach, 1036 dev->dvb.frontend = dvb_attach(tda10086_attach,
1065 &flydvbs, &dev->i2c_adap); 1037 &flydvbs, &dev->i2c_adap);
@@ -1148,25 +1120,25 @@ static int dvb_init(struct saa7134_dev *dev)
1148 } 1120 }
1149 break; 1121 break;
1150 case SAA7134_BOARD_CINERGY_HT_PCMCIA: 1122 case SAA7134_BOARD_CINERGY_HT_PCMCIA:
1151 configure_tda827x_fe(dev, &cinergy_ht_config); 1123 configure_tda827x_fe(dev, &cinergy_ht_config, &tda827x_cfg_0);
1152 break; 1124 break;
1153 case SAA7134_BOARD_CINERGY_HT_PCI: 1125 case SAA7134_BOARD_CINERGY_HT_PCI:
1154 configure_tda827x_fe(dev, &cinergy_ht_pci_config); 1126 configure_tda827x_fe(dev, &cinergy_ht_pci_config, &tda827x_cfg_0);
1155 break; 1127 break;
1156 case SAA7134_BOARD_PHILIPS_TIGER_S: 1128 case SAA7134_BOARD_PHILIPS_TIGER_S:
1157 configure_tda827x_fe(dev, &philips_tiger_s_config); 1129 configure_tda827x_fe(dev, &philips_tiger_s_config, &tda827x_cfg_2);
1158 break; 1130 break;
1159 case SAA7134_BOARD_ASUS_P7131_4871: 1131 case SAA7134_BOARD_ASUS_P7131_4871:
1160 configure_tda827x_fe(dev, &asus_p7131_4871_config); 1132 configure_tda827x_fe(dev, &asus_p7131_4871_config, &tda827x_cfg_2);
1161 break; 1133 break;
1162 case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA: 1134 case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
1163 configure_tda827x_fe(dev, &asus_p7131_hybrid_lna_config); 1135 configure_tda827x_fe(dev, &asus_p7131_hybrid_lna_config, &tda827x_cfg_2);
1164 break; 1136 break;
1165 case SAA7134_BOARD_AVERMEDIA_SUPER_007: 1137 case SAA7134_BOARD_AVERMEDIA_SUPER_007:
1166 configure_tda827x_fe(dev, &avermedia_super_007_config); 1138 configure_tda827x_fe(dev, &avermedia_super_007_config, &tda827x_cfg_0);
1167 break; 1139 break;
1168 case SAA7134_BOARD_TWINHAN_DTV_DVB_3056: 1140 case SAA7134_BOARD_TWINHAN_DTV_DVB_3056:
1169 configure_tda827x_fe(dev, &twinhan_dtv_dvb_3056_config); 1141 configure_tda827x_fe(dev, &twinhan_dtv_dvb_3056_config, &tda827x_cfg_2_sw42);
1170 break; 1142 break;
1171 case SAA7134_BOARD_PHILIPS_SNAKE: 1143 case SAA7134_BOARD_PHILIPS_SNAKE:
1172 dev->dvb.frontend = dvb_attach(tda10086_attach, &flydvbs, 1144 dev->dvb.frontend = dvb_attach(tda10086_attach, &flydvbs,
@@ -1181,10 +1153,10 @@ static int dvb_init(struct saa7134_dev *dev)
1181 } 1153 }
1182 break; 1154 break;
1183 case SAA7134_BOARD_CREATIX_CTX953: 1155 case SAA7134_BOARD_CREATIX_CTX953:
1184 configure_tda827x_fe(dev, &md8800_dvbt_config); 1156 configure_tda827x_fe(dev, &md8800_dvbt_config, &tda827x_cfg_0);
1185 break; 1157 break;
1186 case SAA7134_BOARD_MSI_TVANYWHERE_AD11: 1158 case SAA7134_BOARD_MSI_TVANYWHERE_AD11:
1187 configure_tda827x_fe(dev, &philips_tiger_s_config); 1159 configure_tda827x_fe(dev, &philips_tiger_s_config, &tda827x_cfg_2);
1188 break; 1160 break;
1189 case SAA7134_BOARD_AVERMEDIA_CARDBUS_506: 1161 case SAA7134_BOARD_AVERMEDIA_CARDBUS_506:
1190 dev->dvb.frontend = dvb_attach(mt352_attach, 1162 dev->dvb.frontend = dvb_attach(mt352_attach,