]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: setup conf_format after getting ALSA_CONFIG_UCM_VAR successfully
authorLibin Yang <libin.yang@linux.intel.com>
Wed, 11 Dec 2019 06:07:19 +0000 (14:07 +0800)
committerJaroslav Kysela <perex@perex.cz>
Wed, 11 Dec 2019 07:01:47 +0000 (08:01 +0100)
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>
src/ucm/parser.c

index ba5002779f56fbd621f7fa34656df8a627d946ae..d61124a343e118b216bf09263c1f7c35a163ed7b 100644 (file)
@@ -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;
                }