summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/tuners
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-05-31 14:18:55 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2008-05-31 14:18:55 -0400
commitd684e25698da5fd4ff9ed93bc67a22f213af6eb2 (patch)
tree67f84ec6304bec003f958799fdd11f48a0efbe61 /linux/drivers/media/common/tuners
parent60dda3e470db4161a70e2f306a032fe8561918e2 (diff)
downloadmediapointer-dvb-s2-d684e25698da5fd4ff9ed93bc67a22f213af6eb2.tar.gz
mediapointer-dvb-s2-d684e25698da5fd4ff9ed93bc67a22f213af6eb2.tar.bz2
tda18271_calc_rf_cal must return the return value of tda18271_lookup_map
From: Michael Krufky <mkrufky@linuxtv.org> On the TDA18271HD/C1, we perform RF tracking filter correction for VHF low band, only. If supplied a frequency out of range, the error must be returned to the caller (tda18271c1_rf_tracking_filter_calibration) so that it can decide whether or not to write to register EB14, RFC_CPROG[7:0] Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/common/tuners')
-rw-r--r--linux/drivers/media/common/tuners/tda18271-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/common/tuners/tda18271-common.c b/linux/drivers/media/common/tuners/tda18271-common.c
index 5bdab8181..1eaff90da 100644
--- a/linux/drivers/media/common/tuners/tda18271-common.c
+++ b/linux/drivers/media/common/tuners/tda18271-common.c
@@ -716,11 +716,11 @@ int tda18271_calc_rf_cal(struct dvb_frontend *fe, u32 *freq)
unsigned char *regs = priv->tda18271_regs;
u8 val;
- tda18271_lookup_map(fe, RF_CAL, freq, &val);
+ int ret = tda18271_lookup_map(fe, RF_CAL, freq, &val);
regs[R_EB14] = val;
- return 0;
+ return ret;
}
/*