git: 06b466526a7f - main - virtual_oss: use hw.snd.default_unit by default
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Feb 2026 12:35:04 UTC
The branch main has been updated by christos:
URL: https://cgit.FreeBSD.org/src/commit/?id=06b466526a7fc35cc6fc5bf6f6269e7f3a0a7aea
commit 06b466526a7fc35cc6fc5bf6f6269e7f3a0a7aea
Author: Quentin Thébault <quentin.thebault@defenso.fr>
AuthorDate: 2026-02-23 12:33:33 +0000
Commit: Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-02-23 12:33:33 +0000
virtual_oss: use hw.snd.default_unit by default
Reviewed by: christos
MFC after: 1 week
Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr>
Sponsored by: Defenso
PR: 293130
Pull Request: https://github.com/freebsd/freebsd-src/pull/2043
---
libexec/rc/rc.d/virtual_oss | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libexec/rc/rc.d/virtual_oss b/libexec/rc/rc.d/virtual_oss
index b8f1e7620582..42353a6c1520 100644
--- a/libexec/rc/rc.d/virtual_oss
+++ b/libexec/rc/rc.d/virtual_oss
@@ -24,6 +24,7 @@ required_modules="cuse"
configs=
pidpath="/var/run/${name}"
+default_unit=$(sysctl -n hw.snd.default_unit)
virtual_oss_default_args="\
-S \
-C 2 \
@@ -32,7 +33,7 @@ virtual_oss_default_args="\
-b 24 \
-s 8ms \
-i 8 \
- -f /dev/dsp \
+ -f /dev/dsp${default_unit} \
-d dsp \
-t vdsp.ctl"