Skip to content
Commit 37151a41 authored by Yuki Tsunashima's avatar Yuki Tsunashima Committed by Takashi Iwai
Browse files

ALSA: pcm: fix lost wakeup event scenarios in snd_pcm_drain



lost wakeup can occur after enabling irq, therefore put task
into interruptible before enabling interrupts,

without this change, task can be put to sleep and snd_pcm_drain
will delay

Fixes: f2b3614c ("ALSA: PCM - Don't check DMA time-out too shortly")
Signed-off-by: default avatarYuki Tsunashima <ytsunashima@jp.adit-jv.com>
Signed-off-by: default avatarSuresh Udipi <sudipi@jp.adit-jv.com>
[ported from 4.9]
Signed-off-by: default avatarAdam Miartus <amiartus@de.adit-jv.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 74bf71ed
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