Solved! Headphone sound and mic port suddenly not working

Aug 3, 2019
1
0
10
So I was playing osu! on my computer with headphones on and then suddenly the sound was bugged with some static and after a few seconds the static got louder so I restarted my computer and didn't bother to check for a while. Then I tried to join a VC on discord and there was no sound. I used the front panel so I switched the headphone port to the back panel but still didn't work. Updated drivers, disabled them, uninstalled then reinstalled them, installed a fresh windows but still not working. The headphone works on other device but other earpiece doesn't work on this computer. And suddenly this morning the sound came back for a minute and then it went back the static sound. The mic doesn't work either. I use a mic splitter as my headphone has only one sound line and i checked without the mic splitter on every instance I mentioned.

Specs
CPU: Amd Ryzen 5 2400g
Ram:Corsair Vengeance 8GB ddr4 2400mhz
MB:Gigabyte B450m S2H
GPU:MSI Armor RX 570 8GB
Headphones: HunterSpiderV1