ALC268 S/PDIF out

I see this has been discussed before, but I think in my case I have a better starting position. I have a mini pc that I would like to use as media player, but for that I need optical spdif out. Windows 10 recognizes spdif out and foobar plays all sample rates up to 192khz into it, so I just need a connector (I think). Pin 48 outputs spdif modulated signal during playback just fine. Any similar experiences?