diff options
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/tea5767.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/video/tea5767.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tea5767.c b/linux/drivers/media/video/tea5767.c index e45e4ed55..e2e67247e 100644 --- a/linux/drivers/media/video/tea5767.c +++ b/linux/drivers/media/video/tea5767.c @@ -236,6 +236,10 @@ static int set_radio_freq(struct dvb_frontend *fe, if (priv->ctrl.deemph_75) buffer[4] |= TEA5767_DEEMPH_75; + if (priv->ctrl.pllref) + buffer[4] |= TEA5767_PLLREF_ENABLE; + + /* Rounds freq to next decimal value - for 62.5 KHz step */ /* frq = 20*(frq/16)+radio_frq[frq%16]; */ @@ -243,13 +247,11 @@ static int set_radio_freq(struct dvb_frontend *fe, case TEA5767_HIGH_LO_13MHz: tuner_dbg("radio HIGH LO inject xtal @ 13 MHz\n"); buffer[2] |= TEA5767_HIGH_LO_INJECT; - buffer[4] |= TEA5767_PLLREF_ENABLE; div = (frq * (4000 / 16) + 700000 + 225000 + 25000) / 50000; break; case TEA5767_LOW_LO_13MHz: tuner_dbg("radio LOW LO inject xtal @ 13 MHz\n"); - buffer[4] |= TEA5767_PLLREF_ENABLE; div = (frq * (4000 / 16) - 700000 - 225000 + 25000) / 50000; break; case TEA5767_LOW_LO_32768: diff --git a/linux/drivers/media/video/tea5767.h b/linux/drivers/media/video/tea5767.h index 2447a5dc0..a44451f61 100644 --- a/linux/drivers/media/video/tea5767.h +++ b/linux/drivers/media/video/tea5767.h @@ -35,6 +35,7 @@ struct tea5767_ctrl { unsigned int soft_mute:1; unsigned int japan_band:1; unsigned int deemph_75:1; + unsigned int pllref:1; enum tea5767_xtal xtal_freq; }; |