I am using Pop!_OS, installed it a few days ago. I have two audio output devices (correction: read #1 under the post) connected to my PC, one to the 3.5mm audio jack in the front panel and one to the same in the back panel. In the front panel I have my headphones connected and in the back panel I have my stereo speakers connected. I want to be able to switch between the two devices (correction: read #1) like I do on Windows. But I am not able to achieve the same on Linux. (I do not want to be able to play audio from both the devices at once, I don't care about that. I want to be able to switch the output devices with audio playing from only one of them) works kinda like a phone, if I pull my headphones out it automatically starts playing audio from the speakers but as soon as I plug them back in, the audio switches to headphones. Basically my PC is not recognizing headphones and speakers as two separate output devices. Even in settings, only the headphones are available in the list of output devices and line in only appears if I pull my headphones out. Then it starts showing "line in". It works absolutely fine on Windows tho.
Note: Don't freak out after seeing Pop!_OS mentioned it's very similar to stock Ubuntu just with better and more functional features.