I followed this guide and got it working with very few changes. However, I cannot get digital anything to work. Analog audio outputs just fine. It is even multi-channel but if I turn Digital on in XBMC I get the failed to initialize audio device error message.
Zotac MAG HD-ND01 (ION)
Onkyo SR606 Reciever using HDMI (SPDIF, also connected)
Alsa 1.0.23
Nvidia 256
Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC888 Digital [ALC888 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
Code:
$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
HDA NVidia, ALC888 Analog
Default Audio Device
front:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
Front speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, NVIDIA HDMI
HDMI Audio Output
I had to make minor modifications to remapping to make it work correctly with my setup. Speaker test correctly outputs audio to every channel.
Code:
$ cat /etc/asound.conf
pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}
pcm.!remap-surround71 {
type route
slave.pcm "hw:0,3"
ttable {
0.0= 1 # front left
1.1= 1 # front right
2.6= 1 # rear left
3.7= 1 # rear right
4.2= 1 # center
5.3= 1 # lfe
6.4= 1 # side left
7.5= 1 # side right
}
}
Any help getting Digital output to work would really be appreciated.
*** UPDATE ***
I had been testing so far with only .mkv video files but I loaded an avi file in XBMC and there was sound. The input was Digital/HDMI and yet I could still hear the audio. This is a first for me on this new computer. It was only 2 channels (stereo) but I think it means that my configuration may be very close to working correctly. Again, any help getting Digital output to work would really be appreciated.
-Mark