I just installed my subs and amp, I ran the RCA's, and remote on the right side of my car, and the power cable on the left side, but when I press on the gas The alternator whine coming through the speakers gets higher and higher.

I just found it, when I unplug the RCA's from the dock, it goes away.
But when I unplug the RCA's from the amp, it doesn't

How can I fix this?
Thank you