Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285556
b: refs/heads/master
c: 81931e9
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 1d0b42f commit 030379b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6714049e04af727775600b28ee11cae05e37e4b7
refs/heads/master: 81931e940e72e0324968a1afdd555b8c17456dba
16 changes: 8 additions & 8 deletions trunk/drivers/media/dvb/frontends/nxt200x.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ static int nxt2004_load_firmware (struct dvb_frontend* fe, const struct firmware
return 0;
};

static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
struct dvb_frontend_parameters *p)
static int nxt200x_setup_frontend_parameters(struct dvb_frontend *fe)
{
struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct nxt200x_state* state = fe->demodulator_priv;
u8 buf[5];

Expand All @@ -546,7 +546,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
}

/* set additional params */
switch (p->u.vsb.modulation) {
switch (p->modulation) {
case QAM_64:
case QAM_256:
/* Set punctured clock for QAM */
Expand Down Expand Up @@ -576,7 +576,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
nxt200x_agc_reset(state);

/* set target power level */
switch (p->u.vsb.modulation) {
switch (p->modulation) {
case QAM_64:
case QAM_256:
buf[0] = 0x74;
Expand Down Expand Up @@ -620,7 +620,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
}

/* write sdmx input */
switch (p->u.vsb.modulation) {
switch (p->modulation) {
case QAM_64:
buf[0] = 0x68;
break;
Expand Down Expand Up @@ -714,7 +714,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
}

/* write agc ucgp0 */
switch (p->u.vsb.modulation) {
switch (p->modulation) {
case QAM_64:
buf[0] = 0x02;
break;
Expand Down Expand Up @@ -1203,7 +1203,7 @@ struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config,
}

static struct dvb_frontend_ops nxt200x_ops = {

.delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B },
.info = {
.name = "Nextwave NXT200X VSB/QAM frontend",
.type = FE_ATSC,
Expand All @@ -1220,7 +1220,7 @@ static struct dvb_frontend_ops nxt200x_ops = {
.init = nxt200x_init,
.sleep = nxt200x_sleep,

.set_frontend_legacy = nxt200x_setup_frontend_parameters,
.set_frontend = nxt200x_setup_frontend_parameters,
.get_tune_settings = nxt200x_get_tune_settings,

.read_status = nxt200x_read_status,
Expand Down

0 comments on commit 030379b

Please sign in to comment.