aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/cx24110.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/cx24110.c')
-rw-r--r--drivers/media/dvb/frontends/cx24110.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/dvb/frontends/cx24110.c b/drivers/media/dvb/frontends/cx24110.c
index bf9c999aa470..5101f10f2d7a 100644
--- a/drivers/media/dvb/frontends/cx24110.c
+++ b/drivers/media/dvb/frontends/cx24110.c
@@ -531,26 +531,27 @@ static int cx24110_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks)
531 return 0; 531 return 0;
532} 532}
533 533
534static int cx24110_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p) 534static int cx24110_set_frontend(struct dvb_frontend *fe)
535{ 535{
536 struct cx24110_state *state = fe->demodulator_priv; 536 struct cx24110_state *state = fe->demodulator_priv;
537 537 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
538 538
539 if (fe->ops.tuner_ops.set_params) { 539 if (fe->ops.tuner_ops.set_params) {
540 fe->ops.tuner_ops.set_params(fe, p); 540 fe->ops.tuner_ops.set_params(fe);
541 if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0); 541 if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0);
542 } 542 }
543 543
544 cx24110_set_inversion (state, p->inversion); 544 cx24110_set_inversion(state, p->inversion);
545 cx24110_set_fec (state, p->u.qpsk.fec_inner); 545 cx24110_set_fec(state, p->fec_inner);
546 cx24110_set_symbolrate (state, p->u.qpsk.symbol_rate); 546 cx24110_set_symbolrate(state, p->symbol_rate);
547 cx24110_writereg(state,0x04,0x05); /* start acquisition */ 547 cx24110_writereg(state,0x04,0x05); /* start acquisition */
548 548
549 return 0; 549 return 0;
550} 550}
551 551
552static int cx24110_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p) 552static int cx24110_get_frontend(struct dvb_frontend *fe)
553{ 553{
554 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
554 struct cx24110_state *state = fe->demodulator_priv; 555 struct cx24110_state *state = fe->demodulator_priv;
555 s32 afc; unsigned sclk; 556 s32 afc; unsigned sclk;
556 557
@@ -571,7 +572,7 @@ static int cx24110_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_par
571 p->frequency += afc; 572 p->frequency += afc;
572 p->inversion = (cx24110_readreg (state, 0x22) & 0x10) ? 573 p->inversion = (cx24110_readreg (state, 0x22) & 0x10) ?
573 INVERSION_ON : INVERSION_OFF; 574 INVERSION_ON : INVERSION_OFF;
574 p->u.qpsk.fec_inner = cx24110_get_fec (state); 575 p->fec_inner = cx24110_get_fec(state);
575 576
576 return 0; 577 return 0;
577} 578}
@@ -623,10 +624,9 @@ error:
623} 624}
624 625
625static struct dvb_frontend_ops cx24110_ops = { 626static struct dvb_frontend_ops cx24110_ops = {
626 627 .delsys = { SYS_DVBS },
627 .info = { 628 .info = {
628 .name = "Conexant CX24110 DVB-S", 629 .name = "Conexant CX24110 DVB-S",
629 .type = FE_QPSK,
630 .frequency_min = 950000, 630 .frequency_min = 950000,
631 .frequency_max = 2150000, 631 .frequency_max = 2150000,
632 .frequency_stepsize = 1011, /* kHz for QPSK frontends */ 632 .frequency_stepsize = 1011, /* kHz for QPSK frontends */