mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Allow pcm slave string references for direct plugins (bug#2893).
This commit is contained in:
		
							parent
							
								
									6968ba94f3
								
							
						
					
					
						commit
						77849672cd
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1452,7 +1452,10 @@ static int _snd_pcm_direct_get_slave_ipc_offset(snd_config_t *root,
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
	if (snd_config_search(sconf, "slave", &pcm_conf) >= 0 &&
 | 
			
		||||
	    snd_config_search(pcm_conf, "pcm", &pcm_conf) >= 0)
 | 
			
		||||
	    (snd_config_search(pcm_conf, "pcm", &pcm_conf) >= 0 ||
 | 
			
		||||
	    (snd_config_get_string(pcm_conf, &str) >= 0 &&
 | 
			
		||||
	    snd_config_search_definition(root, "pcm_slave", str, &pcm_conf) >= 0 &&
 | 
			
		||||
	    snd_config_search(pcm_conf, "pcm", &pcm_conf) >= 0)))
 | 
			
		||||
		return _snd_pcm_direct_get_slave_ipc_offset(root, pcm_conf,
 | 
			
		||||
							    direction,
 | 
			
		||||
							    hop + 1);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue