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:
Jaroslav Kysela 2010-10-13 11:48:52 +02:00
parent 3a34394508
commit e820866637
6 changed files with 134 additions and 27 deletions

View file

@ -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;
}