Skip to contentSkip to conversation

ucm: setup conf_format after getting ALSA_CONFIG_UCM_VAR successfully

PATCH New [email protected] 1 participant 1 message Dec 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ucm: setup conf_format after getting ALSA_CONFIG_UCM_VAR successfully

From: Libin Yang <[email protected]>

Set the conf_format to 1 after getting ALSA_CONFIG_UCM_VAR successfully. Otherwise, the conf_format is not set in this scenario.

---
 src/ucm/parser.c | 2 ++
 1 file changed, 2 insertions(+)
src/ucm/parser.c +2 -0
index ba50027..d61124a 100644
@@ -89,6 +89,8 @@ static void configuration_filename(snd_use_case_mgr_t *uc_mgr,
 		env = getenv(ALSA_CONFIG_UCM2_VAR);
 		if (env == NULL) {
 			env = getenv(ALSA_CONFIG_UCM_VAR);
+			if (env)
+				uc_mgr->conf_format = 1;
 		} else {
 			uc_mgr->conf_format = 2;
 		}
Signature · 6 lines
2.7.4

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel