I use the sound card built into the motherboard (MSI MAG B550 TOMAHAWK) and in the audio settings I have 3 options:
1.Digital Output (S/PDIF) - Starship/Matise HD Audio Controller
2.HDMI/DisplayPort3 - GP104 HD Audio Controller
3.HDMI/DisplayPort - GP104 HD Audio Controller
When the system starts, option 1 is enabled by default in the settings - Digital Output (S/PDIF) - Starship/Matise HD Audio Controller. Changing to option 2 manually (HDMI/DisplayPort3 - GP104 HD Audio Controller) or 3 (HDMI/DisplayPort - GP104 HD Audio Controller) does not change anything - I still have no sound from the monitor speakers.
When connecting headphones to the front panel input, headphone sound and menu option 4 appear automatically Headphones - Starship/Matise HD Audio Controller. With the headphones still plugged in, changing the menu to option number 2 causes me to have sound from the monitor speakers. After unplugging the headphones the speakers still work but plugging them back in does not change the output to headphones.
How to configure the settings so that when you start the computer the default output is set to output 2, plugging in headphones automatically changes the output to headphones and disconnecting them changes it to output 2??