Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2026 12:35:04 +0000
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Cc:        Quent=?utf-8?Q?in Th=C3=A9?=bault <quentin.thebault@defenso.fr>
Subject:   git: 06b466526a7f - main - virtual_oss: use hw.snd.default_unit by default
Message-ID:  <699c4978.4150c.72371258@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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"
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?699c4978.4150c.72371258>