Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76521
b: refs/heads/master
c: efce841
h: refs/heads/master
i:
  76519: 832d941
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 7e60b17 commit 8f7d0e5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 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: 2b057e8dc6cc8318956fef92b77a4e86985e84d9
refs/heads/master: efce841093589bfef571a07e18e5446def9e04b4
18 changes: 17 additions & 1 deletion trunk/drivers/media/dvb/frontends/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,20 @@ static int tda18271_init_regs(struct dvb_frontend *fe)
return 0;
}

static int tda18271_init(struct dvb_frontend *fe)
{
struct tda18271_priv *priv = fe->tuner_priv;
unsigned char *regs = priv->tda18271_regs;

tda18271_read_regs(fe);

/* test IR_CAL_OK to see if we need init */
if ((regs[R_EP1] & 0x08) == 0)
tda18271_init_regs(fe);

return 0;
}

static int tda18271_tune(struct dvb_frontend *fe,
u32 ifc, u32 freq, u32 bw, u8 std)
{
Expand Down Expand Up @@ -742,7 +756,7 @@ static struct dvb_tuner_ops tda18271_tuner_ops = {
.frequency_max = 864000000,
.frequency_step = 62500
},
.init = tda18271_init_regs,
.init = tda18271_init,
.set_params = tda18271_set_params,
.set_analog_params = tda18271_set_analog_params,
.release = tda18271_release,
Expand All @@ -768,6 +782,8 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,

fe->tuner_priv = priv;

tda18271_init_regs(fe);

return fe;
}
EXPORT_SYMBOL_GPL(tda18271_attach);
Expand Down

0 comments on commit 8f7d0e5

Please sign in to comment.