You have to select the right audio output from your laptop. Go to Control panel -> Hardware and sound -> Sound
Then you should set 'Digital Audio (S/PDIF)' as your output. You can test it to see if it works.
Additionally, you may have to do the same thing in the video player that you use. You should go to the audio settings of the video player and change accordingly.