If you're connecting a pair of header pins on the mobo to a RCA socket for SPDIF be careful of the polarity.
I smoked my amp once doing this on cheap ass bodge to a FOXCONN motherboard doing this. (the amp survived, but obviously I botched polarity or which pins I needed).
All subsequent boards I've made sure they had RCA socket for digital out.