diff options
Diffstat (limited to 'drivers/media/dvb/frontends/tda18271-fe.c')
-rw-r--r-- | drivers/media/dvb/frontends/tda18271-fe.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/dvb/frontends/tda18271-fe.c b/drivers/media/dvb/frontends/tda18271-fe.c index 4a32c2e63719..4c105853d93c 100644 --- a/drivers/media/dvb/frontends/tda18271-fe.c +++ b/drivers/media/dvb/frontends/tda18271-fe.c | |||
@@ -386,7 +386,7 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
386 | /* RF tracking filter calibration */ | 386 | /* RF tracking filter calibration */ |
387 | 387 | ||
388 | /* calculate BP_Filter */ | 388 | /* calculate BP_Filter */ |
389 | tda18271_calc_bp_filter(&freq, &val); | 389 | tda18271_lookup_bp_filter(&freq, &val); |
390 | 390 | ||
391 | regs[R_EP1] &= ~0x07; /* clear bp filter bits */ | 391 | regs[R_EP1] &= ~0x07; /* clear bp filter bits */ |
392 | regs[R_EP1] |= val; | 392 | regs[R_EP1] |= val; |
@@ -419,7 +419,7 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
419 | break; | 419 | break; |
420 | } | 420 | } |
421 | 421 | ||
422 | tda18271_calc_cal_pll(&N, &pd, &d); | 422 | tda18271_lookup_cal_pll(&N, &pd, &d); |
423 | 423 | ||
424 | regs[R_CPD] = pd; | 424 | regs[R_CPD] = pd; |
425 | 425 | ||
@@ -439,7 +439,7 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
439 | break; | 439 | break; |
440 | } | 440 | } |
441 | 441 | ||
442 | tda18271_calc_main_pll(&N, &pd, &d); | 442 | tda18271_lookup_main_pll(&N, &pd, &d); |
443 | 443 | ||
444 | regs[R_MPD] = (0x7f & pd); | 444 | regs[R_MPD] = (0x7f & pd); |
445 | 445 | ||
@@ -461,20 +461,20 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
461 | msleep(5); /* RF tracking filter calibration initialization */ | 461 | msleep(5); /* RF tracking filter calibration initialization */ |
462 | 462 | ||
463 | /* search for K,M,CO for RF Calibration */ | 463 | /* search for K,M,CO for RF Calibration */ |
464 | tda18271_calc_km(&freq, &val); | 464 | tda18271_lookup_km(&freq, &val); |
465 | 465 | ||
466 | regs[R_EB13] &= 0x83; | 466 | regs[R_EB13] &= 0x83; |
467 | regs[R_EB13] |= val; | 467 | regs[R_EB13] |= val; |
468 | tda18271_write_regs(fe, R_EB13, 1); | 468 | tda18271_write_regs(fe, R_EB13, 1); |
469 | 469 | ||
470 | /* search for RF_BAND */ | 470 | /* search for RF_BAND */ |
471 | tda18271_calc_rf_band(&freq, &val); | 471 | tda18271_lookup_rf_band(&freq, &val); |
472 | 472 | ||
473 | regs[R_EP2] &= ~0xe0; /* clear rf band bits */ | 473 | regs[R_EP2] &= ~0xe0; /* clear rf band bits */ |
474 | regs[R_EP2] |= (val << 5); | 474 | regs[R_EP2] |= (val << 5); |
475 | 475 | ||
476 | /* search for Gain_Taper */ | 476 | /* search for Gain_Taper */ |
477 | tda18271_calc_gain_taper(&freq, &val); | 477 | tda18271_lookup_gain_taper(&freq, &val); |
478 | 478 | ||
479 | regs[R_EP2] &= ~0x1f; /* clear gain taper bits */ | 479 | regs[R_EP2] &= ~0x1f; /* clear gain taper bits */ |
480 | regs[R_EP2] |= val; | 480 | regs[R_EP2] |= val; |
@@ -502,7 +502,7 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
502 | tda18271_write_regs(fe, R_EP1, 1); | 502 | tda18271_write_regs(fe, R_EP1, 1); |
503 | 503 | ||
504 | /* RF tracking filer correction for VHF_Low band */ | 504 | /* RF tracking filer correction for VHF_Low band */ |
505 | tda18271_calc_rf_cal(&freq, &val); | 505 | tda18271_lookup_rf_cal(&freq, &val); |
506 | 506 | ||
507 | /* VHF_Low band only */ | 507 | /* VHF_Low band only */ |
508 | if (val != 0) { | 508 | if (val != 0) { |
@@ -546,7 +546,7 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
546 | regs[R_EP4] &= ~0x80; /* turn this bit on only for fm */ | 546 | regs[R_EP4] &= ~0x80; /* turn this bit on only for fm */ |
547 | 547 | ||
548 | /* image rejection validity EP5[2:0] */ | 548 | /* image rejection validity EP5[2:0] */ |
549 | tda18271_calc_ir_measure(&freq, &val); | 549 | tda18271_lookup_ir_measure(&freq, &val); |
550 | 550 | ||
551 | regs[R_EP5] &= ~0x07; | 551 | regs[R_EP5] &= ~0x07; |
552 | regs[R_EP5] |= val; | 552 | regs[R_EP5] |= val; |
@@ -554,7 +554,7 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
554 | /* calculate MAIN PLL */ | 554 | /* calculate MAIN PLL */ |
555 | N = freq + ifc; | 555 | N = freq + ifc; |
556 | 556 | ||
557 | tda18271_calc_main_pll(&N, &pd, &d); | 557 | tda18271_lookup_main_pll(&N, &pd, &d); |
558 | 558 | ||
559 | regs[R_MPD] = (0x7f & pd); | 559 | regs[R_MPD] = (0x7f & pd); |
560 | switch (priv->mode) { | 560 | switch (priv->mode) { |