From: Libin Yang Date: Wed, 11 Dec 2019 06:07:19 +0000 (+0800) Subject: ucm: setup conf_format after getting ALSA_CONFIG_UCM_VAR successfully X-Git-Tag: v1.2.2~62 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=1744159180ac94a72036d7232e674c58cedee70a;p=alsa-lib.git 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 Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/parser.c b/src/ucm/parser.c index ba500277..d61124a3 100644 --- a/src/ucm/parser.c +++ b/src/ucm/parser.c @@ -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; }