mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-06-08 03:02:24 -04:00
ucm: pass optional flag to config load functions to suppress spurious errors
Fixes: https://github.com/alsa-project/alsa-lib/issues/510 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
08b532cd3d
commit
d983a9ccbc
4 changed files with 22 additions and 18 deletions
|
|
@ -90,7 +90,7 @@ static int include_eval_one(snd_use_case_mgr_t *uc_mgr,
|
|||
err = uc_mgr_get_substituted_value(uc_mgr, &s, file);
|
||||
if (err < 0)
|
||||
return err;
|
||||
err = uc_mgr_config_load_file(uc_mgr, s, result);
|
||||
err = uc_mgr_config_load_file(uc_mgr, s, result, opt_bool);
|
||||
if (opt_bool && (err == -ENOENT || err == -EACCES)) {
|
||||
snd_trace(UCM, "optional file '%s' not found or readable", s);
|
||||
err = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue