From 4e1596422b21bd24ba8625b1360ef41b1ba89789 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 17 May 2005 10:38:07 +0000 Subject: [PATCH] Ignore -ENOTTY error Ignore -ENOTTY errror in probe functions, which indicates the non-existing component. --- alsactl/names.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alsactl/names.c b/alsactl/names.c index 6d43d9b..7f5902d 100644 --- a/alsactl/names.c +++ b/alsactl/names.c @@ -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++; }