Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285523
b: refs/heads/master
c: 41943ea
h: refs/heads/master
i:
  285521: 825a32f
  285519: 37a2ab3
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 9c924ee commit 70f4060
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: d53b5102e3bb4a20ad63fbf16ff1638ea42d648d
refs/heads/master: 41943eaf15b1e18f3800e39d3356f409048c5d41
19 changes: 10 additions & 9 deletions trunk/drivers/media/dvb/frontends/ec100.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ static int ec100_read_reg(struct ec100_state *state, u8 reg, u8 *val)
return 0;
}

static int ec100_set_frontend(struct dvb_frontend *fe,
struct dvb_frontend_parameters *params)
static int ec100_set_frontend(struct dvb_frontend *fe)
{
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct ec100_state *state = fe->demodulator_priv;
int ret;
u8 tmp, tmp2;

deb_info("%s: freq:%d bw:%d\n", __func__, params->frequency,
params->u.ofdm.bandwidth);
deb_info("%s: freq:%d bw:%d\n", __func__, c->frequency,
c->bandwidth_hz);

/* program tuner */
if (fe->ops.tuner_ops.set_params)
Expand All @@ -108,16 +108,16 @@ static int ec100_set_frontend(struct dvb_frontend *fe,
B 0x1b | 0xb7 | 0x00 | 0x49
B 0x1c | 0x55 | 0x64 | 0x72 */

switch (params->u.ofdm.bandwidth) {
case BANDWIDTH_6_MHZ:
switch (c->bandwidth_hz) {
case 6000000:
tmp = 0xb7;
tmp2 = 0x55;
break;
case BANDWIDTH_7_MHZ:
case 7000000:
tmp = 0x00;
tmp2 = 0x64;
break;
case BANDWIDTH_8_MHZ:
case 8000000:
default:
tmp = 0x49;
tmp2 = 0x72;
Expand Down Expand Up @@ -306,6 +306,7 @@ struct dvb_frontend *ec100_attach(const struct ec100_config *config,
EXPORT_SYMBOL(ec100_attach);

static struct dvb_frontend_ops ec100_ops = {
.delsys = { SYS_DVBT },
.info = {
.name = "E3C EC100 DVB-T",
.type = FE_OFDM,
Expand All @@ -321,7 +322,7 @@ static struct dvb_frontend_ops ec100_ops = {
},

.release = ec100_release,
.set_frontend_legacy = ec100_set_frontend,
.set_frontend = ec100_set_frontend,
.get_tune_settings = ec100_get_tune_settings,
.read_status = ec100_read_status,
.read_ber = ec100_read_ber,
Expand Down

0 comments on commit 70f4060

Please sign in to comment.