summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sndiod')
-rw-r--r--usr.bin/sndiod/dev.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c
index a5fc85e74eb..eaa29fbf922 100644
--- a/usr.bin/sndiod/dev.c
+++ b/usr.bin/sndiod/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.113 2024/05/06 05:37:26 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.114 2024/05/24 15:01:53 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -2290,6 +2290,14 @@ ctlslot_visible(struct ctlslot *s, struct ctl *c)
return 1;
switch (c->scope) {
case CTL_HW:
+ /*
+ * Disable hardware's server.device control as its
+ * replaced by sndiod's one
+ */
+ if (strcmp(c->node0.name, "server") == 0 &&
+ strcmp(c->func, "device") == 0)
+ return 0;
+ /* FALLTHROUHG */
case CTL_DEV_MASTER:
return (s->opt->dev == c->u.any.arg0);
case CTL_OPT_DEV: