Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92379
b: refs/heads/master
c: a60b866
h: refs/heads/master
i:
  92377: 5caac69
  92375: bab6db8
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent e1c7a1c commit 60d70ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 48 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: e723ee00893f242cbccf5ef2faffdaa6afb8f244
refs/heads/master: a60b866567001e97b5bdc9811aee155ae759e48f
48 changes: 1 addition & 47 deletions trunk/drivers/media/dvb/frontends/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,54 +752,8 @@ static int tda18271c1_tune(struct dvb_frontend *fe,
if (0 == tda18271_calc_rf_cal(fe, &freq))
tda18271_write_regs(fe, R_EB14, 1);

/* Channel Configuration */

switch (priv->mode) {
case TDA18271_ANALOG:
regs[R_EB22] = 0x2c;
break;
case TDA18271_DIGITAL:
regs[R_EB22] = 0x37;
break;
}
tda18271_write_regs(fe, R_EB22, 1);

regs[R_EP1] |= 0x40; /* set dis power level on */

/* set standard */
regs[R_EP3] &= ~0x1f; /* clear std bits */

/* see table 22 */
regs[R_EP3] |= std;

regs[R_EP4] &= ~0x03; /* set cal mode to normal */

regs[R_EP4] &= ~0x1c; /* clear if level bits */
switch (priv->mode) {
case TDA18271_ANALOG:
regs[R_MPD] &= ~0x80; /* IF notch = 0 */
break;
case TDA18271_DIGITAL:
regs[R_EP4] |= 0x04;
regs[R_MPD] |= 0x80;
break;
}

if (radio)
regs[R_EP4] |= 0x80;
else
regs[R_EP4] &= ~0x80;

/* image rejection validity */
tda18271_calc_ir_measure(fe, &freq);

/* calculate MAIN PLL */
N = freq + ifc;

tda18271_calc_main_pll(fe, N);
tda18271_channel_configuration(fe, ifc, freq, bw, std, radio);

tda18271_write_regs(fe, R_TM, 15);
msleep(5);
mutex_unlock(&priv->lock);

return 0;
Expand Down

0 comments on commit 60d70ba

Please sign in to comment.