can be a faulty amp ground, pre ground, battery ground, can be ur aux cable touching some metal, or ur speaker wires.
read in on some forum, if its a pioneer HU, its better to ground it properly before connecting power cable, otherwise u run a risk of blowing some fuse/filter inside which leads to this problem aswell. if nothing helps, try changing ur HU