summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2009-04-23 21:59:03 +0400
committerManu Abraham <manu@linuxtv.org>2009-04-23 21:59:03 +0400
commitebd9024f2b351ec4874da20b73bbb6ea601b0702 (patch)
tree10a07ba374e7a518b8c482fd90b94f1d78304360 /linux
parentfefe9f0c6dc0858fd05f26da9230beb27aba3663 (diff)
downloadmediapointer-dvb-s2-ebd9024f2b351ec4874da20b73bbb6ea601b0702.tar.gz
mediapointer-dvb-s2-ebd9024f2b351ec4874da20b73bbb6ea601b0702.tar.bz2
Fix missing wakeup in init
From: Andreas Regel <andreas.regel@gmx.de> Signed-off-by: Andreas Regel <andreas.regel@gmx.de> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/frontends/stv090x.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv090x.c b/linux/drivers/media/dvb/frontends/stv090x.c
index 0635f3355..28ab19c22 100644
--- a/linux/drivers/media/dvb/frontends/stv090x.c
+++ b/linux/drivers/media/dvb/frontends/stv090x.c
@@ -4665,6 +4665,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);
@@ -4678,6 +4683,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);