diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-19 08:02:56 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-19 08:02:56 -0200 |
commit | 552e2e07b1a710e0d997c749c220cfb4637c0745 (patch) | |
tree | db49160325ac795b5449b69b5d1c96a61829593d /linux/drivers/media/video/tea5767.c | |
parent | e2517f5ac0ad6762952bec36a9ed14c84f5b7cbe (diff) | |
download | mediapointer-dvb-s2-552e2e07b1a710e0d997c749c220cfb4637c0745.tar.gz mediapointer-dvb-s2-552e2e07b1a710e0d997c749c220cfb4637c0745.tar.bz2 |
Add support for changing TEA5767_PLLREF_ENABLE via config
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/tea5767.c')
-rw-r--r-- | linux/drivers/media/video/tea5767.c | 6 |
1 files changed, 4 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: |