]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7430): tda18271: fix typo in tda18271_calibrate_rf
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 22 Apr 2008 17:46:21 +0000 (14:46 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:54 +0000 (14:07 -0300)
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>
drivers/media/dvb/frontends/tda18271-fe.c

index eb44ab71ff74204c6d67f123a5b26d4c6d5e5d64..2bbf277f5cfc080914cd3c03754607014cbe1b7e 100644 (file)
@@ -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;
@@ -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;