]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Ignore -ENOTTY error
authorTakashi Iwai <tiwai@suse.de>
Tue, 17 May 2005 10:38:07 +0000 (10:38 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 May 2005 10:38:07 +0000 (10:38 +0000)
Ignore -ENOTTY errror in probe functions, which indicates the
non-existing component.

alsactl/names.c

index 6d43d9bd560e67f7b2cd97bc7cefb55cee8dd7c5..7f5902de911bd08e07de47646b22b97eb1372af9 100644 (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++;
                }