mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +01:00
alsactl: honor ignore_nocards flag in init()
BugLink: https://github.com/alsa-project/alsa-utils/issues/75 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
e1551de8dd
commit
65453da000
1 changed files with 2 additions and 0 deletions
|
@ -1758,6 +1758,8 @@ int init(const char *filename, int flags, const char *cardname)
|
|||
break;
|
||||
if (card < 0) {
|
||||
if (first) {
|
||||
if (ignore_nocards)
|
||||
return 0;
|
||||
error("No soundcards found...");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue