[Development report #32] Audio Stack Improvements

From: Christos Margiolis <christos_at_freebsd.org>
Date: Tue, 18 Mar 2025 14:07:47 UTC
sound: Use bus_topo_lock() where appropriate:
https://reviews.freebsd.org/D46700

sound: Implement AFMT_FLOAT support:
https://reviews.freebsd.org/D47638

	- A recent reviewer proposed to provide a non-fpu_kern(9)
	  solution.
	- Feedback from a new tester: "Thanks! I can confirm that the
	  patches fix game crashing and sound issues in multiple games
	  on LSU Steam + FreeBSD Proton, such as Tell Me Why, Dishonored
	  2, and Republique."

virtual_oss: Retire -T option:
https://reviews.freebsd.org/D49390

sound: Remove redundant check in mixer_clone():
https://cgit.freebsd.org/src/commit/?id=cabf76fde8368222a68865953521e1c3668b5298

Laptop project

	- sound: Implement /dev/dsp as a router device:
	  https://reviews.freebsd.org/D49216
		- More testing, gave an update on GitHub.
	- Working on follow-up patch to D49216 to split the default unit
	  into separate playback and recording ones. Have got the
	  functionality down already, but waiting for D49216 to be
	  finalized so I can clean this one up and submit it for review.
	- snd_hda: Patch Framework AMD 13th gen:
	  https://cgit.freebsd.org/src/commit/?id=68b6567d09ddd29a16443ad709e2609a9902a190
	- snd_hda: Support Intel Raptor Lake 0x7a50:
	  https://reviews.freebsd.org/D49389
	- snd_hda: Enable microphone redirection for ALC257:
	  https://reviews.freebsd.org/D49396
	- Reviewed:
		- https://reviews.freebsd.org/D49350
		- https://reviews.freebsd.org/D49002
	- Investigating HDMI audio issues on Intel Tiger Lake devices
	  (reported by emaste@ and bapt@).
	- Spent time with jrm@ working on audio issues on his Framework
	  16". Got sound working, but headphone jack redirection still
	  doesn't work. Will investigate this further.
	- Attended LDWG call.
	- Sent an email regarding some touchpad issues I have with my
	  Thinkpad L480:
	  https://lists.freebsd.org/archives/freebsd-desktop/2025-March/005655.html
	- Added Thinkpad L480: https://wiki.freebsd.org/Laptops
	- Noted down issues I encountered when setting it up the
	  Framework 13".
	- PR 280319:
	  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280319

BSDCan talk accepted.

Bug triaging. Also closed some PRs due to feedback timeout.

MFC'd some patches to stable/14. Also MFC'd 712f81feea41 ("include: add
a userland version of __assert_unreachable") to fix a build error:
https://lists.freebsd.org/archives/freebsd-stable/2025-March/002758.html

Got contacted by an interested GSOC student with regards to the project
I'm mentoring:
https://wiki.freebsd.org/SummerOfCodeIdeas#Port_virtual_oss_to_base

This work is sponsored by the FreeBSD Foundation.

Christos