Alan Bromborsky - 2017-08-15

I running ubuntu 16.04 and wish to route the audio output of Kodi to ecasound for post processing. Kodi will not let me pipe audio. I can only send the Kodi audio to an alsa device. I have a sound card (Xonar D2) with an spdif output and input. I could connect a cable between the output and input with Kodi configured to send audio to the spdif ouput put and ecasound configure to read from the spdif input. My question is there a simple way using alsa to do the same thing in software. If this is possible a link to an example would be greatly appreciated.