tree 6f52c066a25e50b20b403cf5816556822eb967b8
parent 80064b803de140a65ca82bba5f0c40309b5a9f5e
author Johannes Stezenbach <[EMAIL PROTECTED]> Fri, 08 Jul 2005 07:57:45 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Fri, 08 Jul 2005 08:23:55 -0700

[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: Johannes Stezenbach <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 drivers/media/dvb/frontends/stv0297.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/media/dvb/frontends/stv0297.c 
b/drivers/media/dvb/frontends/stv0297.c
--- a/drivers/media/dvb/frontends/stv0297.c
+++ b/drivers/media/dvb/frontends/stv0297.c
@@ -617,7 +617,7 @@ static int stv0297_set_frontend(struct d
 
        /* wait for WGAGC lock */
        starttime = jiffies;
-       timeout = jiffies + (200 * HZ) / 1000;
+       timeout = jiffies + msecs_to_jiffies(2000);
        while (time_before(jiffies, timeout)) {
                msleep(10);
                if (stv0297_readreg(state, 0x43) & 0x08)
@@ -629,7 +629,7 @@ static int stv0297_set_frontend(struct d
        msleep(20);
 
        /* wait for equaliser partial convergence */
-       timeout = jiffies + (50 * HZ) / 1000;
+       timeout = jiffies + msecs_to_jiffies(500);
        while (time_before(jiffies, timeout)) {
                msleep(10);
 
@@ -642,7 +642,7 @@ static int stv0297_set_frontend(struct d
        }
 
        /* wait for equaliser full convergence */
-       timeout = jiffies + (delay * HZ) / 1000;
+       timeout = jiffies + msecs_to_jiffies(delay);
        while (time_before(jiffies, timeout)) {
                msleep(10);
 
@@ -659,7 +659,7 @@ static int stv0297_set_frontend(struct d
        stv0297_writereg_mask(state, 0x88, 8, 0);
 
        /* wait for main lock */
-       timeout = jiffies + (20 * HZ) / 1000;
+       timeout = jiffies + msecs_to_jiffies(20);
        while (time_before(jiffies, timeout)) {
                msleep(10);
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to