diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-08 22:03:31 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-08 22:03:31 -0400 |
commit | 4b4f156ccce8d44c1aee25be38bdbcd87cc5ba24 (patch) | |
tree | 0837087162995d015a395ae9da566677fa61b0c4 /linux/drivers/media/common/tuners/tda18271-fe.c | |
parent | 12e2aee260072adb596daa139922383866261deb (diff) | |
download | mediapointer-dvb-s2-4b4f156ccce8d44c1aee25be38bdbcd87cc5ba24.tar.gz mediapointer-dvb-s2-4b4f156ccce8d44c1aee25be38bdbcd87cc5ba24.tar.bz2 |
tda18271: toggle rf agc speed mode on TDA18271HD/C2 only
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/common/tuners/tda18271-fe.c')
-rw-r--r-- | linux/drivers/media/common/tuners/tda18271-fe.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/linux/drivers/media/common/tuners/tda18271-fe.c b/linux/drivers/media/common/tuners/tda18271-fe.c index 21a8eb9cc..4e8f3bf50 100644 --- a/linux/drivers/media/common/tuners/tda18271-fe.c +++ b/linux/drivers/media/common/tuners/tda18271-fe.c @@ -76,8 +76,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; @@ -169,12 +171,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; } |