Hi I think it is tinnitus. I get it also, it is really annoying, i have never been the docs with it as an adult but as a child i remember having my ears shrynged its not really painful.
It tends to happen when everywhere is quite like at bedtime, i have found a way to get rid of it, but it may annoy anyone who is in the room with you, but if your like me you will agree theres nothing more annoying than a ringing in your ear/head. so try this: Humm yes i said humm LOL ( a continuous humm out loud louder than the ringing for a couple of seconds and if it has not gone try doing it for longer, it works for me, i hope it works for you to! let me know