Skip to contentSkip to conversation

pcm: dmix: Don't ignore SND_TIMER_EVENT_MSTOP

PATCH New Takashi Iwai 1 participant 1 message Nov 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 src/pcm/pcm_direct.c | 1 +
 1 file changed, 1 insertion(+)
src/pcm/pcm_direct.c +1 -0
index 8e37bcba5e19..195fddf06cda 100644
@@ -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);
 
 	/*
Signature · 1 line
2.1.3