From e79f8b5c2fa58ef17c910677c3ad1c671b3589a8 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sun, 19 Jul 2020 13:07:26 +0200 Subject: [PATCH] Fix initial alternate device number The initial alternate device number was set to 1 (instead of -1), causing device number 1 to be skipped the first time sndiod is used. --- sndiod/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sndiod/dev.c b/sndiod/dev.c index 85b8689..64c0b3c 100644 --- a/sndiod/dev.c +++ b/sndiod/dev.c @@ -1023,7 +1023,7 @@ dev_new(char *path, struct aparams *par, dev_addname(d,path); d->num = dev_sndnum++; d->opt_list = NULL; - d->alt_num = 1; + d->alt_num = -1; /* * XXX: below, we allocate a midi input buffer, since we don't