Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bc962efa6cd864d8bd29d2634da4ef14873d020c
Commit:     bc962efa6cd864d8bd29d2634da4ef14873d020c
Parent:     90cf9b853281a39555cce8a42fc0fabad75b42a8
Author:     Rene Herman <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 10 23:20:34 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 16:49:25 2007 +0200

    [ALSA] ad1848: replace HZ calculus with msecs_to_jiffies()
    
    If I'm not mistaken, any (new) use of HZ these days is considered a bug so
    while I'm there...
    
    Signed-off-by: Rene Herman <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/isa/ad1848/ad1848_lib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/isa/ad1848/ad1848_lib.c b/sound/isa/ad1848/ad1848_lib.c
index d454d11..c10dfc1 100644
--- a/sound/isa/ad1848/ad1848_lib.c
+++ b/sound/isa/ad1848/ad1848_lib.c
@@ -239,7 +239,7 @@ static void snd_ad1848_mce_down(struct snd_ad1848 *chip)
 #if 0
        printk("(2) jiffies = %li\n", jiffies);
 #endif
-       time = HZ / 4;
+       time = msecs_to_jiffies(250);
        while (snd_ad1848_in(chip, AD1848_TEST_INIT) & 
AD1848_CALIB_IN_PROGRESS) {
                spin_unlock_irqrestore(&chip->reg_lock, flags);
                if (time <= 0) {
@@ -252,7 +252,7 @@ static void snd_ad1848_mce_down(struct snd_ad1848 *chip)
 #if 0
        printk("(3) jiffies = %li\n", jiffies);
 #endif
-       time = HZ / 10;
+       time = msecs_to_jiffies(100);
        while (inb(AD1848P(chip, REGSEL)) & AD1848_INIT) {
                spin_unlock_irqrestore(&chip->reg_lock, flags);
                if (time <= 0) {
-
To unsubscribe from this list: send the line "unsubscribe git-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