diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-05-16 16:22:02 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 01:00:34 -0400 |
commit | 0463f12c5cdc3d5577002826c302471b95b2532c (patch) | |
tree | d63dd02cfe8ec2cc424bedc84c3e461d8a7977b5 /drivers/media/video/saa7134/saa7134-dvb.c | |
parent | 976e3483799ce5f718753d67454378d46500f0da (diff) |
V4L/DVB (4032): Fix Pinnacle 300i
I had broken the mt352 tuning when a non-directly connected PLL was used -
uncommon, but this is what is used on the pinnacle card.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
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 | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c index f2b155a2299d..716b829c460f 100644 --- a/drivers/media/video/saa7134/saa7134-dvb.c +++ b/drivers/media/video/saa7134/saa7134-dvb.c | |||
@@ -132,9 +132,8 @@ static int mt352_aver777_init(struct dvb_frontend* fe) | |||
132 | return 0; | 132 | return 0; |
133 | } | 133 | } |
134 | 134 | ||
135 | static int mt352_pinnacle_tuner_calc_regs(struct dvb_frontend* fe, | 135 | static int mt352_pinnacle_tuner_set_params(struct dvb_frontend* fe, |
136 | struct dvb_frontend_parameters* params, | 136 | struct dvb_frontend_parameters* params) |
137 | u8* pllbuf, int buf_len) | ||
138 | { | 137 | { |
139 | u8 off[] = { 0x00, 0xf1}; | 138 | u8 off[] = { 0x00, 0xf1}; |
140 | u8 on[] = { 0x00, 0x71}; | 139 | u8 on[] = { 0x00, 0x71}; |
@@ -143,9 +142,6 @@ static int mt352_pinnacle_tuner_calc_regs(struct dvb_frontend* fe, | |||
143 | struct saa7134_dev *dev = fe->dvb->priv; | 142 | struct saa7134_dev *dev = fe->dvb->priv; |
144 | struct v4l2_frequency f; | 143 | struct v4l2_frequency f; |
145 | 144 | ||
146 | if (buf_len < 5) | ||
147 | return -EINVAL; | ||
148 | |||
149 | /* set frequency (mt2050) */ | 145 | /* set frequency (mt2050) */ |
150 | f.tuner = 0; | 146 | f.tuner = 0; |
151 | f.type = V4L2_TUNER_DIGITAL_TV; | 147 | f.type = V4L2_TUNER_DIGITAL_TV; |
@@ -162,13 +158,7 @@ static int mt352_pinnacle_tuner_calc_regs(struct dvb_frontend* fe, | |||
162 | pinnacle_antenna_pwr(dev, antenna_pwr); | 158 | pinnacle_antenna_pwr(dev, antenna_pwr); |
163 | 159 | ||
164 | /* mt352 setup */ | 160 | /* mt352 setup */ |
165 | mt352_pinnacle_init(fe); | 161 | return mt352_pinnacle_init(fe); |
166 | pllbuf[0] = 0x61; | ||
167 | pllbuf[1] = 0x00; | ||
168 | pllbuf[2] = 0x00; | ||
169 | pllbuf[3] = 0x80; | ||
170 | pllbuf[4] = 0x00; | ||
171 | return 5; | ||
172 | } | 162 | } |
173 | 163 | ||
174 | static int mt352_aver777_tuner_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8* pllbuf, int buf_len) | 164 | static int mt352_aver777_tuner_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8* pllbuf, int buf_len) |
@@ -1025,7 +1015,7 @@ static int dvb_init(struct saa7134_dev *dev) | |||
1025 | dev->dvb.frontend = mt352_attach(&pinnacle_300i, | 1015 | dev->dvb.frontend = mt352_attach(&pinnacle_300i, |
1026 | &dev->i2c_adap); | 1016 | &dev->i2c_adap); |
1027 | if (dev->dvb.frontend) { | 1017 | if (dev->dvb.frontend) { |
1028 | dev->dvb.frontend->ops->tuner_ops.calc_regs = mt352_pinnacle_tuner_calc_regs; | 1018 | dev->dvb.frontend->ops->tuner_ops.set_params = mt352_pinnacle_tuner_set_params; |
1029 | } | 1019 | } |
1030 | break; | 1020 | break; |
1031 | 1021 | ||