Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37386
b: refs/heads/master
c: 5a19f31
h: refs/heads/master
v: v3
  • Loading branch information
Patrick Boettcher authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent c0a8734 commit 9dc2ce7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42afd061700edb43bb082bc65a2ddde431151d6b
refs/heads/master: 5a19f312162abd1356cdcda608f2b13502a383cc
20 changes: 12 additions & 8 deletions trunk/drivers/media/dvb/dvb-usb/dibusb-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,19 @@ static struct dib3000mc_config mod3000p_dib3000p_config = {

int dibusb_dib3000mc_frontend_attach(struct dvb_usb_device *d)
{
if (dib3000mc_attach(&d->i2c_adap, 1, DEFAULT_DIB3000P_I2C_ADDRESS, 0, &mod3000p_dib3000p_config, &d->fe) == 0) {
if (d->priv != NULL) {
struct dibusb_state *st = d->priv;
st->ops.pid_parse = dib3000mc_pid_parse;
st->ops.pid_ctrl = dib3000mc_pid_control;
}
return 0;
int ret;
if ((ret = dib3000mc_attach(&d->i2c_adap, 1, DEFAULT_DIB3000P_I2C_ADDRESS, 0, &mod3000p_dib3000p_config, &d->fe)) != 0)
return ret;

if ((ret = dib3000mc_attach(&d->i2c_adap, 1, DEFAULT_DIB3000MC_I2C_ADDRESS, 0, &mod3000p_dib3000p_config, &d->fe)) != 0)
return ret;

if (d->priv != NULL) {
struct dibusb_state *st = d->priv;
st->ops.pid_parse = dib3000mc_pid_parse;
st->ops.pid_ctrl = dib3000mc_pid_control;
}
return -ENODEV;
return 0;
}
EXPORT_SYMBOL(dibusb_dib3000mc_frontend_attach);

Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,13 @@ int dvb_usb_fe_init(struct dvb_usb_device* d)
d->fe = NULL;
return -ENODEV;
}

/* only attach the tuner if the demod is there */
if (d->props.tuner_attach != NULL)
d->props.tuner_attach(d);
} else
err("no frontend was attached by '%s'",d->desc->name);

if (d->props.tuner_attach != NULL)
d->props.tuner_attach(d);

return 0;
}

Expand Down

0 comments on commit 9dc2ce7

Please sign in to comment.