Lines Matching +full:0 +full:x4b
64 MODULE_PARM_DESC(use_frontend,"for cards with multiple frontends (0: terrestrial, 1: satellite)");
79 return 0; in pinnacle_antenna_pwr()
101 static u8 clock_config [] = { CLOCK_CTL, 0x3d, 0x28 }; in mt352_pinnacle_init()
102 static u8 reset [] = { RESET, 0x80 }; in mt352_pinnacle_init()
103 static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; in mt352_pinnacle_init()
104 static u8 agc_cfg [] = { AGC_TARGET, 0x28, 0xa0 }; in mt352_pinnacle_init()
105 static u8 capt_range_cfg[] = { CAPT_RANGE, 0x31 }; in mt352_pinnacle_init()
106 static u8 fsm_ctl_cfg[] = { 0x7b, 0x04 }; in mt352_pinnacle_init()
107 static u8 gpp_ctl_cfg [] = { GPP_CTL, 0x0f }; in mt352_pinnacle_init()
108 static u8 scan_ctl_cfg [] = { SCAN_CTL, 0x0d }; in mt352_pinnacle_init()
109 static u8 irq_cfg [] = { INTERRUPT_EN_0, 0x00, 0x00, 0x00, 0x00 }; in mt352_pinnacle_init()
125 return 0; in mt352_pinnacle_init()
130 static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x2d }; in mt352_aver777_init()
131 static u8 reset [] = { RESET, 0x80 }; in mt352_aver777_init()
132 static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; in mt352_aver777_init()
133 static u8 agc_cfg [] = { AGC_TARGET, 0x28, 0xa0 }; in mt352_aver777_init()
134 static u8 capt_range_cfg[] = { CAPT_RANGE, 0x33 }; in mt352_aver777_init()
143 return 0; in mt352_aver777_init()
148 static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x2d }; in mt352_avermedia_xc3028_init()
149 static u8 reset [] = { RESET, 0x80 }; in mt352_avermedia_xc3028_init()
150 static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; in mt352_avermedia_xc3028_init()
151 static u8 agc_cfg [] = { AGC_TARGET, 0xe }; in mt352_avermedia_xc3028_init()
152 static u8 capt_range_cfg[] = { CAPT_RANGE, 0x33 }; in mt352_avermedia_xc3028_init()
160 return 0; in mt352_avermedia_xc3028_init()
166 u8 off[] = { 0x00, 0xf1}; in mt352_pinnacle_tuner_set_params()
167 u8 on[] = { 0x00, 0x71}; in mt352_pinnacle_tuner_set_params()
168 struct i2c_msg msg = {.addr=0x43, .flags=0, .buf=off, .len = sizeof(off)}; in mt352_pinnacle_tuner_set_params()
174 f.tuner = 0; in mt352_pinnacle_tuner_set_params()
193 .demod_address = 0x3c >> 1,
201 .demod_address = 0xf,
206 .demod_address = (0x1e >> 1),
213 .if_lvl = 7, .rfagc_top = 0x37, },
224 .demod_address = 0x10,
231 unsigned char initmsg[] = {0x45, 0x97}; in kworld_sbtvd_gate_ctrl()
232 unsigned char msg_enable[] = {0x45, 0xc1}; in kworld_sbtvd_gate_ctrl()
233 unsigned char msg_disable[] = {0x45, 0x81}; in kworld_sbtvd_gate_ctrl()
234 struct i2c_msg msg = {.addr = 0x4b, .flags = 0, .buf = initmsg, .len = 2}; in kworld_sbtvd_gate_ctrl()
249 return 0; in kworld_sbtvd_gate_ctrl()
274 struct i2c_msg tuner_msg = {.addr = addr,.flags = 0,.buf = tuner_buf,.len = in philips_tda6651_pll_set()
276 int tuner_frequency = 0; in philips_tda6651_pll_set()
319 filter = 0; in philips_tda6651_pll_set()
323 filter = 0; in philips_tda6651_pll_set()
340 tuner_buf[0] = (tuner_frequency >> 8) & 0x7f; in philips_tda6651_pll_set()
341 tuner_buf[1] = tuner_frequency & 0xff; in philips_tda6651_pll_set()
342 tuner_buf[2] = 0xca; in philips_tda6651_pll_set()
348 pr_warn("could not write to tuner at addr: 0x%02x\n", in philips_tda6651_pll_set()
353 return 0; in philips_tda6651_pll_set()
361 static u8 tu1216_init[] = { 0x0b, 0xf5, 0x85, 0xab }; in philips_tu1216_init()
362 …struct i2c_msg tuner_msg = {.addr = addr,.flags = 0,.buf = tu1216_init,.len = sizeof(tu1216_init) … in philips_tu1216_init()
371 return 0; in philips_tu1216_init()
377 .demod_address = 0x8,
379 .invert_oclk = 0,
383 .tuner_address = 0x60,
389 .demod_address = 0x8,
391 .invert_oclk = 0,
395 .tuner_address = 0x61,
406 static u8 msg[] = { 0x0b, 0xf5, 0x86, 0xab }; in philips_td1316_tuner_init()
407 struct i2c_msg init_msg = {.addr = addr,.flags = 0,.buf = msg,.len = sizeof(msg) }; in philips_td1316_tuner_init()
414 return 0; in philips_td1316_tuner_init()
427 static u8 msg[] = { 0x0b, 0xdc, 0x86, 0xa4 }; in philips_td1316_tuner_sleep()
428 struct i2c_msg analog_msg = {.addr = addr,.flags = 0,.buf = msg,.len = sizeof(msg) }; in philips_td1316_tuner_sleep()
435 return 0; in philips_td1316_tuner_sleep()
443 static u8 msg[] = { 0x00, 0x40}; in philips_europa_tuner_init()
444 struct i2c_msg init_msg = {.addr = 0x43,.flags = 0,.buf = msg,.len = sizeof(msg) }; in philips_europa_tuner_init()
453 return 0; in philips_europa_tuner_init()
460 static u8 msg[] = { 0x00, 0x14 }; in philips_europa_tuner_sleep()
461 struct i2c_msg analog_msg = {.addr = 0x43,.flags = 0,.buf = msg,.len = sizeof(msg) }; in philips_europa_tuner_sleep()
470 return 0; in philips_europa_tuner_sleep()
480 return 0; in philips_europa_demod_sleep()
485 .demod_address = 0x8,
486 .invert = 0,
487 .invert_oclk = 0,
491 .tuner_address = 0x61,
496 .demod_address = 0x08,
498 .invert_oclk = 0,
502 .tuner_address = 0x61,
507 .demod_address = 0x8,
509 .invert_oclk = 0,
513 .tuner_address = 0x63,
526 static u8 tda8290_close[] = { 0x21, 0xc0}; in tda8290_i2c_gate_ctrl()
527 static u8 tda8290_open[] = { 0x21, 0x80}; in tda8290_i2c_gate_ctrl()
528 struct i2c_msg tda8290_msg = {.addr = addr,.flags = 0, .len = 2}; in tda8290_i2c_gate_ctrl()
539 return 0; in tda8290_i2c_gate_ctrl()
548 case 0: in philips_tda827x_tuner_init()
551 pr_debug("setting GPIO21 to 0 (TV antenna?)\n"); in philips_tda827x_tuner_init()
552 saa7134_set_gpio(dev, 21, 0); in philips_tda827x_tuner_init()
559 return 0; in philips_tda827x_tuner_init()
568 case 0: in philips_tda827x_tuner_sleep()
575 pr_debug("setting GPIO21 to 0 (TV antenna?)\n"); in philips_tda827x_tuner_sleep()
576 saa7134_set_gpio(dev, 21, 0); in philips_tda827x_tuner_sleep()
579 return 0; in philips_tda827x_tuner_sleep()
601 return 0; in configure_tda827x_fe()
614 .config = 0,
615 .switch_addr = 0
622 .switch_addr = 0x4b
629 .switch_addr = 0x4b
636 .switch_addr = 0x42
642 .demod_address = 0x08,
644 .invert_oclk = 0,
649 .tuner_address = 0x60,
654 .demod_address = 0x08,
656 .invert_oclk = 0,
661 .i2c_gate = 0x4b,
662 .tuner_address = 0x61,
668 .demod_address = 0x08,
670 .invert_oclk = 0,
675 .i2c_gate = 0x4b,
676 .tuner_address = 0x61,
681 .demod_address = 0x08,
683 .invert_oclk = 0,
688 .i2c_gate = 0x4b,
689 .tuner_address = 0x60,
694 .demod_address = 0x08,
696 .invert_oclk = 0,
701 .i2c_gate = 0x4b,
702 .tuner_address = 0x61,
708 .demod_address = 0x08,
710 .invert_oclk = 0,
715 .i2c_gate = 0x4b,
716 .tuner_address = 0x61,
721 .demod_address = 0x08,
723 .invert_oclk = 0,
728 .i2c_gate = 0x4b,
729 .tuner_address = 0x61,
734 .demod_address = 0x08,
736 .invert_oclk = 0,
741 .i2c_gate = 0x4b,
742 .tuner_address = 0x61,
748 .demod_address = 0x09,
750 .invert_oclk = 0,
755 .tuner_address = 0x60,
760 .demod_address = 0x08,
762 .invert_oclk = 0,
767 .tuner_address = 0x60,
772 .demod_address = 0x08,
774 .invert_oclk = 0,
779 .i2c_gate = 0x4b,
780 .tuner_address = 0x60,
785 .demod_address = 0x08,
787 .invert_oclk = 0,
792 .i2c_gate = 0x4b,
793 .tuner_address = 0x61,
799 .demod_address = 0x08,
801 .invert_oclk = 0,
806 .i2c_gate = 0x4b,
807 .tuner_address = 0x61,
813 .demod_address = 0x08,
815 .invert_oclk = 0,
820 .i2c_gate = 0x4b,
821 .tuner_address = 0x61,
827 .demod_address = 0x08,
829 .invert_oclk = 0,
834 .i2c_gate = 0x4b,
835 .tuner_address = 0x60,
841 .demod_address = 0x08,
843 .invert_oclk = 0,
848 .i2c_gate = 0x42,
849 .tuner_address = 0x61,
855 .demod_address = 0x0b,
857 .invert_oclk = 0,
862 .i2c_gate = 0x4b,
863 .tuner_address = 0x61,
869 .demod_address = 0x0b,
871 .invert_oclk = 0,
876 .i2c_gate = 0x4b,
877 .tuner_address = 0x61,
892 return 0; in ads_duo_tuner_init()
899 saa7134_set_gpio(dev, 22, 0); in ads_duo_tuner_sleep()
901 return 0; in ads_duo_tuner_sleep()
907 .config = 0
911 .demod_address = 0x08,
913 .invert_oclk = 0,
918 .tuner_address = 0x61,
923 .demod_address = 0x1e>>1,
930 .i2c_address = 0xc2>>1,
936 .demod_address = 0x1e>>1,
944 .demod_address = 0x0f,
951 .i2c_address = 0x62
960 .demod_address = 0x0e,
961 .invert = 0,
962 .diseqc_tone = 0,
967 .demod_address = 0x0e,
968 .invert = 0,
969 .diseqc_tone = 0,
986 fe->ops.i2c_gate_ctrl(fe, 0); in md8800_set_voltage()
999 fe->ops.i2c_gate_ctrl(fe, 0); in md8800_set_high_voltage()
1008 u8 wbuf[2] = { 0x1f, 00 }; in md8800_set_voltage2()
1010 struct i2c_msg msg[] = { { .addr = 0x08, .flags = 0, .buf = wbuf, .len = 1 }, in md8800_set_voltage2()
1011 { .addr = 0x08, .flags = I2C_M_RD, .buf = &rbuf, .len = 1 } }; in md8800_set_voltage2()
1017 wbuf[1] = rbuf | 0x10; in md8800_set_voltage2()
1019 wbuf[1] = rbuf & 0xef; in md8800_set_voltage2()
1020 msg[0].len = 2; in md8800_set_voltage2()
1022 return 0; in md8800_set_voltage2()
1037 .demod_address = 0x0a,
1041 .demod_address = 0x0a,
1047 .demod_address = 0x0e,
1052 .tuner_address = 0x60,
1056 .demod_address = 0x0e,
1060 .demod_address = 0x0e,
1064 .i2c_addr = 0x0e,
1075 .demod_address = 0x10 >> 1,
1088 .if_lvl = 1, .rfagc_top = 0x58, },
1090 .if_lvl = 1, .rfagc_top = 0x58, },
1105 .demod_address = 0x10 >> 1,
1121 .demod_address = 0x10 >> 1,
1134 .if_lvl = 1, .rfagc_top = 0x37, },
1136 .if_lvl = 1, .rfagc_top = 0x37, },
1138 .if_lvl = 1, .rfagc_top = 0x37, },
1148 .demod_address = 0x1d,
1149 .serial_ts = 0,
1151 .ts_clk_gated = 0,
1154 .if_neg_center = 0,
1155 .ext_adc = 0,
1168 .if_lvl = 6, .rfagc_top = 0x37 },
1169 .qam_6 = { .if_freq = 4000, .agc_mode = 3, .std = 0,
1170 .if_lvl = 6, .rfagc_top = 0x37 },
1200 int attach_xc3028 = 0; in dvb_init()
1251 &dev->i2c_adap, 0x61, in dvb_init()
1298 &tda827x_cfg_0) < 0) in dvb_init()
1338 &tda827x_cfg_2) < 0) in dvb_init()
1347 &dev->i2c_adap, 0x4b, in dvb_init()
1350 0x60, &dev->i2c_adap, in dvb_init()
1356 &tda827x_cfg_0) < 0) in dvb_init()
1361 &tda827x_cfg_1) < 0) in dvb_init()
1366 &tda827x_cfg_1) < 0) in dvb_init()
1375 &dev->i2c_adap, 0x4b, in dvb_init()
1378 0x60, &dev->i2c_adap, in dvb_init()
1384 &tda827x_cfg_0) < 0) in dvb_init()
1389 &tda827x_cfg_0) < 0) in dvb_init()
1395 &tda827x_cfg_0) < 0) in dvb_init()
1400 if (dvb_attach(tda826x_attach, fe0->dvb.frontend, 0x63, in dvb_init()
1401 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1408 0x08, 0, 0, false) == NULL) { in dvb_init()
1434 &tda827x_cfg_0) < 0) in dvb_init()
1440 &tda827x_cfg_0) < 0) in dvb_init()
1448 u8 data = 0xc4; in dvb_init()
1449 struct i2c_msg msg = {.addr = 0x08, .flags = 0, .len = 1}; in dvb_init()
1452 0x60, &dev->i2c_adap, 0) == NULL) { in dvb_init()
1457 if (dev_id != 0x08) { in dvb_init()
1461 &dev->i2c_adap, 0x08, 0, 0) == NULL) { in dvb_init()
1466 if (dev_id == 0x07) { in dvb_init()
1472 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_init()
1488 dvb_attach(dvb_pll_attach, fe0->dvb.frontend, 0x61, in dvb_init()
1497 &dev->i2c_adap, 0x61, in dvb_init()
1502 saa7134_tuner_callback(dev, 0, in dvb_init()
1509 &dev->i2c_adap, 0x4b, in dvb_init()
1512 0x60, &dev->i2c_adap, in dvb_init()
1520 if (dvb_attach(tda826x_attach, fe0->dvb.frontend, 0x60, in dvb_init()
1521 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1527 0x08, 0, 0, false) == NULL) { in dvb_init()
1557 &tda827x_cfg_0) < 0) in dvb_init()
1562 &tda827x_cfg_0) < 0) in dvb_init()
1567 &tda827x_cfg_2) < 0) in dvb_init()
1572 &tda827x_cfg_2) < 0) in dvb_init()
1577 &tda827x_cfg_2) < 0) in dvb_init()
1582 &tda827x_cfg_0) < 0) in dvb_init()
1587 &tda827x_cfg_2_sw42) < 0) in dvb_init()
1594 if (dvb_attach(tda826x_attach, fe0->dvb.frontend, 0x60, in dvb_init()
1595 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1600 &dev->i2c_adap, 0, 0) == NULL) { in dvb_init()
1608 &tda827x_cfg_0) < 0) in dvb_init()
1613 &tda827x_cfg_2) < 0) in dvb_init()
1618 saa7134_set_gpio(dev, 25, 0); in dvb_init()
1631 if (dvb_attach(dvb_pll_attach, fe0->dvb.frontend, 0x60, in dvb_init()
1641 &dev->i2c_adap, 0x08, 0, 0) == NULL) { in dvb_init()
1646 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_init()
1654 saa7134_set_gpio(dev, 25, 0); in dvb_init()
1665 &tda827x_cfg_2) < 0) in dvb_init()
1672 fe0->dvb.frontend, 0x60, in dvb_init()
1673 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1679 &dev->i2c_adap, 0, 0) == NULL) { in dvb_init()
1690 &tda827x_cfg_2) < 0) in dvb_init()
1697 fe0->dvb.frontend, 0x60, in dvb_init()
1698 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1704 &dev->i2c_adap, 0, 0) == NULL) { in dvb_init()
1714 &tda827x_cfg_0) < 0) in dvb_init()
1723 &dev->i2c_adap, 0x61, in dvb_init()
1763 0x60, &dev->i2c_adap) == NULL) in dvb_init()
1786 &dev->i2c_adap, 0x4b, in dvb_init()
1789 0x60, &dev->i2c_adap, in dvb_init()
1799 &dev->i2c_adap, 0x4b, in dvb_init()
1802 0x60, &dev->i2c_adap, in dvb_init()
1808 saa7134_tuner_callback(dev, 0, in dvb_init()
1815 &dev->i2c_adap, 0x4b, in dvb_init()
1819 0x60, &dev->i2c_adap, in dvb_init()
1831 &dev->i2c_adap, 0x4b, in dvb_init()
1834 0x60, &dev->i2c_adap, in dvb_init()
1841 saa7134_set_gpio(dev, 23, 0); in dvb_init()
1843 saa7134_set_gpio(dev, 9, 0); in dvb_init()
1852 0x60, &dev->i2c_adap) == NULL) in dvb_init()
1866 .i2c_addr = 0x61, in dvb_init()
1891 adapter_nr, 0); in dvb_init()
1895 adapter_nr, 0); in dvb_init()
1940 if ((dev->eedata[2] == 0x07) && use_frontend) { in dvb_fini()
1942 u8 data = 0x80; in dvb_fini()
1943 struct i2c_msg msg = {.addr = 0x08, .buf = &data, .flags = 0, .len = 1}; in dvb_fini()
1949 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_fini()
1955 return 0; in dvb_fini()