Commit 611cd51c authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] insert set_current_state() before schedule_timeout()

GUS Library
Insert set_current_state() before schedule_timeout(). Without the
insertion, schedule_timeout() returns immediately.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 523b074f
......@@ -333,6 +333,7 @@ static int snd_gf1_pcm_poke_block(snd_gus_card_t *gus, unsigned char *buf,
}
}
if (count > 0 && !in_interrupt()) {
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(1);
if (signal_pending(current))
return -EAGAIN;
......
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