mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Prefer mixer controls with volumes over switches
When we look for a mixer control prefer controls that have both volume and a mute switch over those that have only a volume switch over those that only have a mute switch. Originally pointed out by Adel Gadllah.
This commit is contained in:
		
							parent
							
								
									e67bc1d752
								
							
						
					
					
						commit
						c2450501af
					
				
					 4 changed files with 75 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -1236,7 +1236,7 @@ int pa__init(pa_module*m) {
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
        if (found)
 | 
			
		||||
            if (!(u->mixer_elem = pa_alsa_find_elem(u->mixer_handle, "Capture", "Mic")))
 | 
			
		||||
            if (!(u->mixer_elem = pa_alsa_find_elem(u->mixer_handle, "Capture", "Mic", FALSE)))
 | 
			
		||||
                found = FALSE;
 | 
			
		||||
 | 
			
		||||
        if (!found) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue