Normally the only things you have to set are :
-Audio output =HDMI (not optical/not analogue)
-Audio output format=Linear PCM (not Bitstream)
I'm not in front of my screen so I can't post you the exact menu term, but you should find them without difficulties when browsing the settings menu.