diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-05-07 00:34:36 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-05-07 00:34:36 -0400 |
commit | 79125cfbe9ab0148b105faccb649ee20c99c4898 (patch) | |
tree | b9aae21967019154bb993c0b0b04229b097d71b6 /linux/drivers/media/video/saa7134 | |
parent | a9131e180377070115d9d7d1aa4e76c5906a81fd (diff) | |
download | mediapointer-dvb-s2-79125cfbe9ab0148b105faccb649ee20c99c4898.tar.gz mediapointer-dvb-s2-79125cfbe9ab0148b105faccb649ee20c99c4898.tar.bz2 |
saa7134-dvb: convert philips td1316 handling to properly use dvb-pll
From: Michael Krufky <mkrufky@linuxtv.org>
removed mt352_aver777_tuner_calc_regs, using dvb_pll_attach, instead.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/saa7134')
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-dvb.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-dvb.c b/linux/drivers/media/video/saa7134/saa7134-dvb.c index 1b6e9ac8b..f2bb3a3b1 100644 --- a/linux/drivers/media/video/saa7134/saa7134-dvb.c +++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c @@ -176,16 +176,6 @@ static int mt352_pinnacle_tuner_set_params(struct dvb_frontend* fe, return mt352_pinnacle_init(fe); } -static int mt352_aver777_tuner_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8* pllbuf, int buf_len) -{ - if (buf_len < 5) - return -EINVAL; - - pllbuf[0] = 0x61; - dvb_pll_configure(&dvb_pll_philips_td1316, pllbuf+1, params); - return 5; -} - static struct mt352_config pinnacle_300i = { .demod_address = 0x3c >> 1, .adc_clock = 20333, @@ -994,7 +984,8 @@ static int dvb_init(struct saa7134_dev *dev) dev->dvb.frontend = dvb_attach(mt352_attach, &avermedia_777, &dev->i2c_adap); if (dev->dvb.frontend) { - dev->dvb.frontend->ops.tuner_ops.calc_regs = mt352_aver777_tuner_calc_regs; + dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, + NULL, &dvb_pll_philips_td1316); } break; case SAA7134_BOARD_MD7134: |