OzMartini :
Tried it and problem is still there. What do you mean by there's a problem with the grounding?
Any cable used for transiting low-level signals must be properly shielded to reduce electromagnetical interferences induced by various equipments, and the shield must be connected to the ground. It seems very simple and straightforward, but it isn't: each kind of signal must have its own ground plane. Motherboards have at least three ground planes: the main ground plane, connected to the case through the standoffs (and further conencted to the mains earthing through the PSU), the digital ground plane, used for connecting the components (CPU, memory, GPU, various adapter cards, USB, storage, etc.) and the audio ground plane. The ground planes are connected with each other only in specific points, to reduce the
ground loop effect.
In your case, the ground of the front USB ports
must not touch the ground from the front audio ports (the USB metal body must not touch any of the audio jack metal bodies). Also, the audio jacks must not be touching the front panel. Try to disconnect the front USB ports from the motherboard and see if the problem disappears.
If even with the front USB ports disconnected you experience the same audio problems, it can be a defective audio cable (the cable shield got interrupted or is touching the case through a non-insulated area), a motherboard problem (sometimes it doesn't properly connect to the case through the standoffs, either because of a screw not tightened enough or by using a plastic standoff instead of a metal one), a PSU problem (the wires being too thin or a power plug not fully inserted), a GPU problem (one of the side effects of the so-called "coil whine") or even a monitor problem (cable or malfunction).
What PSU / GPU make/model do you have?