aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda8083.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-18 16:47:09 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 00:58:36 -0400
commitd21eac0385dd11d3118ffd374451916fa413c0df (patch)
treed4fa7e3d701e873ffcdcaa4c65bbe766933b695a /drivers/media/dvb/frontends/tda8083.c
parent58ac7d36179e27d82e067752b792b1cc573fc590 (diff)
V4L/DVB (3851): Convert tda8083 to refactored tuner code
Convert to tuner_ops calls. Remove pll function pointers from structure. Remove unneeded tuner calls. 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/tda8083.c')
-rw-r--r--drivers/media/dvb/frontends/tda8083.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/tda8083.c b/drivers/media/dvb/frontends/tda8083.c
index 91baa9cedd79..0aeaec890296 100644
--- a/drivers/media/dvb/frontends/tda8083.c
+++ b/drivers/media/dvb/frontends/tda8083.c
@@ -293,7 +293,11 @@ static int tda8083_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_par
293{ 293{
294 struct tda8083_state* state = fe->demodulator_priv; 294 struct tda8083_state* state = fe->demodulator_priv;
295 295
296 state->config->pll_set(fe, p); 296 if (fe->ops->tuner_ops.set_params) {
297 fe->ops->tuner_ops.set_params(fe, p);
298 if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0);
299 }
300
297 tda8083_set_inversion (state, p->inversion); 301 tda8083_set_inversion (state, p->inversion);
298 tda8083_set_fec (state, p->u.qpsk.fec_inner); 302 tda8083_set_fec (state, p->u.qpsk.fec_inner);
299 tda8083_set_symbolrate (state, p->u.qpsk.symbol_rate); 303 tda8083_set_symbolrate (state, p->u.qpsk.symbol_rate);
@@ -334,8 +338,6 @@ static int tda8083_init(struct dvb_frontend* fe)
334 for (i=0; i<44; i++) 338 for (i=0; i<44; i++)
335 tda8083_writereg (state, i, tda8083_init_tab[i]); 339 tda8083_writereg (state, i, tda8083_init_tab[i]);
336 340
337 if (state->config->pll_init) state->config->pll_init(fe);
338
339 tda8083_writereg (state, 0x00, 0x3c); 341 tda8083_writereg (state, 0x00, 0x3c);
340 tda8083_writereg (state, 0x00, 0x04); 342 tda8083_writereg (state, 0x00, 0x04);
341 343