Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29901
b: refs/heads/master
c: 261143f
h: refs/heads/master
i:
  29899: ca90f76
v: v3
  • Loading branch information
Andrew de Quincey authored and Mauro Carvalho Chehab committed Jun 25, 2006
1 parent 90afe42 commit 80a7c78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 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: 20b14562852a0d0327b86283d7391f45aa9293ef
refs/heads/master: 261143ff12eadbf17d7497cd471f70cacaca9586
4 changes: 0 additions & 4 deletions trunk/drivers/media/dvb/frontends/dib3000.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ struct dib3000_config
{
/* the demodulator's i2c address */
u8 demod_address;

/* PLL maintenance and the i2c address of the PLL */
int (*pll_init)(struct dvb_frontend *fe);
int (*pll_set)(struct dvb_frontend *fe, struct dvb_frontend_parameters* params);
};

struct dib_fe_xfer_ops
Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/media/dvb/frontends/dib3000mb.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ static int dib3000mb_set_frontend(struct dvb_frontend* fe,
fe_code_rate_t fe_cr = FEC_NONE;
int search_state, seq;

if (tuner && state->config.pll_set) {
state->config.pll_set(fe, fep);
if (tuner && fe->ops->tuner_ops.set_params) {
fe->ops->tuner_ops.set_params(fe, fep);
if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0);

deb_setf("bandwidth: ");
switch (ofdm->bandwidth) {
Expand Down Expand Up @@ -386,9 +387,6 @@ static int dib3000mb_fe_init(struct dvb_frontend* fe, int mobile_mode)

wr(DIB3000MB_REG_DATA_IN_DIVERSITY, DIB3000MB_DATA_DIVERSITY_IN_OFF);

if (state->config.pll_init)
state->config.pll_init(fe);

return 0;
}

Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/media/dvb/frontends/dib3000mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,9 @@ static int dib3000mc_set_frontend(struct dvb_frontend* fe,
int search_state,auto_val;
u16 val;

if (tuner && state->config.pll_set) { /* initial call from dvb */
state->config.pll_set(fe,fep);
if (tuner && fe->ops->tuner_ops.set_params) { /* initial call from dvb */
fe->ops->tuner_ops.set_params(fe, fep);
if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0);

state->last_tuned_freq = fep->frequency;
// if (!scanboost) {
Expand Down Expand Up @@ -642,9 +643,6 @@ static int dib3000mc_fe_init(struct dvb_frontend* fe, int mobile_mode)

set_or(DIB3000MC_REG_CLK_CFG_7,DIB3000MC_CLK_CFG_7_DIV_IN_OFF);

if (state->config.pll_init)
state->config.pll_init(fe);

deb_info("init end\n");
return 0;
}
Expand Down

0 comments on commit 80a7c78

Please sign in to comment.