Muffled/unclear audio output

There are two threads where sound problems have been reported for imac

Is it headphone output or speaker output or both that are muffled?

Have you tried running Alsamixer from terminal, and have a play around with the settings and sliders for sound outputs? Post a screenshot of your Alsamixer would be good.