for HDMI sound output, right click sound icon (bottom right corner)
click playback devices
click speakers and disable them
this should default sound to Realtec Digital Audio (you may have to click them though to enable)
Your sound will now work with your HDMI