From nobody Thu Jul 17 19:56:28 2025 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 4bjkFn4y2Vz62Bh8; Thu, 17 Jul 2025 19:56:29 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bjkFn0TxVz3lRb; Thu, 17 Jul 2025 19:56:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752782189; 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=gavRjGY6txgUWGnUQWHJW7/jMwyQ3dy3G6I8CgQRQi4=; b=aWTe9EbMBYHEUsiA8whTFqOR8UkySjj4+yUrfa7XMPmbzAjQ0ZlmRfAmycwJUqZlsoeUzD bI6Y8jvKo2aZLUXIZyXWX90xzjYRopFdUp9ERfyzi2bDIeDGbyTKvEkJZ/VUBuxucNr9FZ 3kp1C/12Hze0dZ6XY8kOxPOqH2CVS2sbQXIEomyMltnCojQHhcn4pbW8yih7+KJr+7UjEC GqUuVglXI5/5xI9XSLLXjVNirdVGXFOmoRwbxsgr+sVA5VYNM7SQ5r0sUD6I2ymmHnv9ay VVyjlo5CzzIG1nHofnGPzglwnku/dHQki9xRG04HBC4EKPajiqniZ2Z++kevpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752782189; 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=gavRjGY6txgUWGnUQWHJW7/jMwyQ3dy3G6I8CgQRQi4=; b=qbLwOBPH+9rd2OsFqeFZP/2VVfJg4ubC2JUOdy0rzUPiu18lTXQP+/fkAGWNSlgYjkZ6R8 /SUTWljxV1V/OIVQvQ+2wk6YdaCJDKeEbdiXi5IF3vHE1cYLmonmrfHgc89u2G9sQ15nrQ QQWBOD/VcT6d+G93LGTYsLk+WrwylpuWywZolV8sp25fP8aR7Uzw1Rd0UwxisTDuuGRvel OG26JcNJCw2b0PY6u6F22O9v9HvsHHl7q5k52eJHm2ERbvuajc2qnJ/PLJa7thyvM09S/T zPf2V3SvJd2WN1tCtMR1GEPKXrZlQgHH2FCPTQ1M5lGonmWG7dnYgTEEHHL8aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1752782189; a=rsa-sha256; cv=none; b=yjlJpM6DjV8No+PYdUjGMb4zoOFQeIw6LZOuLI8g0QrUQynBimJM5DdBeu+epntUL9GzdB l/a802dqroSmM6y9ms4xfcFcYNLvnKtNtHkC0VhG5f1J8b9l6PNnHYg1x3sOwUTzRNKnKf +DLdUN2H0Z0y7srbNMC/bhz3fsdUh11uKJHyyLXMfL+aXPsUJbLy5ru/RckSjI85DSgnDy MTDY8sCAaXmaOSuP6fweyMIyMZpy4NKv/Xm5i5rPNhlTPSVi3pw8mWRigq4+qs4QpYRRFo ezDg2r0Ha5t0e9jB32DEN8U6HfKRotnd4VpkKxBomH7hKKoP4I7nUDWKSrKT8g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bjkFm6vrwz18PT; Thu, 17 Jul 2025 19:56:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 56HJuSFG069662; Thu, 17 Jul 2025 19:56:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56HJuSL2069659; Thu, 17 Jul 2025 19:56:28 GMT (envelope-from git) Date: Thu, 17 Jul 2025 19:56:28 GMT Message-Id: <202507171956.56HJuSL2069659@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Ziaee Subject: git: 701072154af0 - main - snd_uaudio.4: Rework SYNOPSIS, add HARDWARE, SPDX 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 701072154af0881ef395736a06d09ffa47cfc096 Auto-Submitted: auto-generated The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=701072154af0881ef395736a06d09ffa47cfc096 commit 701072154af0881ef395736a06d09ffa47cfc096 Author: Alexander Ziaee AuthorDate: 2025-07-17 15:56:16 +0000 Commit: Alexander Ziaee CommitDate: 2025-07-17 19:56:09 +0000 snd_uaudio.4: Rework SYNOPSIS, add HARDWARE, SPDX + Rework synopsis for consistency, adding sysctls + Add a HARDWARE section for HW relnotes + tag SPDX MFC after: 3 days Reviewed by: christos, pauamma Differential Revision: https://reviews.freebsd.org/D51240 --- share/man/man4/snd_uaudio.4 | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/share/man/man4/snd_uaudio.4 b/share/man/man4/snd_uaudio.4 index 00329a6d8e40..7193c85fa4f0 100644 --- a/share/man/man4/snd_uaudio.4 +++ b/share/man/man4/snd_uaudio.4 @@ -1,3 +1,6 @@ +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" $NetBSD: uaudio.4,v 1.15 2002/02/12 19:53:57 jdolecek Exp $ .\" .\" Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -27,32 +30,30 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd February 15, 2025 +.Dd July 17, 2025 .Dt SND_UAUDIO 4 .Os .Sh NAME .Nm snd_uaudio .Nd USB audio and MIDI device driver .Sh SYNOPSIS -To compile this driver into the kernel, place the following lines in your -kernel configuration file: -.Bd -ragged -offset indent .Cd "device sound" .Cd "device usb" .Cd "device snd_uaudio" -.Ed .Pp -Alternatively, to load the driver as a module at boot time, place the -following line in -.Xr loader.conf 5 : -.Bd -literal -offset indent -snd_uaudio_load="YES" -.Ed -.Sh DESCRIPTION -The -.Nm -driver provides support for USB audio class devices and USB MIDI class devices. +In +.Xr rc.conf 5 : +.Cd kld_list="snd_uaudio" .Pp +In +.Xr sysctl.conf 5 : +.Cd hw.usb.uaudio.buffer_ms +.Cd hw.usb.uaudio.default_bits +.Cd hw.usb.uaudio.default_channels +.Cd hw.usb.uaudio.default_rate +.Cd hw.usb.uaudio.handle_hid +.Cd hw.usb.uaudio.debug +.Sh DESCRIPTION A USB audio device consists of a number of components: input terminals (e.g.\& USB digital input), output terminals (e.g.\& speakers), and a number of units in between (e.g.\& volume control). @@ -68,6 +69,11 @@ sample rate and sample size. Refer to the .Ql USB Audio Class Specification for more information. +.Sh HARDWARE +The +.Nm +driver provides support for USB audio class devices and +USB MIDI class devices. .Sh SYSCTL VARIABLES The following settings can be entered at the .Xr loader 8