Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285500
b: refs/heads/master
c: a552438
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 2f9f798 commit 55704ea
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: a689e3657d7e82c2271008553c709fc79fb2e038
refs/heads/master: a552438f544c41e6e4083c3b8633a7a559145083
26 changes: 13 additions & 13 deletions trunk/drivers/media/dvb/frontends/atbm8830.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ static void atbm8830_release(struct dvb_frontend *fe)
kfree(state);
}

static int atbm8830_set_fe(struct dvb_frontend *fe,
struct dvb_frontend_parameters *fe_params)
static int atbm8830_set_fe(struct dvb_frontend *fe)
{
struct atbm_state *priv = fe->demodulator_priv;
int i;
Expand Down Expand Up @@ -299,30 +298,30 @@ static int atbm8830_set_fe(struct dvb_frontend *fe,
}

static int atbm8830_get_fe(struct dvb_frontend *fe,
struct dvb_frontend_parameters *fe_params)
struct dtv_frontend_properties *c)
{
dprintk("%s\n", __func__);

/* TODO: get real readings from device */
/* inversion status */
fe_params->inversion = INVERSION_OFF;
c->inversion = INVERSION_OFF;

/* bandwidth */
fe_params->u.ofdm.bandwidth = BANDWIDTH_8_MHZ;
c->bandwidth_hz = 8000000;

fe_params->u.ofdm.code_rate_HP = FEC_AUTO;
fe_params->u.ofdm.code_rate_LP = FEC_AUTO;
c->code_rate_HP = FEC_AUTO;
c->code_rate_LP = FEC_AUTO;

fe_params->u.ofdm.constellation = QAM_AUTO;
c->modulation = QAM_AUTO;

/* transmission mode */
fe_params->u.ofdm.transmission_mode = TRANSMISSION_MODE_AUTO;
c->transmission_mode = TRANSMISSION_MODE_AUTO;

/* guard interval */
fe_params->u.ofdm.guard_interval = GUARD_INTERVAL_AUTO;
c->guard_interval = GUARD_INTERVAL_AUTO;

/* hierarchy */
fe_params->u.ofdm.hierarchy_information = HIERARCHY_NONE;
c->hierarchy = HIERARCHY_NONE;

return 0;
}
Expand Down Expand Up @@ -429,6 +428,7 @@ static int atbm8830_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
}

static struct dvb_frontend_ops atbm8830_ops = {
.delsys = { SYS_DMBTH },
.info = {
.name = "AltoBeam ATBM8830/8831 DMB-TH",
.type = FE_OFDM,
Expand All @@ -449,8 +449,8 @@ static struct dvb_frontend_ops atbm8830_ops = {
.write = NULL,
.i2c_gate_ctrl = atbm8830_i2c_gate_ctrl,

.set_frontend_legacy = atbm8830_set_fe,
.get_frontend_legacy = atbm8830_get_fe,
.set_frontend = atbm8830_set_fe,
.get_frontend = atbm8830_get_fe,
.get_tune_settings = atbm8830_get_tune_settings,

.read_status = atbm8830_read_status,
Expand Down

0 comments on commit 55704ea

Please sign in to comment.