no optical audio when HDMI tv is attached
I have a 2012 mac mini that has worked well since new. Recently it has stopped outputting digital audio via the mini toslink. It only comes back for a few seconds when changing refresh rate, or when I disconnect the same HDMI tv I have used all along. I tried resetting PRAM and SMC with no effect.
I first checked to make sure Digital audio is selected. I tried switching it from HDMI back to digital with no effect.
What am I missing here...
Mac mini, macOS Sierra (10.12.3)