So this is a weird one (to me anyway).
My 2.1 desktop speakers and subwoofer (connected to the green port on my motherboard's integrated sound back-panel jack) have historically worked perfectly fine with Solus as long as I select the "Analog Stereo" output device. Usually they just work by default on startup and no adjustments are needed.
Today I plugged in a brand new Logitech USB headset and microphone, listened to the audio for a while (the audio and microphone worked without any fiddling necessary). I noticed that in the audio settings it was set to "Analog Headphones" but there was a second entry for "Digital Headphones" so I switched to digital to see if that made any difference (it didn't). However, upon removing the headphones from the USB port, my desktop speakers would not play. Looking at audio settings, the output had switched to "HD Digital", and "Analog Stereo" was no longer present in the drop-down list. I plugged the headphones back in, switched back to "Analog Headphones" from "Digital Headphones" and unplugged again but the problem persisted. I rebooted but the problem persisted (that was unexpected).
Using the command pactl load-module module-detect
restores the missing "Analog Stereo", but this workaround does not persist after a restart. This workaround also binds the "Analog Stereo" sound card to the Input, which is less than desirable as it makes it impossible to use my microphone.
Using the command pactl load-module module-udev-detect
returns "Failure: Module initialization failed" and does nothing to help resolve the issue. I'm wondering if perhaps this is connected to the root of my trouble - it appears this gets called in /usr/share/pulseaudio/default.pa in an if/else config setting (around line 47).
The best workaround so far I have been able to come up with is to use Pulse Audio Volume Control to edit the audio device in the Configuration tab by setting it to "Analog Stereo Duplex (unplugged) (unavailable)", and then going to Output Devices tab and changing the Port: from "Headphones (unplugged)" to "Line Out (unplugged)" but again, this workaround will not persist after a restart.
Is there a way I can restore PulseAudio to a default configuration (the state it was in before I plugged in my USB headphones) without necessitating a wipe and reinstall of Solus? To be fully honest this issue has effectively set off my OCD and I don't know that I'm going to be able to deal with this as-is (workarounds suck), even though I typically just use cordless bluetooth headphones anyway.
Thank you in advance for taking the time to read this.