mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									c7bfcbb255
								
							
						
					
					
						commit
						5a066cb884
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -1148,6 +1148,7 @@ int snd_pcm_direct_initialize_poll_fd(snd_pcm_direct_t *dmix)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	dmix->timer_events = (1<<SND_TIMER_EVENT_MSUSPEND) |
 | 
						dmix->timer_events = (1<<SND_TIMER_EVENT_MSUSPEND) |
 | 
				
			||||||
			     (1<<SND_TIMER_EVENT_MRESUME) |
 | 
								     (1<<SND_TIMER_EVENT_MRESUME) |
 | 
				
			||||||
 | 
								     (1<<SND_TIMER_EVENT_MSTOP) |
 | 
				
			||||||
			     (1<<SND_TIMER_EVENT_STOP);
 | 
								     (1<<SND_TIMER_EVENT_STOP);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue