vserver 2.0 rc7
[linux-2.6.git] / sound / isa / sb / emu8000.c
index 9a668da..028af40 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/ioport.h>
+#include <linux/delay.h>
 #include <sound/core.h>
 #include <sound/emu8000.h>
 #include <sound/emu8000_reg.h>
@@ -355,8 +356,7 @@ init_arrays(emu8000_t *emu)
 {
        send_array(emu, init1, ARRAY_SIZE(init1)/4);
 
-       set_current_state(TASK_INTERRUPTIBLE);
-       schedule_timeout((HZ * (44099 + 1024)) / 44100); /* wait for 1024 clocks */
+       msleep((1024 * 1000) / 44100); /* wait for 1024 clocks */
        send_array(emu, init2, ARRAY_SIZE(init2)/4);
        send_array(emu, init3, ARRAY_SIZE(init3)/4);