Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285501
b: refs/heads/master
c: 9b6a132
h: refs/heads/master
i:
  285499: 2f9f798
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 55704ea commit 5866b7c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 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: a552438f544c41e6e4083c3b8633a7a559145083
refs/heads/master: 9b6a132b3d2ad0ca3a1481cb997295c7baf8475e
26 changes: 13 additions & 13 deletions trunk/drivers/media/dvb/frontends/au8522_dig.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,19 +576,19 @@ static int au8522_enable_modulation(struct dvb_frontend *fe,
}

/* Talk to the demod, set the FEC, GUARD, QAM settings etc */
static int au8522_set_frontend(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
static int au8522_set_frontend(struct dvb_frontend *fe)
{
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct au8522_state *state = fe->demodulator_priv;
int ret = -EINVAL;

dprintk("%s(frequency=%d)\n", __func__, p->frequency);
dprintk("%s(frequency=%d)\n", __func__, c->frequency);

if ((state->current_frequency == p->frequency) &&
(state->current_modulation == p->u.vsb.modulation))
if ((state->current_frequency == c->frequency) &&
(state->current_modulation == c->modulation))
return 0;

au8522_enable_modulation(fe, p->u.vsb.modulation);
au8522_enable_modulation(fe, c->modulation);

/* Allow the demod to settle */
msleep(100);
Expand All @@ -604,7 +604,7 @@ static int au8522_set_frontend(struct dvb_frontend *fe,
if (ret < 0)
return ret;

state->current_frequency = p->frequency;
state->current_frequency = c->frequency;

return 0;
}
Expand Down Expand Up @@ -912,12 +912,12 @@ static int au8522_read_ber(struct dvb_frontend *fe, u32 *ber)
}

static int au8522_get_frontend(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
struct dtv_frontend_properties *c)
{
struct au8522_state *state = fe->demodulator_priv;

p->frequency = state->current_frequency;
p->u.vsb.modulation = state->current_modulation;
c->frequency = state->current_frequency;
c->modulation = state->current_modulation;

return 0;
}
Expand Down Expand Up @@ -1010,7 +1010,7 @@ struct dvb_frontend *au8522_attach(const struct au8522_config *config,
EXPORT_SYMBOL(au8522_attach);

static struct dvb_frontend_ops au8522_ops = {

.delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B },
.info = {
.name = "Auvitek AU8522 QAM/8VSB Frontend",
.type = FE_ATSC,
Expand All @@ -1023,8 +1023,8 @@ static struct dvb_frontend_ops au8522_ops = {
.init = au8522_init,
.sleep = au8522_sleep,
.i2c_gate_ctrl = au8522_i2c_gate_ctrl,
.set_frontend_legacy = au8522_set_frontend,
.get_frontend_legacy = au8522_get_frontend,
.set_frontend = au8522_set_frontend,
.get_frontend = au8522_get_frontend,
.get_tune_settings = au8522_get_tune_settings,
.read_status = au8522_read_status,
.read_ber = au8522_read_ber,
Expand Down

0 comments on commit 5866b7c

Please sign in to comment.