提交 48e4cc2d 编写于 作者: J Johannes Stezenbach 提交者: Linus Torvalds

[PATCH] dvb: DVB update

Increase some timeouts by a factor of 10 as suggested by Mikko Hamalainen and
Timo Ketolainen, to improve tuning for QAM128 / weak signal.
Signed-off-by: NJohannes Stezenbach <js@linuxtv.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 80064b80
...@@ -617,7 +617,7 @@ static int stv0297_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_par ...@@ -617,7 +617,7 @@ static int stv0297_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_par
/* wait for WGAGC lock */ /* wait for WGAGC lock */
starttime = jiffies; starttime = jiffies;
timeout = jiffies + (200 * HZ) / 1000; timeout = jiffies + msecs_to_jiffies(2000);
while (time_before(jiffies, timeout)) { while (time_before(jiffies, timeout)) {
msleep(10); msleep(10);
if (stv0297_readreg(state, 0x43) & 0x08) if (stv0297_readreg(state, 0x43) & 0x08)
...@@ -629,7 +629,7 @@ static int stv0297_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_par ...@@ -629,7 +629,7 @@ static int stv0297_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_par
msleep(20); msleep(20);
/* wait for equaliser partial convergence */ /* wait for equaliser partial convergence */
timeout = jiffies + (50 * HZ) / 1000; timeout = jiffies + msecs_to_jiffies(500);
while (time_before(jiffies, timeout)) { while (time_before(jiffies, timeout)) {
msleep(10); msleep(10);
...@@ -642,7 +642,7 @@ static int stv0297_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_par ...@@ -642,7 +642,7 @@ static int stv0297_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_par
} }
/* wait for equaliser full convergence */ /* wait for equaliser full convergence */
timeout = jiffies + (delay * HZ) / 1000; timeout = jiffies + msecs_to_jiffies(delay);
while (time_before(jiffies, timeout)) { while (time_before(jiffies, timeout)) {
msleep(10); msleep(10);
...@@ -659,7 +659,7 @@ static int stv0297_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_par ...@@ -659,7 +659,7 @@ static int stv0297_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_par
stv0297_writereg_mask(state, 0x88, 8, 0); stv0297_writereg_mask(state, 0x88, 8, 0);
/* wait for main lock */ /* wait for main lock */
timeout = jiffies + (20 * HZ) / 1000; timeout = jiffies + msecs_to_jiffies(20);
while (time_before(jiffies, timeout)) { while (time_before(jiffies, timeout)) {
msleep(10); msleep(10);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册