mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fix extplug->channels initialization
Fixed the missing initialization of extplug->channels in hw_params.
This commit is contained in:
		
							parent
							
								
									7e6c920836
								
							
						
					
					
						commit
						24a3cfc236
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -300,6 +300,8 @@ static int snd_pcm_extplug_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params
 | 
			
		|||
	ext->data->rate = slave->rate;
 | 
			
		||||
	INTERNAL(snd_pcm_hw_params_get_format)(params, &ext->data->format);
 | 
			
		||||
	INTERNAL(snd_pcm_hw_params_get_subformat)(params, &ext->data->subformat);
 | 
			
		||||
	INTERNAL(snd_pcm_hw_params_get_channels)(params, &ext->data->channels);
 | 
			
		||||
 | 
			
		||||
	if (ext->data->callback->hw_params) {
 | 
			
		||||
		err = ext->data->callback->hw_params(ext->data, params);
 | 
			
		||||
		if (err < 0)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue