[ALSA] sound/pci: fix-up sleeping paths
[linux-2.6.git] / sound / pci / intel8x0.c
index c3c3b68b45402e03b92a8e716a1785930eedc273..7c806bd9cc90a7c647ac128270366f440f0c8b48 100644 (file)
@@ -2464,8 +2464,7 @@ static void __devinit intel8x0_measure_ac97_clock(intel8x0_t *chip)
        }
        do_gettimeofday(&start_time);
        spin_unlock_irq(&chip->reg_lock);
-       set_current_state(TASK_UNINTERRUPTIBLE);
-       schedule_timeout(HZ / 20);
+       msleep(50);
        spin_lock_irq(&chip->reg_lock);
        /* check the position */
        pos = ichdev->fragsize1;