Ignore -ENOTTY error

Ignore -ENOTTY errror in probe functions, which indicates the
non-existing component.
This commit is contained in:
Takashi Iwai 2005-05-17 10:38:07 +00:00
parent cae569e10e
commit 4e1596422b

View file

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