There will usually be several audio devices listed on your system. To test you need to tell aplay which is the digital output. I will post the output of my system. I also have a nVidia card that has HDMI outputs, but I didn't include them in these examples.
First, here is the output of
aplay -L. The digital out is in red lettering:
Code:
~$ aplay -L
default
Playback/recording through the PulseAudio sound server
pulse
Playback/recording through the PulseAudio sound server
front:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
Front speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
'iec958:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Digital
IEC958 (S/PDIF) Digital Audio Output'
dmix:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=1
HDA Intel PCH, STAC92xx Digital
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
HDA Intel PCH, STAC92xx Digital
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
HDA Intel PCH, STAC92xx Digital
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, STAC92xx Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
HDA Intel PCH, STAC92xx Digital
Hardware device with all software conversions
Now the output of
aplay -l.
Code:
~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
This means to play a file, I have to specify the card and the device. the card will always be 0, but the device can be 0 or 1. I tried two methods, and here are my results:
Code:
~$ aplay -D hw:0,1 ~/Music/SURROUNDTEST_011212.wav
Playing WAVE '/home/paul/Music/SURROUNDTEST_011212.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
:~$ aplay -D iec958:CARD=PCH,DEV=0 ~/Music/SURROUNDTEST_011212.wav
Playing WAVE '/home/paul/Music/SURROUNDTEST_011212.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
If I go by the info I got from
aplay -L, then my digital SHOULD be card=0 device=0. So my first example would be using the wrong output. When I did get sound, it was a buzz and a whooshing sound. But I don't have this system set up for surround sound.
What you need to do is to try the outputs, and see if the DTS or DD light on the receiver comes on when trying to play through the different tests.
Edit: I found and corrected an error that I made when doing my tests.
Edited by waterhead - 11/18/12 at 6:40am