Had a few battles getting my SPDIF sound output working and wanted to post the process now that it is working. Just an FYI that this is an ASUS M2N-E motherboard with the snd-hda-intel driver under openSUSE 11.0 and KDE. Please feel free to add comments or tell me if this was all actually required.
"Start" button, configure desktop, sound, sound system, hardware tab.
Set audio device to "advanced linux sound architecture"
If you haven't already, install alsa-utils so that you have aplay and alsamixer installed on your system.
From terminal run:
aplay -L
Output:
Code:
front:CARD=NVidia,DEV=0
HDA NVidia, AD198x Analog
Front speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, AD198x Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, AD198x Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, AD198x Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, AD198x Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, AD198x Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
HDA NVidia, AD198x Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia
HDMI Audio Output
null
Discard all samples (playback) or generate zero samples (capture)
Note that my digital output is listed as iec958
From terminal run:
alsamixer
For my specific setup I needed to make sure "IEC958" was not muted (shouldn't be MM) use m to toggle and "IEC958 playback source" was set to PCM use up/down arrows to toggle.
Testing
From terminal run:
speaker-test -Dplug:iec958 -c2 -l5 -twav (Dplug: corrolates to aplay -L output and will test a specific output)
speaker-test -c2 -l5 -twav (Tests default playback device)
To change the default playback device create a .asoundrc file in your home directory with:
Code:
pcm.!default iec958
(iec958 corrolates to aplay -L output)
Restart the sound system if you changed the default playback device
From terminal run:
rcalsasound restart