Tympanoplasty is the general name of the operation to repair the middle ear's tympanic membrane and ossicles.
From the en.wikipedia.org
If not, a tear can be repaired with an outpatient surgical reconstruction called a tympanoplasty, which can restore normal hearing.
From the nytimes.com
When I had the tubes removed at age 19, my ear drums were permanently scarred and I had to undergo a bilateral tympanoplasty in which a surgeon tried to patch the holes in my ear drums, to no avail.