Many DACs, AV receivers and sound bars have an optical input: a small square socket, often with a red glow behind a little flap. A cheap USB adapter lets Gexis Player use it. Here is how that works, what the adapter can and cannot do, and a trap that was found, heard and fixed before it reached anyone.
๐ก What optical is
The optical connection, also called TOSLINK or S/PDIF over light, carries digital audio as flashes of light through a thin cable. It has been on hi-fi gear for decades, so plenty of equipment still has it.

Why use it with the player?
- The DAC does the converting. The music stays digital all the way to the device at the far end, which turns it into sound.
- It leaves HDMI free, for a screen or a TV.
- There is no electrical connection between the two ends. Light carries the music, not current, so the player and the hi-fi are kept apart electrically.
A USB-to-optical adapter is, to the player, simply another sound card. It appears in Settings โ Output like any USB DAC.
๐ The adapter on the bench
The adapter tested is a small Realtek one that calls itself “USB SPDIF Adapter” (USB ID 0bda:4e27). It went into a test player and its optical cable into the optical input of an SMSL DAC, whose display shows the sample rate it receives.
What the adapter says it can take:
| Sample rates | 44.1, 48, 96 and 192 kHz |
| Missing | 88.2 and 176.4 kHz |
| Bit depth | 16 or 24 bits, stereo |
| Volume control | none, only a mute switch |
That gap in the middle matters. 88.2 and 176.4 kHz are the hi-res rates of the CD family, used by many studio masters and hi-res downloads.
๐ต The trap: a semitone and a half too high
What does the adapter do when it is asked for a rate it does not have? It does not refuse. It quietly runs at the next rate up: asked for 88.2 kHz, it runs at 96; asked for 176.4, at 192. No error, no warning.
Music sent that way plays at the wrong speed: about 9 % fast, and a semitone and a half too high. To check this by ear, the same note was played at each rate in turn while someone listened at the DAC. The notes sent at 88.2 and 176.4 kHz came out noticeably higher than the others, and the DAC’s display showed 96 and 192 for them.

๐ What each source did
The bare adapter falls into the trap. The question that mattered was whether the player’s own sources do. Each was tried:
- Lyrion, the music server’s player, did not play too fast, but it played silence. It asked the card for 88.2 kHz, could not get it, and kept retrying every few seconds.
- Plexamp converted the music to 96 kHz by itself and played it correctly. To be sure it was not quietly playing fast, a whole track was timed against the clock: 184.81 seconds of music took 184.72 seconds. Played fast, it would have taken about 170.
- Spotify, AirPlay and Bluetooth never send these rates (they use 44.1 or 48 kHz), so they play normally.
So nothing was playing out of tune, but a whole class of hi-res files simply did not play through Lyrion on this adapter. The test library had 59 such tracks, all at 88.2 kHz, the kind of album that is otherwise played without a second thought.
๐ ๏ธ The fix in 1.3.0
Since Gexis Player 1.3.0, Lyrion’s player converts a track only when the sound card cannot take its rate, and converts it up to the card’s highest rate. On this adapter, 88.2 and 176.4 kHz tracks are now converted to 192 kHz and play at the right speed and pitch.
Everything else is left alone:
- Every rate the card takes goes out untouched and bit-perfect: 44.1, 48, 96 and 192 kHz here.
- On DACs that take every rate, nothing changes at all.
- A converted track plays about 1 dB quieter, which leaves room for the conversion so it never clips.
- The conversion is cheap: the player’s processor use for it measured 1 to 2 % of one core.
Checked by ear the same way: four notes at 44.1, 88.2, 176.4 and 96 kHz, all at the same pitch, with the DAC showing 44.1, 192, 192 and 96.
๐๏ธ Using one
- Plug the adapter into one of the Pi’s USB ports and run an optical cable to your DAC, receiver or sound bar. Select the optical input on that device.
- In Settings โ Output, choose Generic USB SPDIF Adapter. This model is marked Tested.
- Volume starts on Fixed: the player sends full level, and the device at the other end sets the volume with its own knob or remote. If you prefer the player’s slider, choose Software instead, which is no longer bit-perfect below 100 %.
Other USB-to-optical adapters will usually work the same way. They appear under Output too, without the Tested mark.
โณ Not done yet
The adapter was tried into a DAC, not a sound bar. Some sound bars take only 44.1 and 48 kHz over optical. The adapter cannot know that and would happily send them 96 kHz, and the bar would stay silent. A setting to cap the rate for each output was planned for exactly that case, and left unbuilt until a sound bar shows the need.
