Skip to content

Commit

Permalink
V4L/DVB (7983): tda18271_calc_rf_cal must return the return value of …
Browse files Browse the repository at this point in the history
…tda18271_lookup_map

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jun 5, 2008
1 parent 4ecc247 commit fc60d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/common/tuners/tda18271-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,11 +648,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;
}

/*
Expand Down

0 comments on commit fc60d6e

Please sign in to comment.