Lines Matching +full:0 +full:x4b

65 MODULE_PARM_DESC(use_frontend,"for cards with multiple frontends (0: terrestrial, 1: satellite)");
80 return 0; in pinnacle_antenna_pwr()
102 static u8 clock_config [] = { CLOCK_CTL, 0x3d, 0x28 }; in mt352_pinnacle_init()
103 static u8 reset [] = { RESET, 0x80 }; in mt352_pinnacle_init()
104 static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; in mt352_pinnacle_init()
105 static u8 agc_cfg [] = { AGC_TARGET, 0x28, 0xa0 }; in mt352_pinnacle_init()
106 static u8 capt_range_cfg[] = { CAPT_RANGE, 0x31 }; in mt352_pinnacle_init()
107 static u8 fsm_ctl_cfg[] = { 0x7b, 0x04 }; in mt352_pinnacle_init()
108 static u8 gpp_ctl_cfg [] = { GPP_CTL, 0x0f }; in mt352_pinnacle_init()
109 static u8 scan_ctl_cfg [] = { SCAN_CTL, 0x0d }; in mt352_pinnacle_init()
110 static u8 irq_cfg [] = { INTERRUPT_EN_0, 0x00, 0x00, 0x00, 0x00 }; in mt352_pinnacle_init()
126 return 0; in mt352_pinnacle_init()
131 static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x2d }; in mt352_aver777_init()
132 static u8 reset [] = { RESET, 0x80 }; in mt352_aver777_init()
133 static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; in mt352_aver777_init()
134 static u8 agc_cfg [] = { AGC_TARGET, 0x28, 0xa0 }; in mt352_aver777_init()
135 static u8 capt_range_cfg[] = { CAPT_RANGE, 0x33 }; in mt352_aver777_init()
144 return 0; in mt352_aver777_init()
149 static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x2d }; in mt352_avermedia_xc3028_init()
150 static u8 reset [] = { RESET, 0x80 }; in mt352_avermedia_xc3028_init()
151 static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; in mt352_avermedia_xc3028_init()
152 static u8 agc_cfg [] = { AGC_TARGET, 0xe }; in mt352_avermedia_xc3028_init()
153 static u8 capt_range_cfg[] = { CAPT_RANGE, 0x33 }; in mt352_avermedia_xc3028_init()
161 return 0; in mt352_avermedia_xc3028_init()
167 u8 off[] = { 0x00, 0xf1}; in mt352_pinnacle_tuner_set_params()
168 u8 on[] = { 0x00, 0x71}; in mt352_pinnacle_tuner_set_params()
169 struct i2c_msg msg = {.addr=0x43, .flags=0, .buf=off, .len = sizeof(off)}; in mt352_pinnacle_tuner_set_params()
175 f.tuner = 0; in mt352_pinnacle_tuner_set_params()
194 .demod_address = 0x3c >> 1,
202 .demod_address = 0xf,
207 .demod_address = (0x1e >> 1),
214 .if_lvl = 7, .rfagc_top = 0x37, },
225 .demod_address = 0x10,
232 unsigned char initmsg[] = {0x45, 0x97}; in kworld_sbtvd_gate_ctrl()
233 unsigned char msg_enable[] = {0x45, 0xc1}; in kworld_sbtvd_gate_ctrl()
234 unsigned char msg_disable[] = {0x45, 0x81}; in kworld_sbtvd_gate_ctrl()
235 struct i2c_msg msg = {.addr = 0x4b, .flags = 0, .buf = initmsg, .len = 2}; in kworld_sbtvd_gate_ctrl()
250 return 0; in kworld_sbtvd_gate_ctrl()
275 struct i2c_msg tuner_msg = {.addr = addr,.flags = 0,.buf = tuner_buf,.len = in philips_tda6651_pll_set()
277 int tuner_frequency = 0; in philips_tda6651_pll_set()
320 filter = 0; in philips_tda6651_pll_set()
324 filter = 0; in philips_tda6651_pll_set()
341 tuner_buf[0] = (tuner_frequency >> 8) & 0x7f; in philips_tda6651_pll_set()
342 tuner_buf[1] = tuner_frequency & 0xff; in philips_tda6651_pll_set()
343 tuner_buf[2] = 0xca; in philips_tda6651_pll_set()
349 pr_warn("could not write to tuner at addr: 0x%02x\n", in philips_tda6651_pll_set()
354 return 0; in philips_tda6651_pll_set()
362 static u8 tu1216_init[] = { 0x0b, 0xf5, 0x85, 0xab }; in philips_tu1216_init()
363 …struct i2c_msg tuner_msg = {.addr = addr,.flags = 0,.buf = tu1216_init,.len = sizeof(tu1216_init) … in philips_tu1216_init()
372 return 0; in philips_tu1216_init()
378 .demod_address = 0x8,
380 .invert_oclk = 0,
384 .tuner_address = 0x60,
390 .demod_address = 0x8,
392 .invert_oclk = 0,
396 .tuner_address = 0x61,
407 static u8 msg[] = { 0x0b, 0xf5, 0x86, 0xab }; in philips_td1316_tuner_init()
408 struct i2c_msg init_msg = {.addr = addr,.flags = 0,.buf = msg,.len = sizeof(msg) }; in philips_td1316_tuner_init()
415 return 0; in philips_td1316_tuner_init()
428 static u8 msg[] = { 0x0b, 0xdc, 0x86, 0xa4 }; in philips_td1316_tuner_sleep()
429 struct i2c_msg analog_msg = {.addr = addr,.flags = 0,.buf = msg,.len = sizeof(msg) }; in philips_td1316_tuner_sleep()
436 return 0; in philips_td1316_tuner_sleep()
444 static u8 msg[] = { 0x00, 0x40}; in philips_europa_tuner_init()
445 struct i2c_msg init_msg = {.addr = 0x43,.flags = 0,.buf = msg,.len = sizeof(msg) }; in philips_europa_tuner_init()
454 return 0; in philips_europa_tuner_init()
461 static u8 msg[] = { 0x00, 0x14 }; in philips_europa_tuner_sleep()
462 struct i2c_msg analog_msg = {.addr = 0x43,.flags = 0,.buf = msg,.len = sizeof(msg) }; in philips_europa_tuner_sleep()
473 return 0; in philips_europa_tuner_sleep()
483 return 0; in philips_europa_demod_sleep()
488 .demod_address = 0x8,
489 .invert = 0,
490 .invert_oclk = 0,
494 .tuner_address = 0x61,
499 .demod_address = 0x08,
501 .invert_oclk = 0,
505 .tuner_address = 0x61,
510 .demod_address = 0x8,
512 .invert_oclk = 0,
516 .tuner_address = 0x63,
529 static u8 tda8290_close[] = { 0x21, 0xc0}; in tda8290_i2c_gate_ctrl()
530 static u8 tda8290_open[] = { 0x21, 0x80}; in tda8290_i2c_gate_ctrl()
531 struct i2c_msg tda8290_msg = {.addr = addr,.flags = 0, .len = 2}; in tda8290_i2c_gate_ctrl()
542 return 0; in tda8290_i2c_gate_ctrl()
551 case 0: in philips_tda827x_tuner_init()
554 pr_debug("setting GPIO21 to 0 (TV antenna?)\n"); in philips_tda827x_tuner_init()
555 saa7134_set_gpio(dev, 21, 0); in philips_tda827x_tuner_init()
562 return 0; in philips_tda827x_tuner_init()
571 case 0: in philips_tda827x_tuner_sleep()
578 pr_debug("setting GPIO21 to 0 (TV antenna?)\n"); in philips_tda827x_tuner_sleep()
579 saa7134_set_gpio(dev, 21, 0); in philips_tda827x_tuner_sleep()
582 return 0; in philips_tda827x_tuner_sleep()
604 return 0; in configure_tda827x_fe()
617 .config = 0,
618 .switch_addr = 0
625 .switch_addr = 0x4b
632 .switch_addr = 0x4b
639 .switch_addr = 0x42
645 .demod_address = 0x08,
647 .invert_oclk = 0,
652 .tuner_address = 0x60,
657 .demod_address = 0x08,
659 .invert_oclk = 0,
664 .i2c_gate = 0x4b,
665 .tuner_address = 0x61,
671 .demod_address = 0x08,
673 .invert_oclk = 0,
678 .i2c_gate = 0x4b,
679 .tuner_address = 0x61,
684 .demod_address = 0x08,
686 .invert_oclk = 0,
691 .i2c_gate = 0x4b,
692 .tuner_address = 0x60,
697 .demod_address = 0x08,
699 .invert_oclk = 0,
704 .i2c_gate = 0x4b,
705 .tuner_address = 0x61,
711 .demod_address = 0x08,
713 .invert_oclk = 0,
718 .i2c_gate = 0x4b,
719 .tuner_address = 0x61,
724 .demod_address = 0x08,
726 .invert_oclk = 0,
731 .i2c_gate = 0x4b,
732 .tuner_address = 0x61,
737 .demod_address = 0x08,
739 .invert_oclk = 0,
744 .i2c_gate = 0x4b,
745 .tuner_address = 0x61,
751 .demod_address = 0x09,
753 .invert_oclk = 0,
758 .tuner_address = 0x60,
763 .demod_address = 0x08,
765 .invert_oclk = 0,
770 .tuner_address = 0x60,
775 .demod_address = 0x08,
777 .invert_oclk = 0,
782 .i2c_gate = 0x4b,
783 .tuner_address = 0x60,
788 .demod_address = 0x08,
790 .invert_oclk = 0,
795 .i2c_gate = 0x4b,
796 .tuner_address = 0x61,
802 .demod_address = 0x08,
804 .invert_oclk = 0,
809 .i2c_gate = 0x4b,
810 .tuner_address = 0x61,
816 .demod_address = 0x08,
818 .invert_oclk = 0,
823 .i2c_gate = 0x4b,
824 .tuner_address = 0x61,
830 .demod_address = 0x08,
832 .invert_oclk = 0,
837 .i2c_gate = 0x4b,
838 .tuner_address = 0x60,
844 .demod_address = 0x08,
846 .invert_oclk = 0,
851 .i2c_gate = 0x42,
852 .tuner_address = 0x61,
858 .demod_address = 0x0b,
860 .invert_oclk = 0,
865 .i2c_gate = 0x4b,
866 .tuner_address = 0x61,
872 .demod_address = 0x0b,
874 .invert_oclk = 0,
879 .i2c_gate = 0x4b,
880 .tuner_address = 0x61,
895 return 0; in ads_duo_tuner_init()
902 saa7134_set_gpio(dev, 22, 0); in ads_duo_tuner_sleep()
904 return 0; in ads_duo_tuner_sleep()
910 .config = 0
914 .demod_address = 0x08,
916 .invert_oclk = 0,
921 .tuner_address = 0x61,
926 .demod_address = 0x1e>>1,
933 .i2c_address = 0xc2>>1,
939 .demod_address = 0x1e>>1,
947 .demod_address = 0x0f,
954 .i2c_address = 0x62
963 .demod_address = 0x0e,
964 .invert = 0,
965 .diseqc_tone = 0,
970 .demod_address = 0x0e,
971 .invert = 0,
972 .diseqc_tone = 0,
989 fe->ops.i2c_gate_ctrl(fe, 0); in md8800_set_voltage()
1002 fe->ops.i2c_gate_ctrl(fe, 0); in md8800_set_high_voltage()
1011 u8 wbuf[2] = { 0x1f, 00 }; in md8800_set_voltage2()
1013 struct i2c_msg msg[] = { { .addr = 0x08, .flags = 0, .buf = wbuf, .len = 1 }, in md8800_set_voltage2()
1014 { .addr = 0x08, .flags = I2C_M_RD, .buf = &rbuf, .len = 1 } }; in md8800_set_voltage2()
1020 wbuf[1] = rbuf | 0x10; in md8800_set_voltage2()
1022 wbuf[1] = rbuf & 0xef; in md8800_set_voltage2()
1023 msg[0].len = 2; in md8800_set_voltage2()
1027 return 0; in md8800_set_voltage2()
1042 .demod_address = 0x0a,
1046 .demod_address = 0x0a,
1052 .demod_address = 0x0e,
1057 .tuner_address = 0x60,
1061 .demod_address = 0x0e,
1065 .demod_address = 0x0e,
1069 .i2c_addr = 0x0e,
1080 .demod_address = 0x10 >> 1,
1093 .if_lvl = 1, .rfagc_top = 0x58, },
1095 .if_lvl = 1, .rfagc_top = 0x58, },
1110 .demod_address = 0x10 >> 1,
1126 .demod_address = 0x10 >> 1,
1139 .if_lvl = 1, .rfagc_top = 0x37, },
1141 .if_lvl = 1, .rfagc_top = 0x37, },
1143 .if_lvl = 1, .rfagc_top = 0x37, },
1153 .demod_address = 0x1d,
1154 .serial_ts = 0,
1156 .ts_clk_gated = 0,
1159 .if_neg_center = 0,
1160 .ext_adc = 0,
1173 .if_lvl = 6, .rfagc_top = 0x37 },
1174 .qam_6 = { .if_freq = 4000, .agc_mode = 3, .std = 0,
1175 .if_lvl = 6, .rfagc_top = 0x37 },
1221 int attach_xc3028 = 0; in dvb_init()
1272 &dev->i2c_adap, 0x61, in dvb_init()
1319 &tda827x_cfg_0) < 0) in dvb_init()
1359 &tda827x_cfg_2) < 0) in dvb_init()
1368 &dev->i2c_adap, 0x4b, in dvb_init()
1371 0x60, &dev->i2c_adap, in dvb_init()
1377 &tda827x_cfg_0) < 0) in dvb_init()
1382 &tda827x_cfg_1) < 0) in dvb_init()
1387 &tda827x_cfg_1) < 0) in dvb_init()
1396 &dev->i2c_adap, 0x4b, in dvb_init()
1399 0x60, &dev->i2c_adap, in dvb_init()
1405 &tda827x_cfg_0) < 0) in dvb_init()
1410 &tda827x_cfg_0) < 0) in dvb_init()
1416 &tda827x_cfg_0) < 0) in dvb_init()
1421 if (dvb_attach(tda826x_attach, fe0->dvb.frontend, 0x63, in dvb_init()
1422 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1429 0x08, 0, 0, false) == NULL) { in dvb_init()
1455 &tda827x_cfg_0) < 0) in dvb_init()
1461 &tda827x_cfg_0) < 0) in dvb_init()
1469 u8 data = 0xc4; in dvb_init()
1470 struct i2c_msg msg = {.addr = 0x08, .flags = 0, .len = 1}; in dvb_init()
1473 0x60, &dev->i2c_adap, 0) == NULL) { in dvb_init()
1478 if (dev_id != 0x08) { in dvb_init()
1482 &dev->i2c_adap, 0x08, 0, 0) == NULL) { in dvb_init()
1487 if (dev_id == 0x07) { in dvb_init()
1493 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_init()
1509 dvb_attach(dvb_pll_attach, fe0->dvb.frontend, 0x61, in dvb_init()
1518 &dev->i2c_adap, 0x61, in dvb_init()
1523 saa7134_tuner_callback(dev, 0, in dvb_init()
1530 &dev->i2c_adap, 0x4b, in dvb_init()
1533 0x60, &dev->i2c_adap, in dvb_init()
1541 if (dvb_attach(tda826x_attach, fe0->dvb.frontend, 0x60, in dvb_init()
1542 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1548 0x08, 0, 0, false) == NULL) { in dvb_init()
1578 &tda827x_cfg_0) < 0) in dvb_init()
1583 &tda827x_cfg_0) < 0) in dvb_init()
1588 &tda827x_cfg_2) < 0) in dvb_init()
1593 &tda827x_cfg_2) < 0) in dvb_init()
1598 &tda827x_cfg_2) < 0) in dvb_init()
1603 &tda827x_cfg_0) < 0) in dvb_init()
1608 &tda827x_cfg_2_sw42) < 0) in dvb_init()
1615 if (dvb_attach(tda826x_attach, fe0->dvb.frontend, 0x60, in dvb_init()
1616 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1621 &dev->i2c_adap, 0, 0) == NULL) { in dvb_init()
1629 &tda827x_cfg_0) < 0) in dvb_init()
1634 &tda827x_cfg_2) < 0) in dvb_init()
1639 saa7134_set_gpio(dev, 25, 0); in dvb_init()
1652 if (dvb_attach(dvb_pll_attach, fe0->dvb.frontend, 0x60, in dvb_init()
1662 &dev->i2c_adap, 0x08, 0, 0) == NULL) { in dvb_init()
1667 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_init()
1675 saa7134_set_gpio(dev, 25, 0); in dvb_init()
1686 &tda827x_cfg_2) < 0) in dvb_init()
1693 fe0->dvb.frontend, 0x60, in dvb_init()
1694 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1700 &dev->i2c_adap, 0, 0) == NULL) { in dvb_init()
1711 &tda827x_cfg_2) < 0) in dvb_init()
1718 fe0->dvb.frontend, 0x60, in dvb_init()
1719 &dev->i2c_adap, 0) == NULL) { in dvb_init()
1725 &dev->i2c_adap, 0, 0) == NULL) { in dvb_init()
1735 &tda827x_cfg_0) < 0) in dvb_init()
1744 &dev->i2c_adap, 0x61, in dvb_init()
1784 0x60, &dev->i2c_adap) == NULL) in dvb_init()
1807 &dev->i2c_adap, 0x4b, in dvb_init()
1810 0x60, &dev->i2c_adap, in dvb_init()
1820 &dev->i2c_adap, 0x4b, in dvb_init()
1823 0x60, &dev->i2c_adap, in dvb_init()
1829 saa7134_tuner_callback(dev, 0, in dvb_init()
1836 &dev->i2c_adap, 0x4b, in dvb_init()
1840 0x60, &dev->i2c_adap, in dvb_init()
1852 &dev->i2c_adap, 0x4b, in dvb_init()
1855 0x60, &dev->i2c_adap, in dvb_init()
1862 saa7134_set_gpio(dev, 23, 0); in dvb_init()
1864 saa7134_set_gpio(dev, 9, 0); in dvb_init()
1873 0x60, &dev->i2c_adap) == NULL) in dvb_init()
1884 &dev->i2c_adap, 0x4b, in dvb_init()
1887 0x60, &dev->i2c_adap, in dvb_init()
1900 .i2c_addr = 0x61, in dvb_init()
1925 adapter_nr, 0); in dvb_init()
1929 adapter_nr, 0); in dvb_init()
1974 if ((dev->eedata[2] == 0x07) && use_frontend) { in dvb_fini()
1976 u8 data = 0x80; in dvb_fini()
1977 struct i2c_msg msg = {.addr = 0x08, .buf = &data, .flags = 0, .len = 1}; in dvb_fini()
1983 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_fini()
1989 return 0; in dvb_fini()