Linux HDMI - HD audio passthrough bug ? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Linux HDMI - HD audio passthrough bug ? (/showthread.php?tid=297918) |
HDMI - HD audio passthrough bug ? - piotrasd - 2016-11-26 Hi In audio topic maybe someone can give me some light mainboard Asrock J3455-ITX (Apollo Lake, Broxton) i checked cat /proc/asound/card0/eld\#2.0" Code: monitor_present 1 Code: cat /proc/asound/card0/codec\#2 | grep HBR showing me support HD audio, also in DP codec info showing me HBR support from kodi Code: 21:12:06.572 T:139961736878144 NOTICE: Device 5 but no luck with any hd audio file - and debug give me strange information like Code: 21:17:11.548 T:140489013737536 INFO: GL: Maximum texture width: 8192 any idea ? :/ that Kodi bug ? what is strange please look on screen - info from procesing audio - there is 5 RAW channels and in log file 2ch. FL,FR ? here screenshoots (based on samples from log files) http://imgur.com/a/frCvU and here full logs https://www.sendspace.com/file/mctpzg Just please advice if i should raport bug to drm-intel or asound of kernel or this is Kodi issue ? Thanks @flyingernst for logs from AVR (on my harman i had problem with EDID so i wanted by sure the other users (with correct EDID) also had issue) PS. A/V sync disabled was. tested on latest official LibreELEC (kernel 4.8.x ) and dev builds with latest kernel drm-intel-nightly 4.9rc6 few people with Apollo and Kaby lake raported same issue RE: HDMI - HD audio passthrough bug ? - fritsch - 2016-11-26 You cut the totally wrong part from your kodi log - looking into it, one can directly see that kodi successfully opens 8 channel RAW 192 khz. You have a kernel bug here and should investigate with the Linux / Kernel people. Btw. just check from commandline. Stop kodi (on LE: systemctl stop kodi) and send a dts-hd file yourself to the HW directly using ALSA. There are a whole lot of howtos out there on checking that. It has nothing, absolutely nothing to do with kodi, we just use ALSA API. Samples: http://www.avenard.org/files/media/mediatest/audiotest/HDAUDIO/Passthrough/ Howto-Test: Code: #TrueHD RE: HDMI - HD audio passthrough bug ? - piotrasd - 2016-11-26 I tried, my system is 5.1 co i test with your -c8 after that i changed on -c6 Code: Playing raw data 'testi.truehd.anssi1.ff.60s.spdif' : Signed 16 bit Little Endian, Rate 19200 Hz, Channels 6 RE: HDMI - HD audio passthrough bug ? - flyingernst - 2016-11-26 Fritsch, did not make your test, will not be able to today. But one thing: Whenever it is the case, that LE gives out an audio signal (DTS-HD in 5.1 for example), what only happens on some files --> then AVR shows 7.1 LPCM with 192kHz and gives ugly noises...so it is not passing the correct audio codec towards the AVR. I will send you my logs too. Sofern LE überhaupt einen Ton ausspuckt bei HD Audio-Tests, zum Beispiel bei einem meiner DTS HD Testfiles, dann kommen grausame Töne aus dem Lautsprecher...so ein kleiner Alienangriff auf die Ohren :-)....und der AVR zeigt LPCM 7.1 192kHz, egal was die Quelle eigentlich hergibt. Ich schick dir mal die vollen Logs welche ich auch piotrasd geschickt habe RE: HDMI - HD audio passthrough bug ? - fritsch - 2016-11-26 (2016-11-26, 17:02)piotrasd Wrote: I tried, my system is 5.1 co i test with your -c8 after that i changed on -c6 oO. We passthrough dtshd as 8 channels 192 kHz. Always! No matter how many speakers attached. It's passthrough. The avr copes with it. It's a bandwidth thing. The first log tells it loud and clear. Issue opening 8/192 driver bug. RE: HDMI - HD audio passthrough bug ? - fritsch - 2016-11-26 Looking more exact, "we" missed a "zero" (0) for your 19200, it should be 192000 <- 192 khz and not 19.2 khz. All the kodi logs are useless - I need to know what happens with the above commands :-) RE: HDMI - HD audio passthrough bug ? - czombos - 2016-11-27 A similar problem with the same motherboard (Asrock J3455-ITX) AC3, DTS works TrueHD, DTSHD not work The two audio tracks when playing unsounded aplay -D 'hdmi:CARD=PCH,DEV=0,AES0=2' -c8 -fs16_le -r192000 testi.truehd.anssi1.ff.60s.spdif aplay -D 'hdmi:CARD=PCH,DEV=0,AES0=2' -c8 -fs16_le -r192000 testi.dtshd.anssi1.ma-71-24.spdif kodi@HTPC:~$ aplay -D 'hdmi:CARD=PCH,DEV=0,AES0=2' -c8 -fs16_le -r192000 testi.truehd.anssi1.ff.60s.spdif Playing raw data 'testi.truehd.anssi1.ff.60s.spdif' : Signed 16 bit Little Endian, Rate 192000 Hz, Channels 8 kodi@HTPC:~$ dpkg -l |grep mesa | pastebinit http://paste.ubuntu.com/23544331/ kodi@HTPC:~$ DISPLAY=:0 vainfo | pastebinit http://paste.ubuntu.com/23544333/ kodi@HTPC:~$ cat ~/.kodi/temp/kodi.log | pastebinit http://paste.ubuntu.com/23544334/ kodi@HTPC:~$ dmesg | pastebinit http://paste.ubuntu.com/23544335/ kodi@HTPC:~$ id | pastebinit http://paste.ubuntu.com/23544336/ kodi@HTPC:~$ amixer | pastebinit http://paste.ubuntu.com/23544337/ RE: HDMI - HD audio passthrough bug ? - fritsch - 2016-11-27 Yeah - as said now twenty times. Kernel bug -> please try to get attention on bugs.freedesktop.org or visit the ALSA channel on freenode. If you are really, really lucky you meet "Annsi" on kodi channel and can link him this thread. He is an ALSA upstream dev. Again: It is nothing kodi could fix in kodi. RE: HDMI - HD audio passthrough bug ? - czombos - 2016-11-27 Thanks for the info! RE: HDMI - HD audio passthrough bug ? - piotrasd - 2016-11-27 im tested today Asus Vivo - based on skylake ... same issue, and here is native HDMI without DP chip converter to HDMI so problem is bigger (EDID/ELD show exposed all codec DTS-hd, TrueHD etc. kodi also ... but no sound ... ) RE: HDMI - HD audio passthrough bug ? - fritsch - 2016-11-27 So - now - we start a whining party? :-) Btw. you contacted me 5 weeks ago with that issue and I told you: It's a kernel bug, please file it at bugs.freedesktop.org There are some thousand skylake based NUCs out there that do dts-hd / truehd just fine ... wee LibreELEC thread. So without proper bug on bugs.freedesktop.org nothing will move forward. RE: HDMI - HD audio passthrough bug ? - piotrasd - 2016-11-27 we already made but i dont know if for that is responsilbe drm-intel or some asound/alsa core ? any idea how to more debug ? where signal audio dissapear after play "aplay -D 'hdmi:CARD=PCH,DEV=0,AES0=2' -c8 -fs16_le -r192000 testi.truehd.anssi1.ff.60s.spdif" ?? (im updated even alsa-lib/utils - to latest because i saw some changes for broxton and topology) RE: HDMI - HD audio passthrough bug ? - fritsch - 2016-11-27 I pinged Anssi in the dev channel - let's see. Don't go on his nerves, please. RE: HDMI - HD audio passthrough bug ? - piotrasd - 2016-11-27 drm debug after play sample give me ... Code: [ 71.563430] [drm:i915_audio_component_get_eld] Not valid for port C maybe that help link: https://bugs.freedesktop.org/show_bug.cgi?id=98797 RE: HDMI - HD audio passthrough bug ? - fritsch - 2016-11-27 Link your bug that you filed on bugs.freedesktop.org here and feed this bug with all the information you have. |