Lines Matching refs:i2c_props
31 struct tuner_i2c_props i2c_props; member
60 tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); in tda8290_i2c_bridge()
65 tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); in tda8290_i2c_bridge()
82 tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); in tda8295_i2c_bridge()
87 tuner_i2c_xfer_send_recv(&priv->i2c_props, msg, 1, &msg[1], 1); in tda8295_i2c_bridge()
91 tuner_i2c_xfer_send(&priv->i2c_props, buf, 3); in tda8295_i2c_bridge()
95 tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); in tda8295_i2c_bridge()
195 tuner_i2c_xfer_send(&priv->i2c_props, easy_mode, 2); in tda8290_set_params()
196 tuner_i2c_xfer_send(&priv->i2c_props, agc_out_on, 2); in tda8290_set_params()
197 tuner_i2c_xfer_send(&priv->i2c_props, soft_reset, 2); in tda8290_set_params()
209 tuner_i2c_xfer_send(&priv->i2c_props, fm_mode[i].seq, 2); in tda8290_set_params()
211 tuner_i2c_xfer_send(&priv->i2c_props, deemphasis, 2); in tda8290_set_params()
214 tuner_i2c_xfer_send(&priv->i2c_props, expert_mode, 2); in tda8290_set_params()
215 tuner_i2c_xfer_send(&priv->i2c_props, gainset_off, 2); in tda8290_set_params()
216 tuner_i2c_xfer_send(&priv->i2c_props, if_agc_spd, 2); in tda8290_set_params()
218 tuner_i2c_xfer_send(&priv->i2c_props, adc_head_9, 2); in tda8290_set_params()
220 tuner_i2c_xfer_send(&priv->i2c_props, adc_head_6, 2); in tda8290_set_params()
221 tuner_i2c_xfer_send(&priv->i2c_props, pll_bw_nom, 2); in tda8290_set_params()
232 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_set_params()
235 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_set_params()
238 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_set_params()
252 tuner_i2c_xfer_send(&priv->i2c_props, gainset_2, 2); in tda8290_set_params()
254 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_set_params()
256 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_set_params()
264 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_set_params()
267 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_set_params()
272 tuner_i2c_xfer_send(&priv->i2c_props, adc_head_12, 2); in tda8290_set_params()
273 tuner_i2c_xfer_send(&priv->i2c_props, pll_bw_low, 2); in tda8290_set_params()
281 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_set_params()
284 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_set_params()
289 tuner_i2c_xfer_send(&priv->i2c_props, agc_rst_on, 2); in tda8290_set_params()
291 tuner_i2c_xfer_send(&priv->i2c_props, agc_rst_off, 2); in tda8290_set_params()
297 tuner_i2c_xfer_send(&priv->i2c_props, if_agc_set, 2); in tda8290_set_params()
307 tuner_i2c_xfer_send_recv(&priv->i2c_props, &buf[0], 1, &buf[1], 1); in tda8295_power()
314 tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); in tda8295_power()
322 tuner_i2c_xfer_send_recv(&priv->i2c_props, &buf[0], 1, &buf[1], 1); in tda8295_set_easy_mode()
329 tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); in tda8295_set_easy_mode()
337 tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); in tda8295_set_video_std()
351 tuner_i2c_xfer_send_recv(&priv->i2c_props, &buf[0], 1, &buf[1], 1); in tda8295_agc1_out()
358 tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); in tda8295_agc1_out()
367 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8295_agc2_out()
369 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8295_agc2_out()
378 tuner_i2c_xfer_send(&priv->i2c_props, set_gpio_cf, 2); in tda8295_agc2_out()
379 tuner_i2c_xfer_send(&priv->i2c_props, set_gpio_val, 2); in tda8295_agc2_out()
389 tuner_i2c_xfer_send_recv(&priv->i2c_props, &hvpll_stat, 1, &ret, 1); in tda8295_has_signal()
410 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8295_set_params()
416 tuner_i2c_xfer_send(&priv->i2c_props, blanking_mode, 2); in tda8295_set_params()
447 tuner_i2c_xfer_send_recv(&priv->i2c_props, in tda8290_has_signal()
468 i2c_transfer(priv->i2c_props.adap, &msg, 1); in tda8290_standby()
471 tuner_i2c_xfer_send(&priv->i2c_props, tda8290_agc_tri, 2); in tda8290_standby()
472 tuner_i2c_xfer_send(&priv->i2c_props, tda8290_standby, 2); in tda8290_standby()
492 tuner_i2c_xfer_send(&priv->i2c_props, set_GP00_CF, 2); in tda8290_init_if()
494 tuner_i2c_xfer_send(&priv->i2c_props, set_GP01_CF, 2); in tda8290_init_if()
495 tuner_i2c_xfer_send(&priv->i2c_props, set_VS, 2); in tda8290_init_if()
515 tuner_i2c_xfer_send(&priv->i2c_props, set_adc_ctl, 2); in tda8295_init_if()
516 tuner_i2c_xfer_send(&priv->i2c_props, set_adc_ctl2, 2); in tda8295_init_if()
517 tuner_i2c_xfer_send(&priv->i2c_props, set_pll_reg6, 2); in tda8295_init_if()
518 tuner_i2c_xfer_send(&priv->i2c_props, set_pll_reg0, 2); in tda8295_init_if()
519 tuner_i2c_xfer_send(&priv->i2c_props, set_pll_reg7, 2); in tda8295_init_if()
520 tuner_i2c_xfer_send(&priv->i2c_props, set_pll_reg10, 2); in tda8295_init_if()
521 tuner_i2c_xfer_send(&priv->i2c_props, set_gpio_reg0, 2); in tda8295_init_if()
543 i2c_transfer(priv->i2c_props.adap, &msg, 1); in tda8290_init_tuner()
584 ret = i2c_transfer(priv->i2c_props.adap, &msg, 1); in tda829x_find_tuner()
601 ret = i2c_transfer(priv->i2c_props.adap, &msg, 1); in tda829x_find_tuner()
621 ret = i2c_transfer(priv->i2c_props.adap, &msg, 1); in tda829x_find_tuner()
635 priv->i2c_props.adap, &tda829x_tda18271_config); in tda829x_find_tuner()
643 priv->i2c_props.adap, &priv->cfg); in tda829x_find_tuner()
644 priv->cfg.switch_addr = priv->i2c_props.addr; in tda829x_find_tuner()
658 static int tda8290_probe(struct tuner_i2c_props *i2c_props) in tda8290_probe() argument
663 { .addr = i2c_props->addr, .flags = 0, .len = 1, .buf = ® }, in tda8290_probe()
664 { .addr = i2c_props->addr, .flags = I2C_M_RD, .len = 1, .buf = &id }, in tda8290_probe()
668 if (i2c_transfer(i2c_props->adap, msg_read, 2) != 2) { in tda8290_probe()
677 __func__, i2c_adapter_id(i2c_props->adap), in tda8290_probe()
678 i2c_props->addr); in tda8290_probe()
684 static int tda8295_probe(struct tuner_i2c_props *i2c_props) in tda8295_probe() argument
690 { .addr = i2c_props->addr, .flags = 0, .len = 1, .buf = ® }, in tda8295_probe()
691 { .addr = i2c_props->addr, .flags = I2C_M_RD, .len = 1, .buf = &id }, in tda8295_probe()
695 if (i2c_transfer(i2c_props->adap, msg_read, 2) != 2) { in tda8295_probe()
706 i2c_adapter_id(i2c_props->adap), in tda8295_probe()
707 i2c_props->addr); in tda8295_probe()
742 priv->i2c_props.addr = i2c_addr; in tda829x_attach()
743 priv->i2c_props.adap = i2c_adap; in tda829x_attach()
744 priv->i2c_props.name = "tda829x"; in tda829x_attach()
750 if (tda8290_probe(&priv->i2c_props) == 0) { in tda829x_attach()
756 if (tda8295_probe(&priv->i2c_props) == 0) { in tda829x_attach()
822 struct tuner_i2c_props i2c_props = { in tda829x_probe() local
838 tuner_i2c_xfer_send_recv(&i2c_props, in tda829x_probe()
849 if ((tda8290_probe(&i2c_props) == 0) || in tda829x_probe()
850 (tda8295_probe(&i2c_props) == 0)) in tda829x_probe()
854 tuner_i2c_xfer_send(&i2c_props, easy_mode_b, 2); in tda829x_probe()
855 tuner_i2c_xfer_send(&i2c_props, soft_reset, 2); in tda829x_probe()
856 tuner_i2c_xfer_send_recv(&i2c_props, &addr_dto_lsb, 1, &data, 1); in tda829x_probe()
858 tuner_i2c_xfer_send(&i2c_props, easy_mode_g, 2); in tda829x_probe()
859 tuner_i2c_xfer_send(&i2c_props, soft_reset, 2); in tda829x_probe()
860 tuner_i2c_xfer_send_recv(&i2c_props, in tda829x_probe()
866 tuner_i2c_xfer_send(&i2c_props, restore_9886, 3); in tda829x_probe()