mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	- fixed the routing with use_getput condition.
use_getput will be changed after loading the ttable, so the conversion function cannot be determined at this stage.
This commit is contained in:
		
							parent
							
								
									d14884563f
								
							
						
					
					
						commit
						02e9d7c3e6
					
				
					 1 changed files with 1 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -792,12 +792,7 @@ static int route_load_ttable(snd_pcm_route_params_t *params, snd_pcm_stream_t st
 | 
			
		|||
		dptr->nsrcs = nsrcs;
 | 
			
		||||
		if (nsrcs == 0)
 | 
			
		||||
			dptr->func = snd_pcm_route_convert1_zero;
 | 
			
		||||
		else if (nsrcs == 1 && !att) {
 | 
			
		||||
			if (params->use_getput)
 | 
			
		||||
				dptr->func = snd_pcm_route_convert1_one_getput;
 | 
			
		||||
			else
 | 
			
		||||
				dptr->func = snd_pcm_route_convert1_one;
 | 
			
		||||
		} else
 | 
			
		||||
		else
 | 
			
		||||
			dptr->func = snd_pcm_route_convert1_many;
 | 
			
		||||
		if (nsrcs > 0) {
 | 
			
		||||
			dptr->srcs = calloc((unsigned int) nsrcs, sizeof(*srcs));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue