]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: fix lost wakeup event scenarios in snd_pcm_drain
authorYuki Tsunashima <ytsunashima@jp.adit-jv.com>
Mon, 29 Jul 2019 15:10:36 +0000 (17:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Jul 2019 17:05:42 +0000 (19:05 +0200)
commit57a28d5d382617017d84b7e4d8d7a9d3b902d577
tree8cd5c7dde9e5f8378a4cceff7015c00e155675f6
parent8ae50bfc11df0c548a62e60724e8c552a9a16d47
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: a7b6a16f3994 ("ALSA: PCM - Don't check DMA time-out too shortly")
Signed-off-by: Yuki Tsunashima <ytsunashima@jp.adit-jv.com>
Signed-off-by: Suresh Udipi <sudipi@jp.adit-jv.com>
[ported from 4.9]
Signed-off-by: Adam Miartus <amiartus@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c