Fix a laptop with no sound card at all from missing SOF firmware
Symptom
Brand-new or recent laptop (Intel 11th gen and newer, many AMD too) has absolutely no sound card. aplay -l prints no soundcards found... and wpctl status has an empty Sinks list. dmesg or journalctl -b -k shows error: sof firmware file is missing, error: failed to load DSP firmware -2, error: sof_probe_work failed err: -2.
Cause
Modern laptops route audio through a Sound Open Firmware DSP instead of a plain HDA codec. The kernel driver loads but has no firmware blob to hand it, so no PCM device is ever registered. On laptops with Cirrus Logic smart amplifiers the separate linux-firmware-cirrus package is also required.
Fix
sudo pacman -S --needed sof-firmware alsa-ucm-conf alsa-firmware
On laptops with Cirrus Logic boosted amps (most recent ThinkPads, Dell XPS, many ASUS/HP) also install:
sudo pacman -S --needed linux-firmware-cirrus
Some Intel audio devices additionally need:
sudo pacman -S --needed linux-firmware-intel
Reboot (the firmware is loaded at driver probe time, a service restart is not enough):
reboot
After reboot, confirm the card appeared and unmute it:
aplay -l
alsamixer # F6 to pick the card, unmute (M) and raise Master/Speaker
sudo alsactl store
Verify
aplay -l lists a card, journalctl -b -k | grep -i sof no longer shows firmware file is missing, and speaker-test -c2 -twav -l1 makes noise.