The noisy audio gateway is a PoE gateway, if I plug a headphones to the 3.5mm audio line out there is no noise, but if I take the 3.5mm audio line out from the gateway to the aux in on the amp that's when I get a buzzing sound unless I play something from the gateway otherwise it buzzes. As soon as I play something it stops or if I disconnect the 3.5mm jack it stops. Any ideas what could be wrong?The buzzing from the transformer inside the amplifier is caused by a poorly made transformer.
Since the noisy audio gateway is silent when playing then it (not the amplifier) produces the noise when not playing.