aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/dib7000p.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/dib7000p.c')
-rw-r--r--drivers/media/dvb/frontends/dib7000p.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/dib7000p.c b/drivers/media/dvb/frontends/dib7000p.c
index 47c23e29753e..1a0142e0d741 100644
--- a/drivers/media/dvb/frontends/dib7000p.c
+++ b/drivers/media/dvb/frontends/dib7000p.c
@@ -1168,7 +1168,7 @@ static int dib7000p_set_frontend(struct dvb_frontend* fe,
1168 ret = dib7000p_tune(fe, fep); 1168 ret = dib7000p_tune(fe, fep);
1169 1169
1170 /* make this a config parameter */ 1170 /* make this a config parameter */
1171 dib7000p_set_output_mode(state, OUTMODE_MPEG2_FIFO); 1171 dib7000p_set_output_mode(state, state->cfg.output_mode);
1172 return ret; 1172 return ret;
1173} 1173}
1174 1174
@@ -1330,6 +1330,12 @@ struct dvb_frontend * dib7000p_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr,
1330 st->gpio_val = cfg->gpio_val; 1330 st->gpio_val = cfg->gpio_val;
1331 st->gpio_dir = cfg->gpio_dir; 1331 st->gpio_dir = cfg->gpio_dir;
1332 1332
1333 /* Ensure the output mode remains at the previous default if it's
1334 * not specifically set by the caller.
1335 */
1336 if (st->cfg.output_mode != OUTMODE_MPEG2_SERIAL)
1337 st->cfg.output_mode = OUTMODE_MPEG2_FIFO;
1338
1333 demod = &st->demod; 1339 demod = &st->demod;
1334 demod->demodulator_priv = st; 1340 demod->demodulator_priv = st;
1335 memcpy(&st->demod.ops, &dib7000p_ops, sizeof(struct dvb_frontend_ops)); 1341 memcpy(&st->demod.ops, &dib7000p_ops, sizeof(struct dvb_frontend_ops));