aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/s5h1411.c
diff options
context:
space:
mode:
authorDevin Heitmueller <devin.heitmueller@gmail.com>2008-10-20 09:17:08 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-21 12:31:01 -0400
commitf0d041e50bc6c8a677922d72b010f80af9b23b18 (patch)
tree56bcf5090ce53800bfe2812820e6cac6cb83e22a /drivers/media/dvb/frontends/s5h1411.c
parent1874c443280d61bef1466a30c1e2819656d54eea (diff)
V4L/DVB (9314): s5h1411: Perform s5h1411 soft reset after tuning
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 Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Steven Toth <stoth@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/s5h1411.c')
-rw-r--r--drivers/media/dvb/frontends/s5h1411.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/s5h1411.c b/drivers/media/dvb/frontends/s5h1411.c
index e328d88bcbd4..40e0fedf381e 100644
--- a/drivers/media/dvb/frontends/s5h1411.c
+++ b/drivers/media/dvb/frontends/s5h1411.c
@@ -585,9 +585,6 @@ static int s5h1411_set_frontend(struct dvb_frontend *fe,
585 585
586 s5h1411_enable_modulation(fe, p->u.vsb.modulation); 586 s5h1411_enable_modulation(fe, p->u.vsb.modulation);
587 587
588 /* Allow the demod to settle */
589 msleep(100);
590
591 if (fe->ops.tuner_ops.set_params) { 588 if (fe->ops.tuner_ops.set_params) {
592 if (fe->ops.i2c_gate_ctrl) 589 if (fe->ops.i2c_gate_ctrl)
593 fe->ops.i2c_gate_ctrl(fe, 1); 590 fe->ops.i2c_gate_ctrl(fe, 1);
@@ -598,6 +595,10 @@ static int s5h1411_set_frontend(struct dvb_frontend *fe,
598 fe->ops.i2c_gate_ctrl(fe, 0); 595 fe->ops.i2c_gate_ctrl(fe, 0);
599 } 596 }
600 597
598 /* Issue a reset to the demod so it knows to resync against the
599 newly tuned frequency */
600 s5h1411_softreset(fe);
601
601 return 0; 602 return 0;
602} 603}
603 604