From nobody Thu Jan 11 18:38:21 2024 X-Original-To: freebsd-multimedia@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 4T9thz5y5Sz56gkB for ; Thu, 11 Jan 2024 18:38:27 +0000 (UTC) (envelope-from dev@submerge.ch) Received: from gozo.iway.ch (gozo.iway.ch [IPv6:2001:8e0:40:325::36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4T9thy54pYz40Py; Thu, 11 Jan 2024 18:38:26 +0000 (UTC) (envelope-from dev@submerge.ch) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of dev@submerge.ch designates 2001:8e0:40:325::36 as permitted sender) smtp.mailfrom=dev@submerge.ch Received: from gozo.iway.ch (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 3633734060C; Thu, 11 Jan 2024 19:38:23 +0100 (CET) X-Iway-Path: 0 Received: from localhost (localhost [127.0.0.1]) by localhost (ACF/28147.32329); Thu, 11 Jan 2024 19:38:22 +0100 (CET) Received: from interway.li (sendai-nord.iway.ch [212.25.24.38]) by gozo.iway.ch (Postfix) with ESMTP; Thu, 11 Jan 2024 19:38:22 +0100 (CET) Received: from [145.40.196.39] (account fw@submerge.ch HELO z800.localnet) by sendai-nord.interway.li (CommuniGate Pro SMTP 7.1.0) with ESMTPSA id 255292548; Thu, 11 Jan 2024 19:38:22 +0100 From: Florian Walpen To: status-updates@freebsdfoundation.org, freebsd-multimedia@freebsd.org, freebsd-multimedia@freebsd.org, Christos Margiolis Cc: markj@freebsd.org, jrm@freebsd.org Subject: Re: [Development report #1] Audio Stack Improvements Date: Thu, 11 Jan 2024 19:38:21 +0100 Message-ID: <2194017.PLFibm3KWW@z800> In-Reply-To: References: List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; CTE_CASE(0.50)[]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:8e0::/32]; RCVD_IN_DNSWL_LOW(-0.20)[2001:8e0:40:325::36:from,212.25.24.38:received]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:8758, ipnet:2001:8e0::/32, country:CH]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[submerge.ch]; MLMMJ_DEST(0.00)[freebsd-multimedia@freebsd.org]; RCPT_COUNT_FIVE(0.00)[6] X-Rspamd-Queue-Id: 4T9thy54pYz40Py Hi Christos That's a good start. Having model names for USB audio devices sure helps! Since snd_uaudio gets some attention and testing, it may be an opportunity to have a look at https://reviews.freebsd.org/D41942 This patch addresses frequent CPU wakeups (power consumption) with the default settings, eliminates unnecessary playback latency (video calls) and makes low latency operation possible if desired (live music effects). Florian On Tuesday, January 9, 2024 6:00:41 PM CET Christos Margiolis wrote: > The past (and first) week working on the audio stack, sponsored by the > FreeBSD Foundation, I: > > - Set up my development environment; a VM image running -CURRENT in > bhyve with PCI-passthru enabled to do all of the driver (kernel > generallly) development in the VM. > - Wrote a small series of patches for vmrun.sh: > https://reviews.freebsd.org/D43269 > https://reviews.freebsd.org/D43270 > - Modified the snd_uaudio(4) driver to provide information about the > sound card (manufacturer, model and attached driver), as opposed to > the current generic "USB Audio" string, so /dev/sndstat and programs > like mixer(8) can output more useful information about USB audio > devices. > https://reviews.freebsd.org/D43347 > - Submitted a patch to update (and unify) the description format for all > sound devices, since some of them haven't been touched for years. > https://reviews.freebsd.org/D43349 > - Implemented device_set_descf() , a printf-like version of > device_set_desc(). > https://reviews.freebsd.org/D43370 > - Was preparing a few more smaller patches. > - Started looking into possible solutions to > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194727 > also mentioned in the first paragraph of the BUGS section of the > snd_uaudio(4) man page. > > Christos