No Sound on Speakers (Huawei Matebook D14)

journalctl --user-unit=pipewire -f
Mar 23 21:47:53 nixos systemd[1578]: Started PipeWire Multimedia Service.
Mar 23 21:47:53 nixos pipewire[1814]: spa.alsa: open failed: Invalid argument
Mar 23 21:54:29 nixos systemd[1578]: Stopping PipeWire Multimedia Service...
Mar 23 21:54:29 nixos systemd[1578]: Stopped PipeWire Multimedia Service.
Mar 23 21:54:29 nixos systemd[1578]: pipewire.service: Consumed 6.621s CPU time, 14.7M memory peak.
Mar 23 21:54:29 nixos systemd[1578]: Started PipeWire Multimedia Service.
Mar 23 21:54:29 nixos pipewire[3419]: spa.alsa: open failed: Invalid argument

Ok
I think best is to start over again.
Can you do these steps even if you just did them:

  1. Revisit Modprobe Options:
    Test Legacy Mode Only:
boot.extraModprobeConfig = ''
  options snd-intel-dspcfg dsp_driver=1
'';

Then, Test Disabling Digital Mics:

boot.extraModprobeConfig = ''
  options snd_hda_intel dmic_detect=0
'';

But only one option at a time.

  1. Reset PipeWire Configuration:
  • Removing or moving aside any user-specific PipeWire configuration directories (e.g. ~/.config/pipewire or ~/.local/share/pipewire).
  • Restarting your session (or using systemctl --user restart pipewire after making changes).
  1. Examine and Adjust ALSA Settings
  • Use alsamixer and check all channels (not just “Speakers”) to ensure nothing is muted or set to an extremely low level. Sometimes the analog output might be tied to another control.
  • List available soundcards with aplay -l and verify that your expected device is listed. If not, try reloading the ALSA modules with sudo modprobe -r snd_hda_intel && sudo modprobe snd_hda_intel
  1. Try out the older LTS Kernel 6.6 with boot.kernelPackages = pkgs.linuxKernel.kernels.linux_6_6;