aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/mt352.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-18 16:47:10 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 00:58:47 -0400
commitd1544ecb3b0589089ddb928affa7bd4255f9442e (patch)
tree9566aea55f2ef8dccabb87532abe9f0e089997f7 /drivers/media/dvb/frontends/mt352.c
parentb800aae382bc3f79045ea544ad77bf03398d4443 (diff)
V4L/DVB (3861): Convert mt352 to refactored tuner code
Convert to tuner_ops calls. Remove pll function pointer from structure. Use standardised pllbuf function. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/mt352.c')
-rw-r--r--drivers/media/dvb/frontends/mt352.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/mt352.c b/drivers/media/dvb/frontends/mt352.c
index aaaec909ddf8..a7a347a3cad0 100644
--- a/drivers/media/dvb/frontends/mt352.c
+++ b/drivers/media/dvb/frontends/mt352.c
@@ -286,9 +286,12 @@ static int mt352_set_parameters(struct dvb_frontend* fe,
286 286
287 mt352_calc_nominal_rate(state, op->bandwidth, buf+4); 287 mt352_calc_nominal_rate(state, op->bandwidth, buf+4);
288 mt352_calc_input_freq(state, buf+6); 288 mt352_calc_input_freq(state, buf+6);
289 state->config.pll_set(fe, param, buf+8);
290 289
291 mt352_write(fe, buf, sizeof(buf)); 290 if (fe->ops->tuner_ops.pllbuf) {
291 fe->ops->tuner_ops.pllbuf(fe, param, buf+8, 5);
292 buf[8] <<= 1;
293 mt352_write(fe, buf, sizeof(buf));
294 }
292 if (state->config.no_tuner) { 295 if (state->config.no_tuner) {
293 /* start decoding */ 296 /* start decoding */
294 mt352_write(fe, fsm_go, 2); 297 mt352_write(fe, fsm_go, 2);