HDMI TV not showing as audio output in System Preferences
If you are using a Mini Displayport to HDMI adapter this should help you.  If you are using Mini-DVI to HDMI adapter then you will have to get audio from your headphone port via an external cable because DVI is strictly video.