Hello guys,
I managed to get the DTS 5.1 sound working on xbmc using the optical out!
HOW TO:
List of audio output: aplay -L
Code:
romain@teka-htpc:~$ aplay -L
default
pulse
Playback/recording through the PulseAudio sound server
front:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
HDA Intel, ALC887 Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
Direct sample mixing device
dmix:CARD=Intel,DEV=1
HDA Intel, ALC887 Digital
Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
HDA Intel, ALC887 Digital
Direct sample snooping device
hw:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
HDA Intel, ALC887 Digital
Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
HDA Intel, ALC887 Analog
Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
HDA Intel, ALC887 Digital
Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
HDA NVidia, NVIDIA HDMI
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, NVIDIA HDMI
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, NVIDIA HDMI
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, NVIDIA HDMI
HDMI Audio Output
dmix:CARD=NVidia,DEV=3
HDA NVidia, NVIDIA HDMI
Direct sample mixing device
dmix:CARD=NVidia,DEV=7
HDA NVidia, NVIDIA HDMI
Direct sample mixing device
dmix:CARD=NVidia,DEV=8
HDA NVidia, NVIDIA HDMI
Direct sample mixing device
dmix:CARD=NVidia,DEV=9
HDA NVidia, NVIDIA HDMI
Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
HDA NVidia, NVIDIA HDMI
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
HDA NVidia, NVIDIA HDMI
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
HDA NVidia, NVIDIA HDMI
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
HDA NVidia, NVIDIA HDMI
Direct sample snooping device
hw:CARD=NVidia,DEV=3
HDA NVidia, NVIDIA HDMI
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
HDA NVidia, NVIDIA HDMI
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
HDA NVidia, NVIDIA HDMI
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
HDA NVidia, NVIDIA HDMI
Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
HDA NVidia, NVIDIA HDMI
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
HDA NVidia, NVIDIA HDMI
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
HDA NVidia, NVIDIA HDMI
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
HDA NVidia, NVIDIA HDMI
Hardware device with all software conversions
Choose the output you want to use in XBMC.
Names of the output are the one just before the ":CARD=NVidia" string. Ex: hw, plughw, hdmi...
I found out that the "hw" is the one that works for DTS passthrough via the optical out. It should work for Dolby Digital also. You can try other outputs if that one does'nt work for you or if you want to use HDMI.
I configured it in XBMC... See screens below!
Another way to try your optical out and to check if VDPAU works on your system:
Run the command:
mplayer -vc ffmpeg12vdpau,ffh264vdpau -ac hwdts,hwac3 -ao alsa:device=hw=0.1 <your1080pFile.mkv>
"-vc" force the use of VDPAU for video playback
"-ac" force the audio codecs
"-ao" force the audio output to the "hw"
Hope it helps!