Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92744
b: refs/heads/master
c: a38d6e3
h: refs/heads/master
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 4dfda45 commit e798ad2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 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: 5aa2110f3f33feb4a0c67a4996dc400dc594bc1d
refs/heads/master: a38d6e37c0bc073bae5eff37c939978974ea9712
8 changes: 7 additions & 1 deletion trunk/drivers/media/dvb/frontends/dib7000p.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ static int dib7000p_set_frontend(struct dvb_frontend* fe,
ret = dib7000p_tune(fe, fep);

/* make this a config parameter */
dib7000p_set_output_mode(state, OUTMODE_MPEG2_FIFO);
dib7000p_set_output_mode(state, state->cfg.output_mode);
return ret;
}

Expand Down Expand Up @@ -1330,6 +1330,12 @@ struct dvb_frontend * dib7000p_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr,
st->gpio_val = cfg->gpio_val;
st->gpio_dir = cfg->gpio_dir;

/* Ensure the output mode remains at the previous default if it's
* not specifically set by the caller.
*/
if (st->cfg.output_mode != OUTMODE_MPEG2_SERIAL)
st->cfg.output_mode = OUTMODE_MPEG2_FIFO;

demod = &st->demod;
demod->demodulator_priv = st;
memcpy(&st->demod.ops, &dib7000p_ops, sizeof(struct dvb_frontend_ops));
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/dvb/frontends/dib7000p.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ struct dib7000p_config {
u8 spur_protect;

int (*agc_control) (struct dvb_frontend *, u8 before);

u8 output_mode;
};

#define DEFAULT_DIB7000P_I2C_ADDRESS 18
Expand Down

0 comments on commit e798ad2

Please sign in to comment.