As said it’s probably a bad earth somewhere.
Easiest way to check is to run a pair of wires (+ fused appropriately) directly from the battery to your device and then plug it in to the stereo.
If it is ok then try with the positive only coming from the battery and the earth connected to something metal near the stereo or interior of the car (seat belt mount is normally a good one – but avoid painted surfaces)
If it then whines once more you have earth issues in the cars wiring.
Possibly worth a look at the battery to car body earth strap anyway, as these usually corrode in older cars.