diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-02 09:03:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:13 -0500 |
commit | aaeccba68a60eedee5fe90f9e1478367b1f97345 (patch) | |
tree | 02f840507d66d23fa9210eefe3993423b58159bd /drivers/media/dvb/frontends/tda18271-fe.c | |
parent | 293da0ec468addf891856e9ffee88af2fd00e25a (diff) |
V4L/DVB (6726): tda18271: set image rejection validity
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.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/tda18271-fe.c b/drivers/media/dvb/frontends/tda18271-fe.c index 01de75e369ed..fee38c1657e1 100644 --- a/drivers/media/dvb/frontends/tda18271-fe.c +++ b/drivers/media/dvb/frontends/tda18271-fe.c | |||
@@ -578,7 +578,16 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
578 | 578 | ||
579 | regs[R_EP4] &= ~0x80; /* turn this bit on only for fm */ | 579 | regs[R_EP4] &= ~0x80; /* turn this bit on only for fm */ |
580 | 580 | ||
581 | /* FIXME: image rejection validity EP5[2:0] */ | 581 | /* image rejection validity EP5[2:0] */ |
582 | i = 0; | ||
583 | while ((tda18271_ir_measure[i].rfmax * 1000) < freq) { | ||
584 | if (tda18271_ir_measure[i].rfmax == 0) | ||
585 | break; | ||
586 | i++; | ||
587 | } | ||
588 | dbg_map("ir measure, i = %d\n", i); | ||
589 | regs[R_EP5] &= ~0x07; | ||
590 | regs[R_EP5] |= tda18271_ir_measure[i].val; | ||
582 | 591 | ||
583 | /* calculate MAIN PLL */ | 592 | /* calculate MAIN PLL */ |
584 | N = freq + ifc; | 593 | N = freq + ifc; |