How are your soldering skills?
OK-ish
Possibly. But why go through the trouble?
What device are we talking about, and what do you need the toslink output for?
Microsoft removed the TOSLINK port from the Xbox Series consoles. The only USB DAC that is supported by the Xbox is called the Astro Mixamp, which has no digital output and the analog section is awful. I want a clean digital audio signal I can send to a digital mixer, then a quality DAC/AMP.
Optical via TV is not possible because I'm using a monitor. Monitors never come with digital audio outputs, only extremely noisy analog outputs if you're lucky.
HDMI-to-TOSLINK audio extractors are not an option because they don't support VRR (except for the HD Fury VRRoom, which costs a fortune and only supports VRR via HDMI 2.1 FRL, which my current monitor doesn't even have).
If I can crack open an Astro Mixamp and get TOSLINK from that, then that should be an acceptable solution.