I suffered from tinnitus for years. I found out that many people who use Xanax and z-drugs like Ambien often have ear ringing. I used Ambien for years and after stopping them it took about 6 months and I rarely have it now.
Aspirin is known to cause tinnitus too.