diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-05-07 00:34:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-18 13:23:15 -0400 |
commit | 8511df9ec2ef4c33a6b1e76527d5b47da8bc0bb6 (patch) | |
tree | 5a935b08bc413dca827a2bcf4cb3a5a27c998cd3 /drivers/media/video/saa7134/saa7134-dvb.c | |
parent | 4abe9f9d94e60303c30b1a9bbbc8e6532f6138cb (diff) |
V4L/DVB (5634): Saa7134-dvb: convert philips td1316 handling to use dvb-pll
removed mt352_aver777_tuner_calc_regs, using dvb_pll_attach, instead.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-dvb.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-dvb.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c index 1f50a481de2c..0d66addde423 100644 --- a/drivers/media/video/saa7134/saa7134-dvb.c +++ b/drivers/media/video/saa7134/saa7134-dvb.c | |||
@@ -175,16 +175,6 @@ static int mt352_pinnacle_tuner_set_params(struct dvb_frontend* fe, | |||
175 | return mt352_pinnacle_init(fe); | 175 | return mt352_pinnacle_init(fe); |
176 | } | 176 | } |
177 | 177 | ||
178 | static int mt352_aver777_tuner_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8* pllbuf, int buf_len) | ||
179 | { | ||
180 | if (buf_len < 5) | ||
181 | return -EINVAL; | ||
182 | |||
183 | pllbuf[0] = 0x61; | ||
184 | dvb_pll_configure(&dvb_pll_philips_td1316, pllbuf+1, params); | ||
185 | return 5; | ||
186 | } | ||
187 | |||
188 | static struct mt352_config pinnacle_300i = { | 178 | static struct mt352_config pinnacle_300i = { |
189 | .demod_address = 0x3c >> 1, | 179 | .demod_address = 0x3c >> 1, |
190 | .adc_clock = 20333, | 180 | .adc_clock = 20333, |
@@ -993,7 +983,8 @@ static int dvb_init(struct saa7134_dev *dev) | |||
993 | dev->dvb.frontend = dvb_attach(mt352_attach, &avermedia_777, | 983 | dev->dvb.frontend = dvb_attach(mt352_attach, &avermedia_777, |
994 | &dev->i2c_adap); | 984 | &dev->i2c_adap); |
995 | if (dev->dvb.frontend) { | 985 | if (dev->dvb.frontend) { |
996 | dev->dvb.frontend->ops.tuner_ops.calc_regs = mt352_aver777_tuner_calc_regs; | 986 | dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, |
987 | NULL, &dvb_pll_philips_td1316); | ||
997 | } | 988 | } |
998 | break; | 989 | break; |
999 | case SAA7134_BOARD_MD7134: | 990 | case SAA7134_BOARD_MD7134: |