Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96641
b: refs/heads/master
c: 09fee5f
h: refs/heads/master
i:
  96639: d8dcfd9
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed May 14, 2008
1 parent af84f36 commit dbd8c20
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 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: d557dab5de82edfe5bab9a1964dfc5cf2b2b6833
refs/heads/master: 09fee5f8211fc0a586187c4a0db7f5f42a4e333f
28 changes: 13 additions & 15 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,16 +340,6 @@ static void tuner_i2c_address_check(struct tuner *t)
tuner_warn("====================== WARNING! ======================\n");
}

static void attach_tda829x(struct tuner *t)
{
struct tda829x_config cfg = {
.lna_cfg = t->config,
.tuner_callback = t->tuner_callback,
};
dvb_attach(tda829x_attach,
&t->fe, t->i2c->adapter, t->i2c->addr, &cfg);
}

static struct xc5000_config xc5000_cfg;

static void set_type(struct i2c_client *c, unsigned int type,
Expand Down Expand Up @@ -385,12 +375,19 @@ static void set_type(struct i2c_client *c, unsigned int type,

switch (t->type) {
case TUNER_MT2032:
dvb_attach(microtune_attach,
&t->fe, t->i2c->adapter, t->i2c->addr);
if (!dvb_attach(microtune_attach,
&t->fe, t->i2c->adapter, t->i2c->addr))
goto attach_failed;
break;
case TUNER_PHILIPS_TDA8290:
{
attach_tda829x(t);
struct tda829x_config cfg = {
.lna_cfg = t->config,
.tuner_callback = t->tuner_callback,
};
if (!dvb_attach(tda829x_attach, &t->fe, t->i2c->adapter,
t->i2c->addr, &cfg))
goto attach_failed;
break;
}
case TUNER_TEA5767:
Expand Down Expand Up @@ -441,8 +438,9 @@ static void set_type(struct i2c_client *c, unsigned int type,
break;
}
case TUNER_TDA9887:
dvb_attach(tda9887_attach,
&t->fe, t->i2c->adapter, t->i2c->addr);
if (!dvb_attach(tda9887_attach,
&t->fe, t->i2c->adapter, t->i2c->addr))
goto attach_failed;
break;
case TUNER_XC5000:
{
Expand Down

0 comments on commit dbd8c20

Please sign in to comment.