Skip to content

Commit

Permalink
V4L/DVB (7028): tda18271: test RF_CAL_OK to see if we need additional…
Browse files Browse the repository at this point in the history
… RF calibration

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 518d873 commit 839c6c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/media/dvb/frontends/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,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;
Expand Down

0 comments on commit 839c6c9

Please sign in to comment.