From nobody Tue Jan 09 17:00:41 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 4T8cdJ6Y6Sz55tX2 for ; Tue, 9 Jan 2024 17:00:52 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4T8cdH5MnRz4Frm; Tue, 9 Jan 2024 17:00:51 +0000 (UTC) (envelope-from christos@freebsd.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=margiolis.net header.s=mail header.b=kIRN3GTH; dmarc=none; spf=softfail (mx1.freebsd.org: 95.179.159.8 is neither permitted nor denied by domain of christos@freebsd.org) smtp.mailfrom=christos@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=RhE8AXpVCGkS/GO 7YjJXxkBoY1oq8DMRB5Xu8gVqTxM=; h=subject:cc:to:from:date; d=margiolis.net; b=kIRN3GTHiVoPx/VT9G9ciFWKssa2vOgZhoQLCxMPPuHZ5veDnKr BW+uTjMQgyr8JxDTnNTRne1OhOWbggHLeySJlYs21U16Pi+0ZV7lorJoHvNyBZ/DWPETaU YJ5Gh72PLw7jbDA6n5DznuL9loGVo2SV6foJF9dZBmVOV+K4VU= Received: from tpad (ppp-94-66-59-192.home.otenet.gr [94.66.59.192]) by margiolis.net (OpenSMTPD) with ESMTPSA id 2e781288 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 9 Jan 2024 17:00:42 +0000 (UTC) Date: Tue, 9 Jan 2024 19:00:41 +0200 From: Christos Margiolis To: status-updates@freebsdfoundation.org Cc: freebsd-multimedia@freebsd.org, markj@freebsd.org, jrm@freebsd.org Subject: [Development report #1] Audio Stack Improvements Message-ID: 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-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.80 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[margiolis.net:s=mail]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[christos]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:95.179.144.0/20, country:US]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[freebsd.org]; R_SPF_SOFTFAIL(0.00)[~all:c]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-multimedia@freebsd.org]; DKIM_TRACE(0.00)[margiolis.net:+] X-Rspamd-Queue-Id: 4T8cdH5MnRz4Frm 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