HiFiBerry Digi+ is a high-quality S/PDIF output for the Raspberry Pi. It uses the I2S sound port that connects directly to the CPU without the need for an additional USB conversion. It supports sample rates up to 192kHz/24bit.
This version features an optical output and an transformer-isolated electrical output. The output transformer is shielded, make sure the DAC that you connect to is grounded.