Commit cbc320d2 authored by Andreas Regel's avatar Andreas Regel Committed by Mauro Carvalho Chehab

V4L/DVB (11598): stv090x: fix missing wakeup in init

Signed-off-by: default avatarAndreas Regel <andreas.regel@gmx.de>
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9629c5b6
...@@ -3880,6 +3880,11 @@ static int stv090x_init(struct dvb_frontend *fe) ...@@ -3880,6 +3880,11 @@ static int stv090x_init(struct dvb_frontend *fe)
const struct stv090x_config *config = state->config; const struct stv090x_config *config = state->config;
u32 reg; u32 reg;
if (stv090x_wakeup(fe) < 0) {
dprintk(FE_ERROR, 1, "Error waking device");
goto err;
}
stv090x_ldpc_mode(state, state->demod_mode); stv090x_ldpc_mode(state, state->demod_mode);
reg = STV090x_READ_DEMOD(state, TNRCFG2); reg = STV090x_READ_DEMOD(state, TNRCFG2);
...@@ -3893,6 +3898,8 @@ static int stv090x_init(struct dvb_frontend *fe) ...@@ -3893,6 +3898,8 @@ static int stv090x_init(struct dvb_frontend *fe)
stv090x_i2c_gate_ctrl(fe, 1); stv090x_i2c_gate_ctrl(fe, 1);
if (config->tuner_set_mode)
config->tuner_set_mode(fe, TUNER_WAKE);
if (config->tuner_init) if (config->tuner_init)
config->tuner_init(fe); config->tuner_init(fe);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment