aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stv090x.c
diff options
context:
space:
mode:
authorAndreas Regel <andreas.regel@gmx.de>2010-02-13 14:48:07 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-17 23:46:49 -0400
commit5817ea0c83665dbc117cb7ca637202da0fb1abce (patch)
treedbd3d47d177cdab1c3d8e51e36974415b3baa921 /drivers/media/dvb/frontends/stv090x.c
parent85532d1454dd3df7327d12bf6ca7ef5a00bb1282 (diff)
V4L/DVB: Budget/STV090x/STV6110x: Initialize the demodulator immediately after the tuner is attached
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.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c
index 3cc1be28534e..a461fdff2c9c 100644
--- a/drivers/media/dvb/frontends/stv090x.c
+++ b/drivers/media/dvb/frontends/stv090x.c
@@ -4324,6 +4324,20 @@ static int stv090x_init(struct dvb_frontend *fe)
4324 u32 reg; 4324 u32 reg;
4325 4325
4326 if (state->internal->mclk == 0) { 4326 if (state->internal->mclk == 0) {
4327 /* call tuner init to configure the tuner's clock output
4328 divider directly before setting up the master clock of
4329 the stv090x. */
4330 if (stv090x_i2c_gate_ctrl(state, 1) < 0)
4331 goto err;
4332
4333 if (config->tuner_init) {
4334 if (config->tuner_init(fe) < 0)
4335 goto err_gateoff;
4336 }
4337
4338 if (stv090x_i2c_gate_ctrl(state, 0) < 0)
4339 goto err;
4340
4327 stv090x_set_mclk(state, 135000000, config->xtal); /* 135 Mhz */ 4341 stv090x_set_mclk(state, 135000000, config->xtal); /* 135 Mhz */
4328 msleep(5); 4342 msleep(5);
4329 if (stv090x_write_reg(state, STV090x_SYNTCTRL, 4343 if (stv090x_write_reg(state, STV090x_SYNTCTRL,