From: Jaroslav Kysela Date: Wed, 15 Jan 2020 08:41:05 +0000 (+0100) Subject: ucm: fix the configuration directory (longname) for ucm2 X-Git-Tag: v1.2.2~19 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b34715004f4a1aabb85c5b9f03ba9f200638ee97;p=alsa-lib.git ucm: fix the configuration directory (longname) for ucm2 The new ucm2 expects that the longname directory is shared with the driver directory. Fix that for 'Syntax 2'. Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/parser.c b/src/ucm/parser.c index d61124a3..b3970a13 100644 --- a/src/ucm/parser.c +++ b/src/ucm/parser.c @@ -1649,7 +1649,9 @@ __longname: if (err == 0) { /* got device-specific file that matches the card long name */ - snd_strlcpy(uc_mgr->conf_file_name, longname, sizeof(uc_mgr->conf_file_name)); + if (uc_mgr->conf_format < 2) + snd_strlcpy(uc_mgr->conf_file_name, longname, + sizeof(uc_mgr->conf_file_name)); goto __parse; } }