Kodi Community Forum

Full Version: Strange DD+ problem between AVR and Kodi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Good morning, everybody,

following the tutorials of the great @fritsch I turn kodi on my nuc 10i7 connected directly to the AVR Denon x2400h.
I have a strange problem: after watching a movie with the audio in DD+ (or stopping the movie) my deon stays with the audio set in DD+ despite I'm simply on the kodi dashboard.

Image

If in a second moment I resume the movie then the audio starts to jump (at random).
If I turn off the Denon and stop Kodi and restart them then everything works fine.
Both the nuc and the avr to the tv are connected with Belkin UltraHD cables.
What do you think it could be?

I leave you the logs, thanks to anyone who wants to help me.

- Xorg
- Vainfo
- Mesa
- Kodi
- id
- dmesg
- amixer
Quote:2020-07-12 17:35:43.974 T:140633700337408   DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
2020-07-12 17:35:43.974 T:140633700337408   DEBUG:   Output Device : HDA Intel PCH
2020-07-12 17:35:43.974 T:140633700337408   DEBUG:   Sample Rate   : 44100
2020-07-12 17:35:43.974 T:140633700337408   DEBUG:   Sample Format : AE_FMT_S32NE
2020-07-12 17:35:43.974 T:140633700337408   DEBUG:   Channel Count : 2
2020-07-12 17:35:43.974 T:140633700337408   DEBUG:   Channel Layout: FL, FR
2020-07-12 17:35:43.974 T:140633700337408   DEBUG:   Frames        : 2205
2020-07-12 17:35:43.974 T:140633700337408   DEBUG:   Frame Size    : 8

After you press stop we succcesfully resume to S32NE format. Looks like a kernel bug. Let me guess, the issue does not happen if you disable "Adjust Refreshrate", right?

Furthermore try to stop faking your EDID: 
[26413.157575] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-1"

please.
Hi fritsch,

the problem persists even if I disable the "Adjust Refreshrate".
Unfortunately I have to keep the edid because otherwise all movies in DD+ the audio jumps to random, always. (and not only when I stop and resume) and I also have input change problems on avr (if I go to sky and then come back in kodi I get a lost signal)

EDIT:

I took out the edid but it's still in DD+ even after I stopped the movie.

Here the log with the DD+ locked and the movie resumed: the audio skips (I pressed the info button on the remote control every time it skips)

Kodi.log
Nothing we can do for you.
but what do you think the problem could be? (so that I can investigate it ourselves)
No single idea. Never seen it before.
(2020-07-13, 16:18)fritsch Wrote: [ -> ]No single idea. Never seen it before.

The "interesting" thing is that I have a second nuc (J5005) with the exact same configurationthat and works perfectly, no problem.

At this point I think it could be the intel_hda but how can I update it if it is included in the kernel?

boh!
Which is what I told you at the beginning: looks like a kernel bug.

You can try to install up2date mainline kernel versions from here: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7/
  amd64/linux-headers-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb
  amd64/linux-headers-5.7.0-050700_5.7.0-050700.202006082127_all.deb
  amd64/linux-image-unsigned-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb
  amd64/linux-modules-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb

and install them in one command1: sudo dpkg -i fil1 file2 file3 file4

if you rely on secure boot -> it won't work anymore cause those are unsigned
Thank you very much. I'll try to do what you suggested tomorrow night after work.

thanks again!
@fritsch that's the first time I see you recommending on older kernel compared to what is actually installed. Interesting.
In fact now I have seen that he is running 5.7 already, which is NOT the default kernel of Ubuntu 20.04, so please just boot their 5.4 kernel and try with that.

Ubuntu does the versioning a bit different, they keep the third number on zero and count up at the end. So it's not older, but won't help.

So, please use the original Ubuntu 20.04 kernel. No idea why you are on a non standard one. Toyed around with oibaf repo?
Update :

- I did a clean installation from 0.
- I used the kernel suggested above
- I took the edid.bin off the boot.

It seems to be working fine for now, but I reserve the right to check it out better this weekend.

And no I haven't played with oibaf drivers but the whole system is in stable mode except the kernel (due to the fact that my hardware is "better" supported with the 5.7x kernel than 5.4x)

thank you very much for now
Today during the lunch break I did some rehearsals and unfortunately I have again problems with the movies and the audio in DD+ (only with that one) this evening after work I try to make a log
here are the logs, every time the audio skipped I pressed the "info" button that corresponds to this : "Keyboard: scancode: 0x1f, sym: 0x105, unicode: 0x0000, modifier: 0x0"

Kodi.log
dmesg