mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-15 22:05:18 -05:00
ucm: implemented card list feature
- also added some test files to test/ucm tree Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
3a34394508
commit
e820866637
6 changed files with 134 additions and 27 deletions
|
|
@ -57,8 +57,13 @@ int uc_mgr_config_load(const char *file, snd_config_t **cfg)
|
|||
int err;
|
||||
|
||||
fp = fopen(file, "r");
|
||||
if (fp == NULL) {
|
||||
err = -errno;
|
||||
goto __err;
|
||||
}
|
||||
err = snd_input_stdio_attach(&in, fp, 1);
|
||||
if (err < 0) {
|
||||
__err:
|
||||
uc_error("could not open configuration file %s", file);
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue