diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-13 16:29:44 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-13 16:29:44 -0500 |
commit | 8e69a781325727ab456ca97c4d7abc8b1e243db5 (patch) | |
tree | e2f2e38cd378d24ef62b0f560ed5f9a7b202309c /linux/drivers/media/dvb | |
parent | 348f487c46055dc72d421d32458a6cabd061969e (diff) | |
download | mediapointer-dvb-s2-8e69a781325727ab456ca97c4d7abc8b1e243db5.tar.gz mediapointer-dvb-s2-8e69a781325727ab456ca97c4d7abc8b1e243db5.tar.bz2 |
tda18271: test RF_CAL_OK to see if we need additional RF calibration
From: Michael Krufky <mkrufky@linuxtv.org>
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>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda18271-fe.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/dvb/frontends/tda18271-fe.c index 45dd984d2..071847f18 100644 --- a/linux/drivers/media/dvb/frontends/tda18271-fe.c +++ b/linux/drivers/media/dvb/frontends/tda18271-fe.c @@ -610,6 +610,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; |