I've seenHow can I force the use of SPDIF in .asoundrc?
pcm.!default spdif
or if that does not work
pcm.!default {
type hw
card 0
device 2
}
That config file tells ALSA to override using the default device, and instead makes 'hardware device 2' your default. That's probably going to be your SPDIF out but you may have to change it for your configuration.