Hi Zink,
Two ways. Smart TV's have an optical output, but you can also output via the HDMI Audio Return Channel (ARC). It's a little funky since there is computer handshaking involved.
Your receiver has to be HDMI compatible, AND it has to have ARC enabled.
Only one HDMI plug on your TV has ARC however.
I use this with an Oppo BD player. I can use the Samsung apps, Oppo does the 7.1 decoding.
Remember I said this was funky? Sometiems I have to turn the TV on and off to get this working.
Best,
E