> Our implementation, speakersafetyd, monitors feedback signals from the amplifiers, estimates speaker voice coil temperature using a two-stage thermal model, and reduces the hardware speaker volumes when the speakers get too warm. We also have kernel-side interlocks to disable or limit speaker volumes if speakersafetyd is not running or non-responsive.
This is the only part that seems to need to be low-level, anything else could be done at a higher one, generally EQ type settings like 'loudness'.
It’s likely much easier for the open source people to do the work to deal with the underlying physics once, and then port it to all hardware. The laptop models are all essentially the same (they have a few electromagnets, cones and a few sounding boards). Each one has different parameters in their mostly-linear response curves. My guess is that after the first few models work well all the others will rapidly fall into line.
Something similar happened with printers 20 years ago. The open source stack implemented state of the art dithering and font hinting once and ended up producing higher quality output than the commercial windows drivers for the same printers.
But that already is the only part that is low level. The EQ stuff is done with PipeWire.
I guess/hope amplifier clipping is also accounted for, as the sudden rise in harmonic content can easily damage tweeters (which I think macbooks have?).