summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/budget.c
diff options
context:
space:
mode:
authorAndreas Regel2010-02-13 20:48:07 +0100
committerMauro Carvalho Chehab2010-05-18 05:46:49 +0200
commit5817ea0c83665dbc117cb7ca637202da0fb1abce (patch)
treedbd3d47d177cdab1c3d8e51e36974415b3baa921 /drivers/media/dvb/ttpci/budget.c
parentV4L/DVB: [STV090x] Use gate control, while tuner is being accessed (diff)
downloadkernel-qcow2-linux-5817ea0c83665dbc117cb7ca637202da0fb1abce.tar.gz
kernel-qcow2-linux-5817ea0c83665dbc117cb7ca637202da0fb1abce.tar.xz
kernel-qcow2-linux-5817ea0c83665dbc117cb7ca637202da0fb1abce.zip
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/ttpci/budget.c')
-rw-r--r--drivers/media/dvb/ttpci/budget.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/dvb/ttpci/budget.c b/drivers/media/dvb/ttpci/budget.c
index e5cb1022d9db..f5db13d8b990 100644
--- a/drivers/media/dvb/ttpci/budget.c
+++ b/drivers/media/dvb/ttpci/budget.c
@@ -640,6 +640,12 @@ static void frontend_init(struct budget *budget)
tt1600_stv090x_config.tuner_set_refclk = ctl->tuner_set_refclk;
tt1600_stv090x_config.tuner_get_status = ctl->tuner_get_status;
+ /* call the init function once to initialize
+ tuner's clock output divider and demod's
+ master clock */
+ if (budget->dvb_frontend->ops.init)
+ budget->dvb_frontend->ops.init(budget->dvb_frontend);
+
dvb_attach(isl6423_attach,
budget->dvb_frontend,
&budget->i2c_adap,