I have an Intel NUC (NUC5PPYH) running Lubuntu 19.10. Its TOSLINK optical port is connected to my receiver and the HDMI is connected to my TV. On the NUC I can select all the outputs from PulseAudio and they work (select them via the configuration tab). If I run
aplay -l it shows that there is one card with multiple devices.
I use Spotify and Kodi,. I want Spotify's audio sent to the Optical output and Kodi to use the HDMI output for audio.
If I open Kodi, I can only select the output selected in the configure tab of PulseAudio. The output tab in PulseAudio also only lists the output selected in the configured tab.
The question is, how can I get it working such that I can select a different audio output in Kodi, so that sounds from Kodi output via HDMI and all others sounds go via the optical out?