mirror of https://github.com/ericonr/sndio.git
dont allow duplicate mixer knob names
This commit is contained in:
parent
2fe4d9ed7e
commit
9cc45e62e2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue