Commit 16854cdb authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] replace schedule_timeout() with msleep()

EMU8000 driver
Use msleep() instead of schedule_timeout() to guarantee the task
delays as expected.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ea011a39
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment