From: Jaroslav Kysela Date: Mon, 26 Jan 2026 14:08:54 +0000 (+0100) Subject: ucm: libconfig parser - fix pathname for substituted file X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=7887fbc6f0f660072d1405231703985b72d40cf1;p=alsa-lib.git ucm: libconfig parser - fix pathname for substituted file The path name substituted file contents and normal file contents should be handled similary. Use correct function determining the right base directory name. Fixes: 8f5779eb ("ucm: add LibraryConfig support") Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/parser.c b/src/ucm/parser.c index 60861213..baa19144 100644 --- a/src/ucm/parser.c +++ b/src/ucm/parser.c @@ -804,7 +804,7 @@ static int parse_libconfig1(snd_use_case_mgr_t *uc_mgr, snd_config_t *cfg) if (file) { if (substfile) { snd_config_t *cfg; - err = uc_mgr_config_load(uc_mgr->conf_format, file, &cfg); + err = uc_mgr_config_load_file(uc_mgr, file, &cfg); if (err < 0) return err; err = uc_mgr_substitute_tree(uc_mgr, cfg);