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:
Libin Yang 2019-12-11 14:07:19 +08:00 committed by Jaroslav Kysela
parent f828dfe549
commit 1744159180

View file

@ -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;
} }