Route all inputs to hardware output by default
Outstanding work, thank you. You can not hear mic input or line input after the boot now. I made systemd scripts to solve this:
cat /etc/systemd/user/pwconnect.service
[Unit]
Description=pw-link from hw audio input to output.
After=pipewire-media-session.service
[Service]
Type=simple
ExecStart=/bin/bash /usr/bin/pwconnect.sh
Restart=on-failure
[Install]
WantedBy=pipewire-media-session.service
cat /usr/bin/pwconnect.sh
#!/bin/bash
/usr/bin/pw-link alsa_input.pci-0000_0b_00.3.analog-stereo:capture_FL alsa_output.pci-0000_0b_00.3.analog-stereo:playback_FL
/usr/bin/pw-link alsa_input.pci-0000_0b_00.3.analog-stereo:capture_FR alsa_output.pci-0000_0b_00.3.analog-stereo:playback_FR
I think the pwconnect.sh script is not portable between different systems. The pipewire server could implement this routing by default.