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 <perex@perex.cz>
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);