summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2009-09-15 01:09:17 -0400
committerMichael Krufky <mkrufky@kernellabs.com>2009-09-15 01:09:17 -0400
commite11ca416da674b594917a09fbbf64a86363fda83 (patch)
treec872692cc60cc8881d1622f38dd02508d8d3abe3
parent8256238d5c1cbfe2fa9d0811b307b079b99207a4 (diff)
downloadmediapointer-dvb-s2-e11ca416da674b594917a09fbbf64a86363fda83.tar.gz
mediapointer-dvb-s2-e11ca416da674b594917a09fbbf64a86363fda83.tar.bz2
tda18271: update temperature compensation calculatation formula
From: Henk Vergonet <Henk.Vergonet@gmail.com> Update the tda18271c2_rf_tracking_filters_correction function to include the modified temperature compensation calculatation formula as described in Rev.04 of the TDA18271HD datasheet. Priority: normal Signed-off-by: Henk Vergonet <Henk.Vergonet@gmail.com> Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
-rw-r--r--linux/drivers/media/common/tuners/tda18271-fe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/common/tuners/tda18271-fe.c b/linux/drivers/media/common/tuners/tda18271-fe.c
index ee99e7199..a3e122c89 100644
--- a/linux/drivers/media/common/tuners/tda18271-fe.c
+++ b/linux/drivers/media/common/tuners/tda18271-fe.c
@@ -293,7 +293,7 @@ static int tda18271c2_rf_tracking_filters_correction(struct dvb_frontend *fe,
tda18271_lookup_map(fe, RF_CAL_DC_OVER_DT, &freq, &dc_over_dt);
/* calculate temperature compensation */
- rfcal_comp = dc_over_dt * (tm_current - priv->tm_rfcal);
+ rfcal_comp = dc_over_dt * (tm_current - priv->tm_rfcal) / 1000;
regs[R_EB14] = approx + rfcal_comp;
ret = tda18271_write_regs(fe, R_EB14, 1);