summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda8290.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-11-23 13:08:11 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-11-23 13:08:11 -0500
commit5b449be766ada1c8632847836e2d018d426ef80d (patch)
tree9a448c4f22e804ded5a8a367c12cd18959d49dd1 /linux/drivers/media/video/tda8290.c
parent1981777f44ff9cf7900677b77780ff372ec69b38 (diff)
downloadmediapointer-dvb-s2-5b449be766ada1c8632847836e2d018d426ef80d.tar.gz
mediapointer-dvb-s2-5b449be766ada1c8632847836e2d018d426ef80d.tar.bz2
tda8290: force tuner init after attach
From: Michael Krufky <mkrufky@linuxtv.org> Force tuner init after attach, then sleep until use. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/tda8290.c')
-rw-r--r--linux/drivers/media/video/tda8290.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c
index 7f59da01b..b6fdc01eb 100644
--- a/linux/drivers/media/video/tda8290.c
+++ b/linux/drivers/media/video/tda8290.c
@@ -628,13 +628,13 @@ static int tda829x_find_tuner(struct dvb_frontend *fe)
tda827x_attach(&t->fe, priv->tda827x_addr,
priv->i2c_props.adap, &priv->cfg);
-
- /* FIXME: tda827x module doesn't probe the tuner until
- * tda827x_initial_sleep is called
- */
- if (t->fe.ops.tuner_ops.sleep)
- t->fe.ops.tuner_ops.sleep(&t->fe);
}
+ if (t->fe.ops.tuner_ops.init)
+ t->fe.ops.tuner_ops.init(&t->fe);
+
+ if (t->fe.ops.tuner_ops.sleep)
+ t->fe.ops.tuner_ops.sleep(&t->fe);
+
ops->i2c_gate_ctrl(fe, 0);
switch (priv->ver) {