mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fix device number assignment in hints
Handle the device number properly if given in hints. The current code resets the device number to -1 wrongly.
This commit is contained in:
		
							parent
							
								
									91726ddf83
								
							
						
					
					
						commit
						e58bd6762f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -304,8 +304,8 @@ static int try_config(struct hint_list *list,
 | 
			
		|||
				err = -EINVAL;
 | 
			
		||||
				goto __cleanup;
 | 
			
		||||
			}
 | 
			
		||||
			list->device_input = -1;
 | 
			
		||||
			list->device_output = -1;
 | 
			
		||||
			list->device_input = dev;
 | 
			
		||||
			list->device_output = dev;
 | 
			
		||||
		}
 | 
			
		||||
		if (snd_config_search(cfg, "device_input", &n) >= 0) {
 | 
			
		||||
			if (snd_config_get_integer(n, &list->device_input) < 0) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue