Several posts mention jack detection. Just to be sure, they way that works is not obvious and can end up making the jacks non-functional. I'll describe how mine work.
1. Start by unplugging all the audio jack units from the back panel, then reboot. Make sure Windows is set to use the Realtek on-board devices for default audio output and input (recording).
2. Arrange your stuff so you can see your monitor screen and reach the keyboard while also having access to the back panel.
3. Plug in ONE jack - say, the front L/R speakers. Watch the screen. It should pop up a small window saying that it detected something plugged into a particular socket and suggesting what that might be - say, front speakers plugged into the green socket. It asks for conformation or for you to change that and confirm. You MUST respond. If you merely ignore it the window will disappear and NOT put any signal out on that jack, even though it had shown you a default suggestion.
4. With the first jack set that way, proceed one by one with more jacks plugged into sockets and each set properly. When you're done, they all should do what you just told the machine they do.
The "unexpected" aspect of this is that if you let it assume the default setting without actually clicking on the OK button, it does NOT use that. You MUST click a response for each item you plug in.