mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fix non-tread mode with PCM direct plugins
tread=0 wasn't set properly for very old ALSA drivers with no timer tread support. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									118fedb90a
								
							
						
					
					
						commit
						ddf063f499
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1107,7 +1107,7 @@ int snd_pcm_direct_initialize_poll_fd(snd_pcm_direct_t *dmix)
 | 
			
		|||
				snd_pcm_info_get_subdevice(info) * 2 + capture);
 | 
			
		||||
	ret = snd_timer_open(&dmix->timer, name, SND_TIMER_OPEN_NONBLOCK | SND_TIMER_OPEN_TREAD);
 | 
			
		||||
	if (ret < 0) {
 | 
			
		||||
		dmix->tread = 1;
 | 
			
		||||
		dmix->tread = 0;
 | 
			
		||||
		ret = snd_timer_open(&dmix->timer, name, SND_TIMER_OPEN_NONBLOCK);
 | 
			
		||||
		if (ret < 0) {
 | 
			
		||||
			SNDERR("unable to open timer '%s'", name);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue