ucm: substitute the comment string also in the main configuration file

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-10-06 10:43:38 +02:00
parent 22d5ca8b6b
commit 61749cf400

View file

@ -1873,7 +1873,7 @@ static int parse_master_file(snd_use_case_mgr_t *uc_mgr, snd_config_t *cfg)
continue; continue;
if (strcmp(id, "Comment") == 0) { if (strcmp(id, "Comment") == 0) {
err = parse_string(n, &uc_mgr->comment); err = parse_string_substitute3(uc_mgr, n, &uc_mgr->comment);
if (err < 0) { if (err < 0) {
uc_error("error: failed to get master comment"); uc_error("error: failed to get master comment");
return err; return err;