summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stv090x.c
diff options
context:
space:
mode:
authorAndreas Regel <andreas.regel@gmx.de>2009-04-23 14:59:03 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:20:41 -0300
commitcbc320d2782cbb0c19e67522167843d9eb738722 (patch)
tree4c7c65b3654c2c2b2da39a23082f143bb2d38688 /drivers/media/dvb/frontends/stv090x.c
parent9629c5b69dd016e990603fd7fd9899f0af57610c (diff)
downloadop-kernel-dev-cbc320d2782cbb0c19e67522167843d9eb738722.zip
op-kernel-dev-cbc320d2782cbb0c19e67522167843d9eb738722.tar.gz
V4L/DVB (11598): stv090x: fix missing wakeup in init
Signed-off-by: Andreas Regel <andreas.regel@gmx.de> Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/stv090x.c')
-rw-r--r--drivers/media/dvb/frontends/stv090x.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c
index 6c0378d..9f69317 100644
--- a/drivers/media/dvb/frontends/stv090x.c
+++ b/drivers/media/dvb/frontends/stv090x.c
@@ -3880,6 +3880,11 @@ static int stv090x_init(struct dvb_frontend *fe)
const struct stv090x_config *config = state->config;
u32 reg;
+ if (stv090x_wakeup(fe) < 0) {
+ dprintk(FE_ERROR, 1, "Error waking device");
+ goto err;
+ }
+
stv090x_ldpc_mode(state, state->demod_mode);
reg = STV090x_READ_DEMOD(state, TNRCFG2);
@@ -3893,6 +3898,8 @@ static int stv090x_init(struct dvb_frontend *fe)
stv090x_i2c_gate_ctrl(fe, 1);
+ if (config->tuner_set_mode)
+ config->tuner_set_mode(fe, TUNER_WAKE);
if (config->tuner_init)
config->tuner_init(fe);
OpenPOWER on IntegriCloud