Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174001
b: refs/heads/master
c: 188ea05
h: refs/heads/master
i:
  173999: 6a0478d
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent a9863a4 commit fc74cb8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 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: c54e1dde586ea0e930d6c443ca60a9b9d0310de3
refs/heads/master: 188ea058ff2e671270273a1f5d13f46ca75b8a35
17 changes: 14 additions & 3 deletions trunk/drivers/media/common/tuners/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
struct tda18271_config *cfg)
{
struct tda18271_priv *priv = NULL;
int instance;
int instance, rf_cal_on_startup = 0;

mutex_lock(&tda18271_list_mutex);

Expand All @@ -1262,8 +1262,6 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
case 1:
{
/* new tuner instance */
int rf_cal_on_startup;

fe->tuner_priv = priv;

tda18271_setup_configuration(fe, cfg);
Expand Down Expand Up @@ -1315,7 +1313,20 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
priv->output_opt = cfg->output_opt;
if (cfg->std_map)
tda18271_update_std_map(fe, cfg->std_map);

/* tda18271_cal_on_startup == -1 when cal
* module option is unset */
if (tda18271_cal_on_startup == -1) {
/* honor attach-time configuration */
rf_cal_on_startup =
(cfg->rf_cal_on_startup) ? 1 : 0;
} else {
/* module option overrides attach config */
rf_cal_on_startup = tda18271_cal_on_startup;
}
}
if (rf_cal_on_startup)
tda18271_init(fe);
break;
}

Expand Down

0 comments on commit fc74cb8

Please sign in to comment.