I take Ibuprofen for headaches, just a normal dose, and I can't say it has done anything to my ears... I guess. Your mileage may vary.
The combination of severe tinnitus and headache is just unbearable. I can't do anything about tinnitus, but at least I can fight off a headache.