mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: setup conf_format after getting ALSA_CONFIG_UCM_VAR successfully
Set the conf_format to 1 after getting ALSA_CONFIG_UCM_VAR successfully. Otherwise, the conf_format is not set in this scenario. Signed-off-by: Libin Yang <libin.yang@linux.intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									f828dfe549
								
							
						
					
					
						commit
						1744159180
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -89,6 +89,8 @@ static void configuration_filename(snd_use_case_mgr_t *uc_mgr,
 | 
				
			||||||
		env = getenv(ALSA_CONFIG_UCM2_VAR);
 | 
							env = getenv(ALSA_CONFIG_UCM2_VAR);
 | 
				
			||||||
		if (env == NULL) {
 | 
							if (env == NULL) {
 | 
				
			||||||
			env = getenv(ALSA_CONFIG_UCM_VAR);
 | 
								env = getenv(ALSA_CONFIG_UCM_VAR);
 | 
				
			||||||
 | 
								if (env)
 | 
				
			||||||
 | 
									uc_mgr->conf_format = 1;
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			uc_mgr->conf_format = 2;
 | 
								uc_mgr->conf_format = 2;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue