summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorSteven Toth <stoth@linuxtv.org>2008-10-20 09:17:08 -0400
committerSteven Toth <stoth@linuxtv.org>2008-10-20 09:17:08 -0400
commit702a75991fe92586daefdfd2517ed990bb2a6f76 (patch)
tree72a239fd95ee6e363c1828c841c4b876119c5fe7 /linux/drivers/media/dvb
parent37c0bbb8b66b77c28483ce7de81c8ec00d37277f (diff)
downloadmediapointer-dvb-s2-702a75991fe92586daefdfd2517ed990bb2a6f76.tar.gz
mediapointer-dvb-s2-702a75991fe92586daefdfd2517ed990bb2a6f76.tar.bz2
s5h1411: Perform s5h1411 soft reset after tuning
From: Devin Heitmueller <devin.heitmueller@gmail.com> If you instruct the tuner to change frequencies, it can take up to 2500ms to get a demod lock. By performing a soft reset after the tuning call (which is consistent with how the Pinnacle 801e Windows driver behaves), you get a demod lock inside of 300ms Priority: normal Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Steven Toth <stoth@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/s5h1411.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/s5h1411.c b/linux/drivers/media/dvb/frontends/s5h1411.c
index e328d88bc..40e0fedf3 100644
--- a/linux/drivers/media/dvb/frontends/s5h1411.c
+++ b/linux/drivers/media/dvb/frontends/s5h1411.c
@@ -585,9 +585,6 @@ static int s5h1411_set_frontend(struct dvb_frontend *fe,
s5h1411_enable_modulation(fe, p->u.vsb.modulation);
- /* Allow the demod to settle */
- msleep(100);
-
if (fe->ops.tuner_ops.set_params) {
if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 1);
@@ -598,6 +595,10 @@ static int s5h1411_set_frontend(struct dvb_frontend *fe,
fe->ops.i2c_gate_ctrl(fe, 0);
}
+ /* Issue a reset to the demod so it knows to resync against the
+ newly tuned frequency */
+ s5h1411_softreset(fe);
+
return 0;
}