mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 04:16:41 +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,6 +517,8 @@ int generate_names(const char *cfgfile)
|
||||||
globidx = 1;
|
globidx = 1;
|
||||||
err = (probes[idx])(config);
|
err = (probes[idx])(config);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
|
/* ignore -ENOTTY indicating the non-existing component */
|
||||||
|
if (err != -ENOTTY)
|
||||||
error("probe %i failed: %s", idx, snd_strerror(err));
|
error("probe %i failed: %s", idx, snd_strerror(err));
|
||||||
} else {
|
} else {
|
||||||
ok++;
|
ok++;
|
||||||
|
|
Loading…
Reference in a new issue