Kodi Community Forum

Full Version: 5.1 Sound over HDMI Haswell CPU
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm starting to run out of things to try to get this working. For some reason XBMC only outputs 2 channels to the Pioneer AVR which is then connected to the TV, all via HDMI

aplay -L

amixer output

Playback channels = mono??

Image

Image

If i play a file that has DTS (6 channel sound) xmbc.log reports.

Code:
01:30:04 T:140186193409792   DEBUG: CSoftAE::Run - Sink restart flagged
01:30:04 T:140186193409792    INFO: CSoftAE::InternalOpenSink - RAW passthrough enabled
01:30:04 T:140186193409792    INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
01:30:04 T:140186461607808   DEBUG: LIRC: Update - NEW at 127402:000000000000000b 00 SELECT_UP XboxDVDDongle (SELECT_UP)
01:30:04 T:140184528066304 WARNING: CRenderManager::Configure - timeout waiting for previous frame
01:30:04 T:140184528066304  NOTICE: Display resolution ADJUST : HDMI3: 1920x1080 @ 23.98Hz (21) (weight: 0.000)
01:30:04 T:140186461607808    INFO: XRANDR: /usr/lib/xbmc/xbmc-xrandr --output HDMI3 --mode 0x51
01:30:04 T:140186193409792    INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=MID,DEV=2"
01:30:04 T:140186193409792    INFO: CAESinkALSA::Initialize - Opened device "hdmi:CARD=MID,DEV=2,AES0=0x06,AES1=0x82,AES2=0x0$
01:30:04 T:140186193409792   DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
01:30:04 T:140186193409792   DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
01:30:04 T:140186193409792   DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
01:30:04 T:140186193409792   DEBUG: CSoftAE::InternalOpenSink - ALSA Initialized:
01:30:04 T:140186193409792   DEBUG:   Output Device : HDA Intel MID
01:30:04 T:140186193409792   DEBUG:   Sample Rate   : 48000
01:30:04 T:140186193409792   DEBUG:   Sample Format : AE_FMT_S16NE
01:30:04 T:140186193409792   DEBUG:   Channel Count : 2
01:30:04 T:140186193409792   DEBUG:   Channel Layout: FL,FR
01:30:04 T:140186193409792   DEBUG:   Frames        : 2400
01:30:04 T:140186193409792   DEBUG:   Frame Samples : 4800
01:30:04 T:140186193409792   DEBUG:   Frame Size    : 4
01:30:04 T:140186193409792   DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 9600
01:30:04 T:140184167376640   DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
01:30:04 T:140184167376640   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:209210.110000, should be:10057.784667, error:-1991$
01:30:04 T:140184125413120   DEBUG: CDVDPlayer::HandleMessages - player started 1
01:30:04 T:140186193409792   DEBUG: CSoftAE::Run - Sink restart flagged
01:30:04 T:140186193409792    INFO: CSoftAE::InternalOpenSink - RAW passthrough enabled
01:30:04 T:140186193409792    INFO: CSoftAE::InternalOpenSink - keeping old sink with : AE_FMT_DTS, FL,FR, 48000hz
01:30:04 T:140186193409792   DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 9600

A couple of interesting lines. "sink incompatible" and "keeping old sink with" FL and FR

On startup xbmc detects the AVR with 7.1 support.

Startup Alsa devices dectected

The HTPC is connected via HDMI to "PIO VSX-826 on HDMI #2" device 3 in the list which has 7.1 capabilities but is only connected to 5.1 speaker setup.

Below is the audio information from the test file i was using to test with.
mediainfo audio settings test file.

I'm a little bit lost as to where to look now. I have searched for asound.conf files no user or system wide files exist.

Kernel is Ubuntu 3.11.0 x64 with this patch ALSA HDA - HDMI

I also checked out the kernel source for 3.12.7 and confirmed that the above patch is now included in the source...
Thanks for cutting your logfile.
(2014-01-14, 23:06)fritsch Wrote: [ -> ]Thanks for cutting your logfile.

Full Log Smile
Print screen your audio configuration in XBMC.
(2014-01-15, 00:06)negge Wrote: [ -> ]Print screen your audio configuration in XBMC.

At work so cant get a screenie atm.

Code:
<audiooutput>
        <ac3passthrough>true</ac3passthrough>
        <audiodevice>ALSA:hdmi:CARD=MID,DEV=2</audiodevice>
        <channels>8</channels>
        <dtshdpassthrough>true</dtshdpassthrough>
        <dtspassthrough>true</dtspassthrough>
        <guisoundmode>1</guisoundmode>
        <mode>2</mode>
        <multichannellpcm>true</multichannellpcm>
        <normalizelevels>true</normalizelevels>
        <passthroughaac>false</passthroughaac>
        <passthroughdevice>ALSA:hdmi:CARD=MID,DEV=2</passthroughdevice>
        <stereoupmix>false</stereoupmix>
        <truehdpassthrough>true</truehdpassthrough>
    </audiooutput>

I came across a thread on the Open Elec forums that talk about Intel/Pioneer AVR combo having issues even with the intel patches in the kernel.

I will update my kernel to 3.13.RC8 and see if the situation improves.
/proc/asound/card0/eld#0.2

adding more info.
Your AVR tells DTS, which you told me in IRC. If this happens xbmc has succesfully passed through the Sound without touching anything. Check your AVR manual.
(2014-01-15, 10:44)fritsch Wrote: [ -> ]Your AVR tells DTS, which you told me in IRC. If this happens xbmc has succesfully passed through the Sound without touching anything. Check your AVR manual.

AVR had been changed to A + B speaker channels which causes it to output stereo only. Changed back to A only and 5.1 again. The joys of a 2 year old and the AVR remote.