From 9cc45e62e2f31fbf005aa0768a791a96fb2cc444 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Wed, 23 May 2012 21:15:09 +0200 Subject: [PATCH] dont allow duplicate mixer knob names --- aucat/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aucat/dev.c b/aucat/dev.c index e52aa1f..f15f305 100644 --- a/aucat/dev.c +++ b/aucat/dev.c @@ -1350,7 +1350,7 @@ dev_mkslot(struct dev *d, char *who) if (slot->ops == NULL) continue; if (strcmp(slot->name, name) == 0) - umap |= (1 << i); + umap |= (1 << slot->unit); } for (unit = 0; ; unit++) { if (unit == CTL_NSLOT) {