Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76524
b: refs/heads/master
c: aaeccba
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent ccafb18 commit ced1d23
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 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: 293da0ec468addf891856e9ffee88af2fd00e25a
refs/heads/master: aaeccba68a60eedee5fe90f9e1478367b1f97345
11 changes: 10 additions & 1 deletion trunk/drivers/media/dvb/frontends/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,16 @@ static int tda18271_tune(struct dvb_frontend *fe,

regs[R_EP4] &= ~0x80; /* turn this bit on only for fm */

/* FIXME: image rejection validity EP5[2:0] */
/* image rejection validity EP5[2:0] */
i = 0;
while ((tda18271_ir_measure[i].rfmax * 1000) < freq) {
if (tda18271_ir_measure[i].rfmax == 0)
break;
i++;
}
dbg_map("ir measure, i = %d\n", i);
regs[R_EP5] &= ~0x07;
regs[R_EP5] |= tda18271_ir_measure[i].val;

/* calculate MAIN PLL */
N = freq + ifc;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/dvb/frontends/tda18271-priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ extern struct tda18271_map tda18271_km[];
extern struct tda18271_map tda18271_rf_band[];
extern struct tda18271_map tda18271_gain_taper[];
extern struct tda18271_map tda18271_rf_cal[];
extern struct tda18271_map tda18271_ir_measure[];

#endif /* __TDA18271_PRIV_H__ */

Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/media/dvb/frontends/tda18271-tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ struct tda18271_map tda18271_rf_cal[] = {
{ .rfmax = 0, .val = 0x00 }, /* end */
};

struct tda18271_map tda18271_ir_measure[] = {
{ .rfmax = 30000, .val = 4},
{ .rfmax = 200000, .val = 5},
{ .rfmax = 600000, .val = 6},
{ .rfmax = 865000, .val = 7},
{ .rfmax = 0, .val = 0}, /* end */
};

/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* ---------------------------------------------------------------------------
Expand Down

0 comments on commit ced1d23

Please sign in to comment.