mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fix _snd_ctl_hw_open() mode argument
Added the missing mode argument in _snd_ctl_hw_open().
This commit is contained in:
		
							parent
							
								
									8a3d07022c
								
							
						
					
					
						commit
						96e01a6112
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -386,7 +386,7 @@ int snd_ctl_hw_open(snd_ctl_t **handle, const char *name, int card, int mode)
 | 
			
		|||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int _snd_ctl_hw_open(snd_ctl_t **handlep, char *name, snd_config_t *root ATTRIBUTE_UNUSED, snd_config_t *conf)
 | 
			
		||||
int _snd_ctl_hw_open(snd_ctl_t **handlep, char *name, snd_config_t *root ATTRIBUTE_UNUSED, snd_config_t *conf, int mode)
 | 
			
		||||
{
 | 
			
		||||
	snd_config_iterator_t i, next;
 | 
			
		||||
	long card = -1;
 | 
			
		||||
| 
						 | 
				
			
			@ -417,6 +417,6 @@ int _snd_ctl_hw_open(snd_ctl_t **handlep, char *name, snd_config_t *root ATTRIBU
 | 
			
		|||
	}
 | 
			
		||||
	if (card < 0)
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
	return snd_ctl_hw_open(handlep, name, card, 0);
 | 
			
		||||
	return snd_ctl_hw_open(handlep, name, card, mode);
 | 
			
		||||
}
 | 
			
		||||
SND_DLSYM_BUILD_VERSION(_snd_ctl_hw_open, SND_CONTROL_DLSYM_VERSION);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue