To fix the whine buy a ground loop isolator for less than $10 (they're all the same). It will sit in-line on the input cord.
Basically your phone is getting two paths to ground - the power connection and the headphone jack. This causes interference (the whine). It's also not good for the power control systems in the phone, though I think it would take years of being connected to actually damage it.