Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Johannes Stezenbach and committed by
Linus Torvalds
48e4cc2d 80064b80

+4 -4
+4 -4
drivers/media/dvb/frontends/stv0297.c
··· 617 617 618 618 /* wait for WGAGC lock */ 619 619 starttime = jiffies; 620 - timeout = jiffies + (200 * HZ) / 1000; 620 + timeout = jiffies + msecs_to_jiffies(2000); 621 621 while (time_before(jiffies, timeout)) { 622 622 msleep(10); 623 623 if (stv0297_readreg(state, 0x43) & 0x08) ··· 629 629 msleep(20); 630 630 631 631 /* wait for equaliser partial convergence */ 632 - timeout = jiffies + (50 * HZ) / 1000; 632 + timeout = jiffies + msecs_to_jiffies(500); 633 633 while (time_before(jiffies, timeout)) { 634 634 msleep(10); 635 635 ··· 642 642 } 643 643 644 644 /* wait for equaliser full convergence */ 645 - timeout = jiffies + (delay * HZ) / 1000; 645 + timeout = jiffies + msecs_to_jiffies(delay); 646 646 while (time_before(jiffies, timeout)) { 647 647 msleep(10); 648 648 ··· 659 659 stv0297_writereg_mask(state, 0x88, 8, 0); 660 660 661 661 /* wait for main lock */ 662 - timeout = jiffies + (20 * HZ) / 1000; 662 + timeout = jiffies + msecs_to_jiffies(20); 663 663 while (time_before(jiffies, timeout)) { 664 664 msleep(10); 665 665