Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 241959
b: refs/heads/master
c: dcc8a12
h: refs/heads/master
i:
  241957: e31c02e
  241955: b93075b
  241951: 6e76c06
v: v3
  • Loading branch information
Igor M. Liplianin authored and Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 9aa0a37 commit f87f827
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 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: a5bf834b4a29b0c7f813ce1c456563c470d4181f
refs/heads/master: dcc8a122230b1c65ee8ba83536fd53fcaf27884d
18 changes: 12 additions & 6 deletions trunk/drivers/media/dvb/frontends/ds3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,22 +967,21 @@ static int ds3000_set_carrier_offset(struct dvb_frontend *fe,
return 0;
}

static int ds3000_tune(struct dvb_frontend *fe,
static int ds3000_set_frontend(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
{
struct ds3000_state *state = fe->demodulator_priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;

int i;
u8 status, mlpf, mlpf_new, mlpf_max, mlpf_min, nlpf, div4;
fe_status_t status;
u8 mlpf, mlpf_new, mlpf_max, mlpf_min, nlpf, div4;
s32 offset_khz;
u16 value, ndiv;
u32 f3db;

dprintk("%s() ", __func__);

/* Reset status register */
status = 0;
/* Tune */
/* unknown */
ds3000_tuner_writereg(state, 0x07, 0x02);
Expand Down Expand Up @@ -1218,10 +1217,16 @@ static int ds3000_tune(struct dvb_frontend *fe,
return 0;
}

static int ds3000_tune(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
{
return ds3000_set_frontend(fe, p);
}

static enum dvbfe_algo ds3000_get_algo(struct dvb_frontend *fe)
{
dprintk("%s()\n", __func__);
return DVBFE_ALGO_SW;
return DVBFE_ALGO_HW;
}

/*
Expand Down Expand Up @@ -1296,7 +1301,8 @@ static struct dvb_frontend_ops ds3000_ops = {

.set_property = ds3000_set_property,
.get_property = ds3000_get_property,
.set_frontend = ds3000_tune,
.set_frontend = ds3000_set_frontend,
.tune = ds3000_tune,
};

module_param(debug, int, 0644);
Expand Down

0 comments on commit f87f827

Please sign in to comment.