Posts: 299
Joined: Jul 2008
Reputation:
0
In an attempt to get hdmi sound working I failed to document what settings I was using for sound over coax. I have about 15 options to choose from on both audio output device and passthrough output device. Can someone explain what these mean/do?
Posts: 974
Joined: May 2006
Reputation:
10
This is kind of how I understand it, if I'm off, someone please correct me.
Both are for outputting sound. The audio device is when XBMC decodes the audio in whatever format it's in and sends out the decoded bits (if connected digitally ala HDMI or SPDIF) to receiver or TV receiver. The output can be either stereo or PCM which a receiver should be able to output to the correct channels. Most of the time, if you're connected directly to a TV, and have no checkmarks next to DTS or AC3 capable receiver, XBMC will downmix the multichannel audio to stereo and send that out.
The passthrough device is when XBMC doesn't decode the audio bitstream. It passes the audio information through to something downstream to decode and then convert to analog to put out to the speakers. So if it's a DTS or AC3 (Dolby Digital) sound track, XBMC just passes that information along to your receiver or TV to deal with. That's why you can check or uncheck DTS and AC3 capable receiver. If your downstream equipment is capable of decoding the audio information, and you have a passthrough device enabled, XBMC will just push the encoded bits through.
Now, for as to choosing which option for the two, we need more information. What hardware are you running? I'm assuming it's either integrated audio or a discrete GPU with HDMI out. Is it an all in one box e.g. a Revo? AMD, Intel, or nVidia?
Posts: 3,025
Joined: Sep 2011
Reputation:
255
DDDamian
Team-XBMC Developer
Posts: 3,025
pumkinuts explaination is bang-on correct.
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Posts: 3,025
Joined: Sep 2011
Reputation:
255
DDDamian
Team-XBMC Developer
Posts: 3,025
If you don't have those checked XBMC decodes them to pcm, which any sound device should play.
The device selected, and how it's set up, has a great deal to do with what pcm sample rates and channels you can play, as well as whether passthrough or encoded formats like AC3 and DTS can be played through it.
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Posts: 299
Joined: Jul 2008
Reputation:
0
HDMI is straight to the tv and digital coax is to a cheap little digital reciever.
Posts: 3,025
Joined: Sep 2011
Reputation:
255
DDDamian
Team-XBMC Developer
Posts: 3,025
So your sound is going via spdif/coax to the receiver. If the receiver can handle DTS/AC3 enable those accordingly and set your device to the receiver and XBMC to optical (same as coax). If it can't handle DTS/AC3 disable them accordingly.
If you want the sound to the TV, select HDMI, and the TV as your audio device. It will likely handle AC3 fine, but is not likely to handle DTS, so disable that.
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Posts: 61
Joined: Oct 2011
Reputation:
0
2012-04-27, 10:16
(This post was last modified: 2012-04-27, 10:17 by boosted.)
Hi DDDamian, could you offer any advice on where / what I could look at to get DTS / AC3?
I have an NVidia GTX460 connected via HDMI to my receiver (Yamaha RX-V671) and HDMI to my TV. I have the onboard audio disabled in BIOS.
I just installed Lubuntu 12.04 and sound wasn't working. I installed pulseaudio and added 'load-module module-alsa-sink device=hw:0,7' to /etc/pulse/default.pa. I normally do this.
Sound now works in and out of XBMC but in XBMC I had to disable DTS and AC3, my receiver displays 'PCM' when I play a DTS movie.
Before adding the line to default.pa, pulseaudio volume control gave me options for DTS and AC3 plus others.
sudo dmesg | grep HDMI
[ 15.123243] HDMI status: Codec=0 Pin=5 Presence_Detect=0 ELD_Valid=0
[ 15.147237] HDMI status: Codec=1 Pin=5 Presence_Detect=0 ELD_Valid=0
[ 15.171215] HDMI status: Codec=2 Pin=5 Presence_Detect=0 ELD_Valid=0
[ 15.195208] HDMI status: Codec=3 Pin=5 Presence_Detect=0 ELD_Valid=0
[ 15.195259] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input9
[ 15.195365] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input10
[ 15.195461] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input11
[ 15.195555] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input12
[ 16.379283] HDMI hot plug event: Codec=0 Pin=5 Presence_Detect=1 ELD_Valid=0
[ 16.386504] HDMI status: Codec=0 Pin=5 Presence_Detect=1 ELD_Valid=0
[ 16.397162] HDMI hot plug event: Codec=0 Pin=5 Presence_Detect=0 ELD_Valid=1
[ 16.402497] HDMI status: Codec=0 Pin=5 Presence_Detect=1 ELD_Valid=1
[ 17.170062] HDMI: detected monitor ASUS ML238
[ 17.170064] at connection type HDMI
[ 17.170066] HDMI: available speakers: FL/FR
[ 17.170069] HDMI: supports coding type LPCM: channels = 2, rates = 32000 44100 48000 88200 96000 176400 192000, bits = 16 20 24
[ 17.170080] HDMI hot plug event: Codec=1 Pin=5 Presence_Detect=1 ELD_Valid=0
[ 17.186047] HDMI status: Codec=1 Pin=5 Presence_Detect=1 ELD_Valid=1
[ 17.977607] HDMI: detected monitor SHARP HDMI
[ 17.977609] at connection type HDMI
[ 17.977613] HDMI: available speakers: FL/FR LFE FC RL/RR RC RLC/RRC
[ 17.977619] HDMI: supports coding type LPCM: channels = 2, rates = 32000 44100 48000 88200 96000 176400 192000, bits = 16 20 24
[ 17.977624] HDMI: supports coding type LPCM: channels = 8, rates = 32000 44100 48000 88200 96000 176400 192000, bits = 16 20 24
[ 17.977628] HDMI: supports coding type AC-3: channels = 6, rates = 32000 44100 48000, max bitrate = 640000
[ 17.977633] HDMI: supports coding type DTS: channels = 7, rates = 32000 44100 48000 88200 96000, max bitrate = 1536000
[ 17.977636] HDMI: supports coding type DSD (One Bit Audio): channels = 6, rates = 44100
[ 17.977640] HDMI: supports coding type E-AC-3/DD+ (Dolby Digital Plus): channels = 8, rates = 44100 48000
[ 17.977643] HDMI: supports coding type MLP (Dolby TrueHD): channels = 8, rates = 48000 96000 192000
[ 17.977647] HDMI: supports coding type DTS-HD: channels = 8, rates = 48000 96000 192000
[ 17.977655] HDMI hot plug event: Codec=1 Pin=5 Presence_Detect=0 ELD_Valid=1
[ 17.985596] HDMI status: Codec=1 Pin=5 Presence_Detect=1 ELD_Valid=1
[ 18.753145] HDMI: detected monitor SHARP HDMI
[ 18.753146] at connection type HDMI
[ 18.753148] HDMI: available speakers: FL/FR LFE FC RL/RR RC RLC/RRC
[ 18.753151] HDMI: supports coding type LPCM: channels = 2, rates = 32000 44100 48000 88200 96000 176400 192000, bits = 16 20 24
[ 18.753153] HDMI: supports coding type LPCM: channels = 8, rates = 32000 44100 48000 88200 96000 176400 192000, bits = 16 20 24
[ 18.753155] HDMI: supports coding type AC-3: channels = 6, rates = 32000 44100 48000, max bitrate = 640000
[ 18.753157] HDMI: supports coding type DTS: channels = 7, rates = 32000 44100 48000 88200 96000, max bitrate = 1536000
[ 18.753158] HDMI: supports coding type DSD (One Bit Audio): channels = 6, rates = 44100
[ 18.753160] HDMI: supports coding type E-AC-3/DD+ (Dolby Digital Plus): channels = 8, rates = 44100 48000
[ 18.753161] HDMI: supports coding type MLP (Dolby TrueHD): channels = 8, rates = 48000 96000 192000
[ 18.753163] HDMI: supports coding type DTS-HD: channels = 8, rates = 48000 96000 192000
Posts: 61
Joined: Oct 2011
Reputation:
0
2012-04-28, 09:05
(This post was last modified: 2012-04-28, 09:06 by boosted.)
I just can't seem to get DTS / AC3 to work, tried all options except 'custom' not sure what to put under 'custom'
pulseaudio volume control does show options for DTS and AC3, didn't scroll down.
Posts: 3,025
Joined: Sep 2011
Reputation:
255
DDDamian
Team-XBMC Developer
Posts: 3,025
Hey guys - sorry I'm not a linux guy, but I'm very involved in working with gnif on the AudioEngine code, and one of the recent features added is the ability to enumerate or determine all the device capabilities of your system, something which is obviously a difficult thing on Linux.
Because you are connected via HDMI, AE can read the EDID info and determine the correct device to connect to.
Search for the AudioEngine main thread in the development subforum. You will have to compile your own, or wait about a month until the final merge with master is done.
If you don't wish to go that route (although I would recommend it) hopefully a more Linux-knowledgeable person can help you out here.
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!