From nobody Thu May 28 14:07:00 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gR7b84KSyz6fmxC for ; Thu, 28 May 2026 14:07:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gR7b83cLcz3dQC for ; Thu, 28 May 2026 14:07:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1779977220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=49dmHzPFfrBtQC1OfrZhJ3NCGiJEhH5ZbLM+8d1Ju+c=; b=yCCeJyuQ8onX+KaEMdA6qQ/IoUwJYFH7bwNDNT6prijybwlzn9MSwqWJ9vyFt3BnEE8xnH b2mdGJny9JUZLe45dFRzGMxiDSSkC6/pt0nzAqyfwqoi6Y376Ewvx/0W1wvmAO8IcdY2Jd k1HKx3tJatErdHleWLMuA360i/Nt2SEd46EFu0YRinbf0SmOoJGypTrC7Qvus9z6y0E/ee eY7Dt2+33mLXZyxtOvwZpSr0VX9tUEGxpx3x1r05276RoGuDVU4KOPDPIUHcSS0dhLaAKB AnKjMG3K6drZ0CHFfMzqfpxPoAja4bgrDObWEpDjlzIdsfsGRiczpr//xS671A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1779977220; a=rsa-sha256; cv=none; b=mAqjmi3LDbivdPvCvKu8/sSHxk3izjrFnDAUPzOnI2+yvBuXHgJ+rgfpMWCdEZX7rv+WUe eE/VCHCje0S4qdmlpLryEsunR9iOJ8QwnqsWLelQJXg4InQQJjJxApuam+HukSWwObVz4K tqGKGc44sJQSBw1yb+vIHasYL1cioOaNVnRbmgzLdVTuXUWE0pChC6jnCTwNW14rnzyAIY VqxUJQKGYdSKk2cJTvDavDzvM7M3h4lfsjO3DGH3oKuGdrVoa4Js5gVMNpPJfasrl2CGP3 /Qi5iAoAYOFTNbFI0KbCNBLrt1fg/uoFyzumwE8Vy9+Y0pYepcI0b93uUyqkdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1779977220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=49dmHzPFfrBtQC1OfrZhJ3NCGiJEhH5ZbLM+8d1Ju+c=; b=lONgwazG7l2k43B6/jEbBqbzWFqoejaZm6bNMKdHYhPor1aRZzgh2QVDOsnB6SrZQy+5JR GTCZZG/LKR7c68oVpULQTMXTt+E/Gr/26wnMOTXNp6mAaFTjMXKnPh/YQ1jdZf0W+VZLgj 7Tk17/2tUcoo2ZpkjgLuUY+uu3u6c6ry2LLM5/xWYrmjcM84+LGJ70Dt16jq5hLQANPEjI Vgp3MS7/IvEfV7CTVHfUSL6kFh+glSH2GCOhE7P3qXW39X/NCFjNtyU+zjSMvZfG2OKnNX SQ3d2clDafvkeXScUZaFipw1v27QxBHUm3pVXYKwfLqIPav+2rZEeHEp59sdbg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gR7b82g3dzq9j for ; Thu, 28 May 2026 14:07:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20c80 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 28 May 2026 14:07:00 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: a576e5140ef3 - main - rc: virtual_oss: Define some variables in rc.conf List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a576e5140ef352af6cf227528d1bfc6b964516c8 Auto-Submitted: auto-generated Date: Thu, 28 May 2026 14:07:00 +0000 Message-Id: <6a184c04.20c80.27c0e61a@gitrepo.freebsd.org> The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=a576e5140ef352af6cf227528d1bfc6b964516c8 commit a576e5140ef352af6cf227528d1bfc6b964516c8 Author: Christos Margiolis AuthorDate: 2026-05-21 11:38:22 +0000 Commit: Christos Margiolis CommitDate: 2026-05-28 14:06:06 +0000 rc: virtual_oss: Define some variables in rc.conf They will now be part of /etc/defaults/rc.conf and be accessible by sysrc(8). Fixes: 70e27ecba518 ("virtual_oss: Introduce virtual_oss_default_control_device rc variable") PR: 295560 Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: 0mp, jrm Pull-Reqeust: https://ron-dev.freebsd.org/FreeBSD/src/pulls/33 --- libexec/rc/rc.conf | 6 +++++- libexec/rc/rc.d/virtual_oss | 12 +----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf index 75420e42cdeb..27e8c8456b6f 100644 --- a/libexec/rc/rc.conf +++ b/libexec/rc/rc.conf @@ -736,7 +736,11 @@ newsyslog_flags="-CN" # Newsyslog flags to create marked files mixer_enable="YES" # Run the sound mixer. opensm_enable="NO" # Opensm(8) for infiniband devices defaults to off nuageinit_enable="NO" # Run nuageinit at startup -virtual_oss_enable="NO" # Run virtual_oss at startup + +virtual_oss_enable="NO" # Run virtual_oss at startup. +virtual_oss_configs="dsp" # List of configurations. +virtual_oss_default_control_device="vdsp.ctl" # Default configuration's + # control device. # rctl(8) requires kernel options RACCT and RCTL rctl_enable="YES" # Load rctl(8) rules on boot diff --git a/libexec/rc/rc.d/virtual_oss b/libexec/rc/rc.d/virtual_oss index 73a486f547a5..07f81aeed4bc 100644 --- a/libexec/rc/rc.d/virtual_oss +++ b/libexec/rc/rc.d/virtual_oss @@ -22,13 +22,9 @@ status_cmd="${name}_status" required_modules="cuse" -configs= pidpath="/var/run/${name}" -default_unit=$(sysctl -n hw.snd.default_unit 2> /dev/null) - -# Default configuration's control device. -: "${virtual_oss_default_control_device:="vdsp.ctl"}" +default_unit=$(sysctl -n hw.snd.default_unit 2> /dev/null) virtual_oss_default_args="\ -S \ -C 2 \ @@ -42,12 +38,6 @@ virtual_oss_default_args="\ -l dsp.loop \ -t ${virtual_oss_default_control_device}" -# Set to NO by default. Set it to "YES" to enable virtual_oss. -: "${virtual_oss_enable:="NO"}" - -# List of configurations to use. Default is "dsp". -: "${virtual_oss_configs:="dsp"}" - # Default (dsp) virtual_oss config. : "${virtual_oss_dsp:="${virtual_oss_default_args}"}"