]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7028): tda18271: test RF_CAL_OK to see if we need additional RF calibration
authorMichael Krufky <mkrufky@linuxtv.org>
Sun, 13 Jan 2008 21:29:44 +0000 (18:29 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:59 +0000 (19:04 -0200)
Test RF_CAL_OK to see if we need to perform the RF tracking filter
calibration after returning from standby.

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 c8ab1fda1dea3e244c202dc0a76d42766fe66b42..8eb9a537970a0b5ad9769a6d3cb1cd8c66248641 100644 (file)
@@ -586,6 +586,11 @@ static int tda18271_calc_rf_filter_curve(struct dvb_frontend *fe)
 static int tda18271_rf_cal_init(struct dvb_frontend *fe)
 {
        struct tda18271_priv *priv = fe->tuner_priv;
+       unsigned char *regs = priv->tda18271_regs;
+
+       /* test RF_CAL_OK to see if we need init */
+       if ((regs[R_EP1] & 0x10) == 0)
+               priv->cal_initialized = false;
 
        if (priv->cal_initialized)
                return 0;