Headphones works then automatically unplugged then automatically works again.

Shazar1

Prominent
Jun 4, 2017
2
0
510
I've always used handsfree on desktop computer but for last month, even after connecting it in the headphone jack, red Cross fades for few seconds and it works but then stops and red Cross shows again saying no headphones or speakers are plugged in. Then for a few seconds it automatically detects it and it works again then again stops. It goes on and on.i tried updating drivers no succes. Any solutions?
Specs:
Corei5 2400, 8gb ram, Asus r7 250 1gb gddr5.