The branches to the tympanic cavity provide sensory innervation to the mucosa of the tympanic cavity and the internal surface of the tympanic membrane. The cell bodies of these neurons are found in the superior ganglion of the glossopharyngeal nerve.