diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-03-23 17:25:46 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-03-23 17:25:46 -0400 |
commit | 4f95ac0d135f1bb3626b911853b8c8fb23a338c8 (patch) | |
tree | d48f3bb9472371ba39138e8d6f55e7979b9ab348 /linux/drivers/media/dvb/frontends/tda18271-fe.c | |
parent | 8b059e50f3414442232c352083880ca708d5779a (diff) | |
download | mediapointer-dvb-s2-4f95ac0d135f1bb3626b911853b8c8fb23a338c8.tar.gz mediapointer-dvb-s2-4f95ac0d135f1bb3626b911853b8c8fb23a338c8.tar.bz2 |
tda18271: allow device-specific configuration of rf agc top
From: Michael Krufky <mkrufky@linuxtv.org>
allow device-specific configuration of rf agc rf top and if top
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda18271-fe.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda18271-fe.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/dvb/frontends/tda18271-fe.c index 624ae1641..257b32691 100644 --- a/linux/drivers/media/dvb/frontends/tda18271-fe.c +++ b/linux/drivers/media/dvb/frontends/tda18271-fe.c @@ -71,15 +71,9 @@ static int tda18271_channel_configuration(struct dvb_frontend *fe, regs[R_EP4] &= ~0x80; regs[R_EP4] |= map->fm_rfn << 7; - /* update RF_TOP / IF_TOP */ - switch (priv->mode) { - case TDA18271_ANALOG: - regs[R_EB22] = 0x2c; - break; - case TDA18271_DIGITAL: - regs[R_EB22] = 0x37; - break; - } + /* update rf top / if top */ + regs[R_EB22] = 0x00; + regs[R_EB22] |= map->rfagc_top; tda18271_write_regs(fe, R_EB22, 1); /* --------------------------------------------------------------- */ |