Micca OriGen G2 High Resolution USB DAC and Preamplifier - 24-Bit/192kHz PCM https://www.amazon.com/dp/B01N14SY65/ref=cm_sw_r_cp_api_i_N4DG6EQ9ZNE43VJMMC4W
I’m referring to that, the 3.5mm line out functions as either analog out or as optical out using a cable like this:
FosPower (3 Feet) 24K Gold Plated Toslink to Mini Toslink Digital Optical S/PDIF Audio Cable with Metal Connectors & Strain-Relief PVC Jacket https://www.amazon.com/dp/B00T8HWUVS/ref=cm_sw_r_cp_api_i_JKJEMWTJ1K6ATVP6H0SK
The Origen allows you to run off usb or optical for data with USB always providing power and then output to headphones or line out/toslink optical