I am running into a bug with pipewire where every time my laptop wakes from sleep, my audio devices (both input and output) get duplicated. So if I close my laptop lid and open it 5 times, I will have 5 sets of speakers and 5 microphones. And at that point, the volume controls stop working and everything kinda goes to shit. If I restart the pipewire service, everything starts working fine again.
The workaround I am using is I made a systemd service that restarts the pipewire service each time the device wakes from sleep. And that works fine. But I was wondering if anyone else ran into this and if there is a better solution available.