mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa: disable tsched for software devices before we configure the buffer metrics so that we don't accidently set a buffer size that is suitable for tsched where we don't use tsched
This commit is contained in:
		
							parent
							
								
									8364b959b4
								
							
						
					
					
						commit
						d5f43bd4c6
					
				
					 3 changed files with 4 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -1636,11 +1636,6 @@ pa_source *pa_alsa_source_new(pa_module *m, pa_modargs *ma, const char*driver, p
 | 
			
		|||
        u->use_tsched = use_tsched = FALSE;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (use_tsched && !pa_alsa_pcm_is_hw(u->pcm_handle)) {
 | 
			
		||||
        pa_log_info("Device is not a hardware device, disabling timer-based scheduling.");
 | 
			
		||||
        u->use_tsched = use_tsched = FALSE;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (u->use_mmap)
 | 
			
		||||
        pa_log_info("Successfully enabled mmap() mode.");
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue