aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorHenk Vergonet <Henk.Vergonet@gmail.com>2009-09-15 01:09:17 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:13:50 -0400
commitb5d189702b56c5d09bec71798c0314090b36116d (patch)
treea8ac6ecb76ca81c6cb7f0cf9fc484bc1306375ff /drivers/media/common
parentecda427340b7bb5c61fbf18857645286c2bfec6c (diff)
V4L/DVB (12870): tda18271: update temperature compensation calculatation formula
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. Signed-off-by: Henk Vergonet <Henk.Vergonet@gmail.com> Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/tuners/tda18271-fe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tda18271-fe.c b/drivers/media/common/tuners/tda18271-fe.c
index 916a6e150863..64595112000d 100644
--- a/drivers/media/common/tuners/tda18271-fe.c
+++ b/drivers/media/common/tuners/tda18271-fe.c
@@ -292,7 +292,7 @@ static int tda18271c2_rf_tracking_filters_correction(struct dvb_frontend *fe,
292 tda18271_lookup_map(fe, RF_CAL_DC_OVER_DT, &freq, &dc_over_dt); 292 tda18271_lookup_map(fe, RF_CAL_DC_OVER_DT, &freq, &dc_over_dt);
293 293
294 /* calculate temperature compensation */ 294 /* calculate temperature compensation */
295 rfcal_comp = dc_over_dt * (tm_current - priv->tm_rfcal); 295 rfcal_comp = dc_over_dt * (tm_current - priv->tm_rfcal) / 1000;
296 296
297 regs[R_EB14] = approx + rfcal_comp; 297 regs[R_EB14] = approx + rfcal_comp;
298 ret = tda18271_write_regs(fe, R_EB14, 1); 298 ret = tda18271_write_regs(fe, R_EB14, 1);