My Mac Mini S/Pdif is IN/OUT. Below copied from "About This Mac":
S/PDIF Optical Digital Audio Output:
Connection: Combination Output
S/PDIF Optical Digital Audio Input:
Connection: Combination Input
Problem connecting Rega Dac to Macbook 2008