diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-11-06 12:12:02 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-06 12:12:02 +0100 |
commit | 5a066cb884815ab48924da8f70514d587400dd6a (patch) | |
tree | 67a507ef3b6a96e669754a6fcf0287ac7311209f | |
parent | c7bfcbb25548db39299488e285b510a174231076 (diff) | |
download | alsa-lib-5a066cb884815ab48924da8f70514d587400dd6a.tar.gz |
pcm: dmix: Don't ignore SND_TIMER_EVENT_MSTOP
When a slave PCM gets an error like XRUN, it stops and notifies with
SND_TIMER_EVENT_MSTOP event. But the current code filters out this
type and eventually hang due to the empty timer queue. The fix is to
just add this event type to the filter bit mask.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | src/pcm/pcm_direct.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pcm/pcm_direct.c b/src/pcm/pcm_direct.c index 8e37bcba..195fddf0 100644 --- a/src/pcm/pcm_direct.c +++ b/src/pcm/pcm_direct.c @@ -1148,6 +1148,7 @@ int snd_pcm_direct_initialize_poll_fd(snd_pcm_direct_t *dmix) dmix->timer_events = (1<<SND_TIMER_EVENT_MSUSPEND) | (1<<SND_TIMER_EVENT_MRESUME) | + (1<<SND_TIMER_EVENT_MSTOP) | (1<<SND_TIMER_EVENT_STOP); /* |