aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/nxt200x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/nxt200x.c')
-rw-r--r--drivers/media/dvb/frontends/nxt200x.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c
index eac20650499f..49ca78d883b1 100644
--- a/drivers/media/dvb/frontends/nxt200x.c
+++ b/drivers/media/dvb/frontends/nxt200x.c
@@ -528,9 +528,9 @@ static int nxt2004_load_firmware (struct dvb_frontend* fe, const struct firmware
528 return 0; 528 return 0;
529}; 529};
530 530
531static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe, 531static int nxt200x_setup_frontend_parameters(struct dvb_frontend *fe)
532 struct dvb_frontend_parameters *p)
533{ 532{
533 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
534 struct nxt200x_state* state = fe->demodulator_priv; 534 struct nxt200x_state* state = fe->demodulator_priv;
535 u8 buf[5]; 535 u8 buf[5];
536 536
@@ -546,7 +546,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
546 } 546 }
547 547
548 /* set additional params */ 548 /* set additional params */
549 switch (p->u.vsb.modulation) { 549 switch (p->modulation) {
550 case QAM_64: 550 case QAM_64:
551 case QAM_256: 551 case QAM_256:
552 /* Set punctured clock for QAM */ 552 /* Set punctured clock for QAM */
@@ -566,7 +566,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
566 566
567 if (fe->ops.tuner_ops.calc_regs) { 567 if (fe->ops.tuner_ops.calc_regs) {
568 /* get tuning information */ 568 /* get tuning information */
569 fe->ops.tuner_ops.calc_regs(fe, p, buf, 5); 569 fe->ops.tuner_ops.calc_regs(fe, buf, 5);
570 570
571 /* write frequency information */ 571 /* write frequency information */
572 nxt200x_writetuner(state, buf); 572 nxt200x_writetuner(state, buf);
@@ -576,7 +576,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
576 nxt200x_agc_reset(state); 576 nxt200x_agc_reset(state);
577 577
578 /* set target power level */ 578 /* set target power level */
579 switch (p->u.vsb.modulation) { 579 switch (p->modulation) {
580 case QAM_64: 580 case QAM_64:
581 case QAM_256: 581 case QAM_256:
582 buf[0] = 0x74; 582 buf[0] = 0x74;
@@ -620,7 +620,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
620 } 620 }
621 621
622 /* write sdmx input */ 622 /* write sdmx input */
623 switch (p->u.vsb.modulation) { 623 switch (p->modulation) {
624 case QAM_64: 624 case QAM_64:
625 buf[0] = 0x68; 625 buf[0] = 0x68;
626 break; 626 break;
@@ -714,7 +714,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
714 } 714 }
715 715
716 /* write agc ucgp0 */ 716 /* write agc ucgp0 */
717 switch (p->u.vsb.modulation) { 717 switch (p->modulation) {
718 case QAM_64: 718 case QAM_64:
719 buf[0] = 0x02; 719 buf[0] = 0x02;
720 break; 720 break;
@@ -1203,10 +1203,9 @@ error:
1203} 1203}
1204 1204
1205static struct dvb_frontend_ops nxt200x_ops = { 1205static struct dvb_frontend_ops nxt200x_ops = {
1206 1206 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B },
1207 .info = { 1207 .info = {
1208 .name = "Nextwave NXT200X VSB/QAM frontend", 1208 .name = "Nextwave NXT200X VSB/QAM frontend",
1209 .type = FE_ATSC,
1210 .frequency_min = 54000000, 1209 .frequency_min = 54000000,
1211 .frequency_max = 860000000, 1210 .frequency_max = 860000000,
1212 .frequency_stepsize = 166666, /* stepsize is just a guess */ 1211 .frequency_stepsize = 166666, /* stepsize is just a guess */