mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fix alsa-lib to regard 3D control - Depth as Playback Controls
This allow those mixer or recording application to find those controls which are really used for capturing. Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									02b2006713
								
							
						
					
					
						commit
						886adf664b
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -937,7 +937,12 @@ static int base_len(const char *name, selem_ctl_type_t *type)
 | 
			
		|||
		*type = CTL_CAPTURE_ROUTE;
 | 
			
		||||
		return strlen(name);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (strstr(name, "3D Control") > 0) {
 | 
			
		||||
		if (strstr(name, "Depth") > 0) {
 | 
			
		||||
			*type = CTL_PLAYBACK_VOLUME;
 | 
			
		||||
			return strlen(name);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue