mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: handle strict: prefix correctly for the UCM card name
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									efe2469ac3
								
							
						
					
					
						commit
						f688817e2c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2038,7 +2038,8 @@ int uc_mgr_import_master_config(snd_use_case_mgr_t *uc_mgr)
 | 
			
		|||
	char longname[MAX_CARD_LONG_NAME];
 | 
			
		||||
	int err;
 | 
			
		||||
 | 
			
		||||
	if (replace_string(&uc_mgr->conf_dir_name, uc_mgr->card_name) == NULL)
 | 
			
		||||
	if (replace_string(&uc_mgr->conf_dir_name,
 | 
			
		||||
			   strncmp(name, "strict:", 7) ? name : name + 7) == NULL)
 | 
			
		||||
		return -ENOMEM;
 | 
			
		||||
 | 
			
		||||
	if (strncmp(name, "hw:", 3) == 0) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue