Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98489
b: refs/heads/master
c: 51858d1
h: refs/heads/master
i:
  98487: 0f260fe
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jun 26, 2008
1 parent f7a65ac commit 60a6270
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 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: 119a7c7e34b5e5fa65051960ca05000a19dbce85
refs/heads/master: 51858d13612a06494beb08616f8a93bdb2688e4c
20 changes: 12 additions & 8 deletions trunk/drivers/media/common/tuners/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ static int tda18271_channel_configuration(struct dvb_frontend *fe,
regs[R_EP3] &= ~0x1f; /* clear std bits */
regs[R_EP3] |= (map->agc_mode << 3) | map->std;

/* set rfagc to high speed mode */
regs[R_EP3] &= ~0x04;
if (priv->id == TDA18271HDC2) {
/* set rfagc to high speed mode */
regs[R_EP3] &= ~0x04;
}

/* set cal mode to normal */
regs[R_EP4] &= ~0x03;
Expand Down Expand Up @@ -168,12 +170,14 @@ static int tda18271_channel_configuration(struct dvb_frontend *fe,

msleep(20);

/* set rfagc to normal speed mode */
if (map->fm_rfn)
regs[R_EP3] &= ~0x04;
else
regs[R_EP3] |= 0x04;
ret = tda18271_write_regs(fe, R_EP3, 1);
if (priv->id == TDA18271HDC2) {
/* set rfagc to normal speed mode */
if (map->fm_rfn)
regs[R_EP3] &= ~0x04;
else
regs[R_EP3] |= 0x04;
ret = tda18271_write_regs(fe, R_EP3, 1);
}
fail:
return ret;
}
Expand Down

0 comments on commit 60a6270

Please sign in to comment.