mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: substitute device strings in the device lists
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									529154fe7f
								
							
						
					
					
						commit
						991990cdf2
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -493,7 +493,11 @@ static int parse_device_list(snd_use_case_mgr_t *uc_mgr ATTRIBUTE_UNUSED,
 | 
			
		|||
		sdev = calloc(1, sizeof(struct dev_list_node));
 | 
			
		||||
		if (sdev == NULL)
 | 
			
		||||
			return -ENOMEM;
 | 
			
		||||
		err = parse_string(n, &sdev->name);
 | 
			
		||||
		if (uc_mgr->conf_format < 3) {
 | 
			
		||||
			err = parse_string(n, &sdev->name);
 | 
			
		||||
		} else {
 | 
			
		||||
			err = parse_string_substitute(uc_mgr, n, &sdev->name);
 | 
			
		||||
		}
 | 
			
		||||
		if (err < 0) {
 | 
			
		||||
			free(sdev);
 | 
			
		||||
			return err;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue