Help with audio setup. 7.1 LPCM over HDMI
#1
I am using kodibuntu on a Haswell i5 NUC. I am outputting audio and video via the mini displayport (HDMI2). My receiver is a Denon AVR4306, this can accept 7.1 24/96 LPCM but cannot decode Dolby True HD or DTS HD Master Audio.

I have selected 7.1 channels and I get sound; but whatever combination of settings I choose (fixed rate, passthrough, 8 channel decode, etc) my AVR only sees 5.1 channels coming in.

Am I missing some advancedsettings or something?
Reply
#2
DTS-HD master can only be decoded with version 16 (!) or later ... dcadec which is needed to decode master audio was not in version 15.

As you did not read the "Read this before posting" thread - I don't know which version / audio configuration you are running.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
OS: Ubuntu 14.04.3 LTS (kernel: Linux 3.13.0-68-generic)

Build: 16.0-BETA2 Git:98e0275

Compiled: Nov 22 2015
Reply
#4
http://paste.ubuntu.com/13555853/
Reply
#5
Well great!

I had sound yesterday, I turned on debugging and now no sound at all.

I tried reverting to an old version of guisettings.xml (which definitely worked before) but still no sound.

I suspect that when I rebooted the HDMI connection was not detected correctly. I have rebooted a couple of times but can't seem to get back to the working config. The options available to me for audio output device have changed.

FYI:
I have the following wiring setup.

HDMI 1:
NUC mini HDMI > Direct HDMI link to TV (the only purpose of this link is to send CEC commands from the NUC to turn the tv on and off and to change HDMI input)

HDMI 2:
NUC mini displayport > dp to hdmi cable > Denon AVR > Lumagen video processor > TV

(Signals that go through the amp are switched which blocks the cec commands unless you are on the right input - this is why I need the direct hdmi from NUC to TV).

Depending upon the order and timing that things start up the hdmi handshaking can go wrong. It would probably help if I could force the correct settings (perhaps in advancedsettings?) but I need some help to figure out how to do this.
Reply
#6
New log with sound working but only giving 5.1 instead of 7.1:

http://paste.ubuntu.com/13556797/
Reply
#7
I have attempted to follow the instructions in this thread in order to force edid settings to be loaded from a file:
http://forum.kodi.tv/showthread.php?tid=...pid2148505

I have checked which HDMI port is conected - they both are:
Code:
matt@kodi:~$ cat /sys/class/drm/card0-HDMI-A-1/status
connected

matt@kodi:~$ cat /sys/class/drm/card0-HDMI-A-2/status
connected


Since I want the output over HDMI 2 I have copied this edid to a file:
Code:
matt@kodi:~$ sudo cp /sys/class/drm/card0-HDMI-A-2/edid /lib/firmware/edid/edid.bin

and made the following change in /etc/default/grub
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=HDMI-A-2:1920x1080@24D drm_kms_helper.edid_firmware=HDMI-A-2:edid/edid.bin"

I have then added the script posted: "/etc/initramfs-tools/hooks/include-edid-data"
Code:
#!/bin/sh

PREREQ="udev"
prereqs()
{
   echo "$PREREQ"
}

case $1 in
prereqs)
   prereqs
   exit 0
   ;;
esac

. /usr/share/initramfs-tools/hook-functions
# Begin real processing below this line

if [ ! -e "${DESTDIR}/lib/firmware/edid" ]; then
    mkdir -p "${DESTDIR}/lib/firmware/edid"
fi

if [ -r "/lib/firmware/edid/edid.bin" ]; then
   cp "/lib/firmware/edid/edid.bin" "${DESTDIR}/lib/firmware/edid/"
fi

manual_add_modules i915 radeon
exit 0

...and make it executable:
Code:
sudo chmod +x /etc/initramfs-tools/hooks/include-edid-data


Then...
Code:
matt@kodi:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-3.13.0-68-generic

sudo update-grubmatt@kodi:~$ sudo update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.13.0-68-generic
Found initrd image: /boot/initrd.img-3.13.0-68-generic
Found linux image: /boot/vmlinuz-3.13.0-66-generic
Found initrd image: /boot/initrd.img-3.13.0-66-generic
Found linux image: /boot/vmlinuz-3.13.0-65-generic
Found initrd image: /boot/initrd.img-3.13.0-65-generic
Found linux image: /boot/vmlinuz-3.13.0-63-generic
Found initrd image: /boot/initrd.img-3.13.0-63-generic
Found linux image: /boot/vmlinuz-3.13.0-62-generic
Found initrd image: /boot/initrd.img-3.13.0-62-generic
Found linux image: /boot/vmlinuz-3.13.0-61-generic
Found initrd image: /boot/initrd.img-3.13.0-61-generic
Found linux image: /boot/vmlinuz-3.13.0-57-generic
Found initrd image: /boot/initrd.img-3.13.0-57-generic
Found linux image: /boot/vmlinuz-3.13.0-55-generic
Found initrd image: /boot/initrd.img-3.13.0-55-generic
Found linux image: /boot/vmlinuz-3.13.0-53-generic
Found initrd image: /boot/initrd.img-3.13.0-53-generic
Found linux image: /boot/vmlinuz-3.13.0-52-generic
Found initrd image: /boot/initrd.img-3.13.0-52-generic
Found linux image: /boot/vmlinuz-3.13.0-49-generic
Found initrd image: /boot/initrd.img-3.13.0-49-generic
Found linux image: /boot/vmlinuz-3.13.0-45-generic
Found initrd image: /boot/initrd.img-3.13.0-45-generic
Found linux image: /boot/vmlinuz-3.13.0-43-generic
Found initrd image: /boot/initrd.img-3.13.0-43-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done


Is this supposed to always ensure that kodi will get the correct HDMI connection?

Now, after reboot, I get no picture
Reply
#8
I reverted to the old grub config and rebooted and now I have picture back:

In /etc/default/grub
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=HDMI-A-2:1920x1080@24D drm_kms_helper.edid_firmware=HDMI-A-2:edid/edid.bin"

Then:
Code:
sudo update-initramfs -u
sudo update-grub
sudo shutdown -r now

Is 1920x1080@24D a valid video mode?

I guess the problem is in the script?
Code:
manual_add_modules i915 radeon
Sounds like it is for ATI not intel - is this wrong?
Reply
#9
i915 is intel.

Try with 4.4-rc3 kernel, please

Quote:11:17:21 T:140464113956864 NOTICE: m_channels : FL,FR,LFE,FC,BL,BR
11:17:21 T:140464113956864 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000
11:17:21 T:140464113956864 NOTICE: m_dataFormats : AE_FMT_AC3,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AAC
^^ it really only tells 6 channels.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#10
Playing from the PS3 I can get 7.1 fine.

Note my 7.1 is: FL FR C SL SR SBL SBR SW

I think some newer AVRs have side channels rather than SBL and SBR (Surround Back Left/Right).
Does this make a difference?

Playing from kodi the amp only sees FL FR C SL SR SW despite saying 7.1 in the onscreen info.
Reply
#11
Whatever ... Your AVR only tells this speakers:

Quote:11:17:21 T:140464113956864 NOTICE: m_channels : FL,FR,LFE,FC,BL,BR

This has absolutely nothing to do with kodi ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#12
Try: sudo apt-get install linux-image-generic-lts-vivid and see if this later kernel "detects" something else ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#13
Seems to have the same result in terms of audio... 5.1 instead of 7.1

http://paste.ubuntu.com/13558336/

I am now on kernel: 3.19.0-33-generic
Reply
#14
It even misses the 192 khz rate ... here try this edid with kernel 4.4-rc2: https://dl.dropboxusercontent.com/u/5572...arantz.bin

and post dmesg | pastebinit and kodi.log again, please

And alternatively - visit me on IRC #xbmc-xvba I have some hack in mind to fake 8 channels

See:
Quote:09:55:33 T:140418027853952 NOTICE: Device 2
09:55:33 T:140418027853952 NOTICE: m_deviceName : hdmi:CARD=HDMI,DEV=0
09:55:33 T:140418027853952 NOTICE: m_displayName : HDA Intel
09:55:33 T:140418027853952 NOTICE: m_displayNameExtra: MJI marantz-AVR on HDMI #0
09:55:33 T:140418027853952 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
09:55:33 T:140418027853952 NOTICE: m_channels : FL,FR,LFE,FC,BL,BR,BC,BLOC,BROC
09:55:33 T:140418027853952 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000
09:55:33 T:140418027853952 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
09:55:33 T:140418027853952 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#15
So if I set the following:

Output configuration: Fixed
Limit sampling rate (kHz): 96.0

Then cycle through the options for Number of channels the amp sees:

2.0: FL FR
2.1: LFE FL C FR SL SR
3.0: LFE FL C FR SL SR
3.1: LFE FL C FR SL SR
4.0: FL FR SL SR
4.1: LFE FL C FR SL SR
5.0: LFE FL C FR SL SR
5.1: LFE FL C FR SL SR
7.0: LFE FL C FR SL SR
7.1: LFE FL C FR SL SR

From PS3 playing the same blu-ray I get:
7.1: LFE FL C FR SL SR SBL SBR
This is 100% on the input side and not using Matrix expansion to get 7.1 output.
Reply

Logout Mark Read Team Forum Stats Members Help
Help with audio setup. 7.1 LPCM over HDMI0