Lines Matching +full:0 +full:xc5000

22 #include "xc5000.h"
80 .if_lvl = 1, .rfagc_top = 0x37, },
82 .if_lvl = 1, .rfagc_top = 0x37, },
84 .if_lvl = 1, .rfagc_top = 0x37, },
89 .if_lvl = 0, .rfagc_top = 0x37, },
117 .i2c_addr = 0x0e,
129 .if_lvl = 1, .rfagc_top = 0x58, },
131 .if_lvl = 1, .rfagc_top = 0x58, },
140 .demod_address = 0x10,
161 .i2c_addr = 0x3a, /* 0x74 >> 1 */
197 if (packet < 0) { in print_err_status()
212 return 0; in dvb_isoc_copy()
215 return 0; in dvb_isoc_copy()
217 if (urb->status < 0) { in dvb_isoc_copy()
220 return 0; in dvb_isoc_copy()
223 for (i = 0; i < urb->number_of_packets; i++) { in dvb_isoc_copy()
226 if (status < 0) { in dvb_isoc_copy()
238 return 0; in dvb_isoc_copy()
244 return 0; in dvb_bulk_copy()
247 return 0; in dvb_bulk_copy()
249 if (urb->status < 0) { in dvb_bulk_copy()
252 return 0; in dvb_bulk_copy()
259 return 0; in dvb_bulk_copy()
271 if (rc < 0) in start_streaming()
280 cx231xx_set_alt_setting(dev, INDEX_TS1, 0); in start_streaming()
282 if (rc < 0) in start_streaming()
304 return 0; in stop_streaming()
322 if (ret < 0) in start_feed()
334 int err = 0; in stop_feed()
339 if (0 == dvb->nfeeds) in stop_feed()
360 .i2c_address = 0x61,
364 .i2c_address = 0x61,
369 #if 0
376 memset(&cfg, 0, sizeof(cfg));
380 if (!dev->dvb->frontend[0]) {
381 dev_err(dev->dev, "%s/2: dvb frontend not attached. Can't attach xc5000\n",
386 fe = dvb_attach(xc5000_attach, dev->dvb->frontend[0], &cfg);
388 dev_err(dev->dev, "%s/2: xc5000 attach failed\n", dev->name);
389 dvb_frontend_detach(dev->dvb->frontend[0]);
390 dev->dvb->frontend[0] = NULL;
394 dev_info(dev->dev, "%s/2: xc5000 attached\n", dev->name);
396 return 0;
402 if (dev->dvb && dev->dvb->frontend[0]) { in cx231xx_set_analog_freq()
404 struct dvb_tuner_ops *dops = &dev->dvb->frontend[0]->ops.tuner_ops; in cx231xx_set_analog_freq()
411 params.mode = 0; /* 0- Air; 1 - cable */ in cx231xx_set_analog_freq()
415 dops->set_analog_params(dev->dvb->frontend[0], &params); in cx231xx_set_analog_freq()
420 return 0; in cx231xx_set_analog_freq()
425 int status = 0; in cx231xx_reset_analog_tuner()
427 if (dev->dvb && dev->dvb->frontend[0]) { in cx231xx_reset_analog_tuner()
429 struct dvb_tuner_ops *dops = &dev->dvb->frontend[0]->ops.tuner_ops; in cx231xx_reset_analog_tuner()
434 "Reloading firmware for XC5000\n"); in cx231xx_reset_analog_tuner()
435 status = dops->init(dev->dvb->frontend[0]); in cx231xx_reset_analog_tuner()
436 if (status == 0) { in cx231xx_reset_analog_tuner()
439 "XC5000 firmware download completed\n"); in cx231xx_reset_analog_tuner()
441 dev->xc_fw_load_done = 0; in cx231xx_reset_analog_tuner()
443 "XC5000 firmware download failed !!!\n"); in cx231xx_reset_analog_tuner()
466 if (result < 0) { in register_dvb()
475 dvb->frontend[0]->ops.ts_bus_ctrl = cx231xx_dvb_bus_ctrl; in register_dvb()
482 result = dvb_register_frontend(&dvb->adapter, dvb->frontend[0]); in register_dvb()
483 if (result < 0) { in register_dvb()
492 if (result < 0) { in register_dvb()
514 if (result < 0) { in register_dvb()
523 dvb->dmxdev.capabilities = 0; in register_dvb()
525 if (result < 0) { in register_dvb()
534 if (result < 0) { in register_dvb()
543 if (result < 0) { in register_dvb()
551 if (result < 0) { in register_dvb()
562 if (result < 0) in register_dvb()
565 return 0; in register_dvb()
580 dvb_unregister_frontend(dvb->frontend[0]); in register_dvb()
585 dvb_frontend_detach(dvb->frontend[0]); in register_dvb()
600 dvb_unregister_frontend(dvb->frontend[0]); in unregister_dvb()
603 dvb_frontend_detach(dvb->frontend[0]); in unregister_dvb()
612 dvb_module_release(dvb->i2c_client_demod[0]); in unregister_dvb()
613 dvb->i2c_client_demod[0] = NULL; in unregister_dvb()
627 return 0; in dvb_init()
651 dev->dvb->frontend[0] = dvb_attach(s5h1432_attach, in dvb_init()
655 if (!dev->dvb->frontend[0]) { in dvb_init()
663 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
665 if (!dvb_attach(xc5000_attach, dev->dvb->frontend[0], in dvb_init()
676 dev->dvb->frontend[0] = dvb_attach(s5h1411_attach, in dvb_init()
680 if (!dev->dvb->frontend[0]) { in dvb_init()
688 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
690 if (!dvb_attach(xc5000_attach, dev->dvb->frontend[0], in dvb_init()
699 dev->dvb->frontend[0] = dvb_attach(s5h1432_attach, in dvb_init()
703 if (!dev->dvb->frontend[0]) { in dvb_init()
711 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
713 if (!dvb_attach(tda18271_attach, dev->dvb->frontend[0], in dvb_init()
723 dev->dvb->frontend[0] = dvb_attach(s5h1411_attach, in dvb_init()
727 if (!dev->dvb->frontend[0]) { in dvb_init()
735 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
737 if (!dvb_attach(tda18271_attach, dev->dvb->frontend[0], in dvb_init()
750 dev->dvb->frontend[0] = dvb_attach(lgdt3305_attach, in dvb_init()
754 if (!dev->dvb->frontend[0]) { in dvb_init()
762 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
764 dvb_attach(tda18271_attach, dev->dvb->frontend[0], in dvb_init()
774 si2165_pdata.fe = &dev->dvb->frontend[0]; in dvb_init()
786 dvb->i2c_client_demod[0] = client; in dvb_init()
788 dev->dvb->frontend[0]->ops.i2c_gate_ctrl = NULL; in dvb_init()
791 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
793 dvb_attach(tda18271_attach, dev->dvb->frontend[0], in dvb_init()
806 si2165_pdata.fe = &dev->dvb->frontend[0]; in dvb_init()
818 dvb->i2c_client_demod[0] = client; in dvb_init()
820 dev->dvb->frontend[0]->ops.i2c_gate_ctrl = NULL; in dvb_init()
823 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
826 si2157_config.fe = dev->dvb->frontend[0]; in dvb_init()
852 lgdt3306a_config.fe = &dev->dvb->frontend[0]; in dvb_init()
863 dvb->i2c_client_demod[0] = client; in dvb_init()
865 dev->dvb->frontend[0]->ops.i2c_gate_ctrl = NULL; in dvb_init()
868 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
871 si2157_config.fe = dev->dvb->frontend[0]; in dvb_init()
898 dev->dvb->frontend[0] = dvb_attach(mb86a20s_attach, in dvb_init()
902 if (!dev->dvb->frontend[0]) { in dvb_init()
910 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
912 dvb_attach(tda18271_attach, dev->dvb->frontend[0], in dvb_init()
924 si2168_config.fe = &dev->dvb->frontend[0]; in dvb_init()
936 dvb->i2c_client_demod[0] = client; in dvb_init()
939 si2157_config.fe = dev->dvb->frontend[0]; in dvb_init()
965 mn88473_config.fe = &dev->dvb->frontend[0]; in dvb_init()
975 dvb->i2c_client_demod[0] = client; in dvb_init()
978 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
981 dvb_attach(r820t_attach, dev->dvb->frontend[0], in dvb_init()
993 si2168_config.fe = &dev->dvb->frontend[0]; in dvb_init()
1005 dvb->i2c_client_demod[0] = client; in dvb_init()
1006 dev->dvb->frontend[0]->ops.i2c_gate_ctrl = NULL; in dvb_init()
1009 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
1012 si2157_config.fe = dev->dvb->frontend[0]; in dvb_init()
1040 lgdt3306a_config.fe = &dev->dvb->frontend[0]; in dvb_init()
1051 dvb->i2c_client_demod[0] = client; in dvb_init()
1071 dvb->frontend[0]->callback = cx231xx_tuner_callback; in dvb_init()
1075 si2157_config.fe = dev->dvb->frontend[0]; in dvb_init()
1093 dvb->frontend[1]->tuner_priv = dvb->frontend[0]->tuner_priv; in dvb_init()
1096 &dvb->frontend[0]->ops.tuner_ops, in dvb_init()
1106 if (!dvb->frontend[0]) { in dvb_init()
1116 if (result < 0) in dvb_init()
1134 dvb_module_release(dvb->i2c_client_demod[0]); in dvb_init()
1135 dvb->i2c_client_demod[0] = NULL; in dvb_init()
1145 return 0; in dvb_fini()
1154 return 0; in dvb_fini()