mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 21:45:44 +01:00
Ignore -ENOTTY error
Ignore -ENOTTY errror in probe functions, which indicates the non-existing component.
This commit is contained in:
parent
cae569e10e
commit
4e1596422b
1 changed files with 3 additions and 1 deletions
|
@ -517,7 +517,9 @@ int generate_names(const char *cfgfile)
|
|||
globidx = 1;
|
||||
err = (probes[idx])(config);
|
||||
if (err < 0) {
|
||||
error("probe %i failed: %s", idx, snd_strerror(err));
|
||||
/* ignore -ENOTTY indicating the non-existing component */
|
||||
if (err != -ENOTTY)
|
||||
error("probe %i failed: %s", idx, snd_strerror(err));
|
||||
} else {
|
||||
ok++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue