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 <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-01-15 09:41:05 +01:00
parent a78dd1bd1e
commit b34715004f

View file

@ -1649,7 +1649,9 @@ __longname:
if (err == 0) { if (err == 0) {
/* got device-specific file that matches the card long name */ /* 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; goto __parse;
} }
} }