Does your receiver have HDMI inputs and does it accept audio via HDMI?
If so, then that's likely the preferred route to go. You cannot get high-resolution audio via SPDIF (optical).
If so, then that's likely the preferred route to go. You cannot get high-resolution audio via SPDIF (optical).