forked from Minki/linux
V4L/DVB (3884): Convert dibusb* to refactored tuner code
Hook tuner call into tuner_ops. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
aac9ee95ad
commit
a263394b48
@ -173,8 +173,8 @@ int dibusb_dib3000mc_frontend_attach(struct dvb_usb_device *d)
|
||||
struct dib3000_config demod_cfg;
|
||||
struct dibusb_state *st = d->priv;
|
||||
|
||||
demod_cfg.pll_set = dvb_usb_pll_set_i2c;
|
||||
demod_cfg.pll_init = dvb_usb_pll_init_i2c;
|
||||
d->fe->ops->tuner_ops.init = dvb_usb_tuner_init_i2c;
|
||||
d->fe->ops->tuner_ops.set_params = dvb_usb_tuner_set_params_i2c;
|
||||
|
||||
for (demod_cfg.demod_address = 0x8; demod_cfg.demod_address < 0xd; demod_cfg.demod_address++)
|
||||
if ((d->fe = dib3000mc_attach(&demod_cfg,&d->i2c_adap,&st->ops)) != NULL) {
|
||||
|
@ -20,8 +20,8 @@ static int dibusb_dib3000mb_frontend_attach(struct dvb_usb_device *d)
|
||||
struct dibusb_state *st = d->priv;
|
||||
|
||||
demod_cfg.demod_address = 0x8;
|
||||
demod_cfg.pll_set = dvb_usb_pll_set_i2c;
|
||||
demod_cfg.pll_init = dvb_usb_pll_init_i2c;
|
||||
d->fe->ops->tuner_ops.init = dvb_usb_tuner_init_i2c;
|
||||
d->fe->ops->tuner_ops.set_params = dvb_usb_tuner_set_params_i2c;
|
||||
|
||||
if ((d->fe = dib3000mb_attach(&demod_cfg,&d->i2c_adap,&st->ops)) == NULL)
|
||||
return -ENODEV;
|
||||
|
Loading…
Reference in New Issue
Block a user