aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda18271-fe.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-04-22 13:46:22 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:55 -0400
commitc0dc0c1122b585193dd6650c749e919542dd3e23 (patch)
treede308e67ef9e2ea58ae9bba0fae1cd4292cf4855 /drivers/media/dvb/frontends/tda18271-fe.c
parent14c74b23b6b5a8259c25c8f825e3036f595518d0 (diff)
V4L/DVB (7432): tda18271: allow device-specific configuration of rf agc top
allow device-specific configuration of rf agc rf top and if top Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/tda18271-fe.c')
-rw-r--r--drivers/media/dvb/frontends/tda18271-fe.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/media/dvb/frontends/tda18271-fe.c b/drivers/media/dvb/frontends/tda18271-fe.c
index b5a422ef4ff6..3c455795d1ac 100644
--- a/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/drivers/media/dvb/frontends/tda18271-fe.c
@@ -70,15 +70,9 @@ static int tda18271_channel_configuration(struct dvb_frontend *fe,
70 regs[R_EP4] &= ~0x80; 70 regs[R_EP4] &= ~0x80;
71 regs[R_EP4] |= map->fm_rfn << 7; 71 regs[R_EP4] |= map->fm_rfn << 7;
72 72
73 /* update RF_TOP / IF_TOP */ 73 /* update rf top / if top */
74 switch (priv->mode) { 74 regs[R_EB22] = 0x00;
75 case TDA18271_ANALOG: 75 regs[R_EB22] |= map->rfagc_top;
76 regs[R_EB22] = 0x2c;
77 break;
78 case TDA18271_DIGITAL:
79 regs[R_EB22] = 0x37;
80 break;
81 }
82 tda18271_write_regs(fe, R_EB22, 1); 76 tda18271_write_regs(fe, R_EB22, 1);
83 77
84 /* --------------------------------------------------------------- */ 78 /* --------------------------------------------------------------- */