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, 5 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/dib7000p.c b/drivers/media/dvb/frontends/dib7000p.c
index f45bcfc51cf8..0396a6f31ef8 100644
--- a/drivers/media/dvb/frontends/dib7000p.c
+++ b/drivers/media/dvb/frontends/dib7000p.c
@@ -1128,8 +1128,9 @@ static int dib7000p_set_frontend(struct dvb_frontend* fe,
1128 struct dvb_frontend_parameters *fep) 1128 struct dvb_frontend_parameters *fep)
1129{ 1129{
1130 struct dib7000p_state *state = fe->demodulator_priv; 1130 struct dib7000p_state *state = fe->demodulator_priv;
1131 int time; 1131 int time, ret;
1132 1132
1133 dib7000p_set_output_mode(state, OUTMODE_HIGH_Z);
1133 state->current_bandwidth = fep->u.ofdm.bandwidth; 1134 state->current_bandwidth = fep->u.ofdm.bandwidth;
1134 dib7000p_set_bandwidth(state, BANDWIDTH_TO_KHZ(fep->u.ofdm.bandwidth)); 1135 dib7000p_set_bandwidth(state, BANDWIDTH_TO_KHZ(fep->u.ofdm.bandwidth));
1135 1136
@@ -1166,10 +1167,11 @@ static int dib7000p_set_frontend(struct dvb_frontend* fe,
1166 dib7000p_get_frontend(fe, fep); 1167 dib7000p_get_frontend(fe, fep);
1167 } 1168 }
1168 1169
1170 ret = dib7000p_tune(fe, fep);
1171
1169 /* make this a config parameter */ 1172 /* make this a config parameter */
1170 dib7000p_set_output_mode(state, OUTMODE_MPEG2_FIFO); 1173 dib7000p_set_output_mode(state, OUTMODE_MPEG2_FIFO);
1171 1174 return ret;
1172 return dib7000p_tune(fe, fep);
1173} 1175}
1174 1176
1175static int dib7000p_read_status(struct dvb_frontend *fe, fe_status_t *stat) 1177static int dib7000p_read_status(struct dvb_frontend *fe, fe_status_t *stat)