I seem to have a big issue regarding the audio and Ubuntu, but I only have it with the S/PDIF output.
It virtually always stops providing a signal through the cable when there is no audio, therefore all of my DACs (3) that I have tried have their active light turn off, and they take nearly a full second to wake up almost every time there is any silence. This would be fine if it took this time when you switch inputs or turned it on or off, but it is really tedious when it does it all the time as you don't hear notifications and it skips the beginning of tracks on spotify for example.
I doubt this is to do with my DACs as they all do the same thing, and I do not have this issue with USB.
In windows 10, my motherboard must send out a fixed signal, as the light on my DACs never indicate that the signal has been lost when nothing is playing. Because of this, I never get delays when i play music or any other audio.
This won't be a hardware issue as I have had this problem every time I've used the optical output in all LTS versions of Ubuntu going right back to 16.04. 14.04 was the last time I could use the optical output without being faced with this issue. I've also gone through 3 motherboards over the years I've had this issue and they have all been the same. I don't understand why this isn't a common issue with a simple fix.
There must be some solution that others are finding for this as Ubuntu can't have gone this many years with an unusable optical output. I just don't know what causes the issue.
Would much appreciate some advice.
Thanks.