mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: parser - use correct filename in parser_master_file()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b2fe99277a
commit
c5a09b0fea
1 changed files with 3 additions and 3 deletions
|
|
@ -1413,16 +1413,16 @@ static int parse_master_file(snd_use_case_mgr_t *uc_mgr, snd_config_t *cfg)
|
|||
if (uc_mgr->conf_format >= 2) {
|
||||
err = snd_config_search(cfg, "Syntax", &n);
|
||||
if (err < 0) {
|
||||
uc_error("Syntax field not found in %s", uc_mgr->conf_dir_name);
|
||||
uc_error("Syntax field not found in %s", uc_mgr->conf_file_name);
|
||||
return -EINVAL;
|
||||
}
|
||||
err = snd_config_get_integer(n, &l);
|
||||
if (err < 0) {
|
||||
uc_error("Syntax field is invalid in %s", uc_mgr->conf_dir_name);
|
||||
uc_error("Syntax field is invalid in %s", uc_mgr->conf_file_name);
|
||||
return err;
|
||||
}
|
||||
if (l < 2 || l > SYNTAX_VERSION_MAX) {
|
||||
uc_error("Incompatible syntax %d in %s", l, uc_mgr->conf_dir_name);
|
||||
uc_error("Incompatible syntax %d in %s", l, uc_mgr->conf_file_name);
|
||||
return -EINVAL;
|
||||
}
|
||||
/* delete this field to avoid strcmp() call in the loop */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue