Static noise coming from Headphones when using Macbook Pro charger
I bought a new Magsafe Charger (85W) for my macbook and i noticed that when the charger is pluged into the macbook pro, there is a lot of static noise when using headphones. If i remove the headphones the static noise goes away and doesnt happen with the macbook's own speakers. Also if continue to use headphones and i disconnect the charger from the macbook pro, the static noise goes away again. Ive tried using different headphones, the problem continues, and ive tried using my old charger and it works perfect without any static noise, so it seems the new charger is the reason behind it.
Im using a mid 2009 macbook pro, which came with the t-style connector for its charger. the new charger that i bought is l-type connector. is the static noise down to the updated version of the charger, would it just continue if i exchanged it and would have to try to find an old t-style charger as it came with the macbook pro? Or is there something i can do to the macbook i have now that would solve the static noise issue?
MacBook Pro, OS X Mavericks (10.9)