Skip to content

Commit

Permalink
V4L/DVB (7430): tda18271: fix typo in tda18271_calibrate_rf
Browse files Browse the repository at this point in the history
The internal calibration signal must be set on the cal pll.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent e83ebb6 commit ae07d04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/dvb/frontends/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ static int tda18271_calibrate_rf(struct dvb_frontend *fe, u32 freq)
/* set the internal calibration signal */
N = freq;

tda18271_calc_main_pll(fe, N);
tda18271_write_regs(fe, R_MPD, 4);
tda18271_calc_cal_pll(fe, N);
tda18271_write_regs(fe, R_CPD, 4);

/* downconvert internal calibration */
N += 1000000;
Expand All @@ -331,7 +331,7 @@ static int tda18271_calibrate_rf(struct dvb_frontend *fe, u32 freq)
regs[R_EB7] &= ~0x20;
tda18271_write_regs(fe, R_EB7, 1);

msleep(5); /* plls locking */
msleep(10); /* plls locking */

/* launch the rf tracking filters calibration */
regs[R_EB20] |= 0x20;
Expand Down

0 comments on commit ae07d04

Please sign in to comment.