Odroid C2 - Sound drop with passthrough

Having issues with your DietPi installation, or, found a bug? Post it here.
Mez882
Posts: 24
Joined: Wed Nov 02, 2016 10:45 am

Odroid C2 - Sound drop with passthrough

Post by Mez882 »

Hi all!

I am the happy owner of an odroid C2 running on DietPi.
Everything seems to be running really well but one thing: I get some sound dropouts every few seconds when I play a movie with Kodi and enable HDMI passthrough.
This seems to happen only when HDMI passthrough is enabled.

Is anyone facing the same issue and was able to fix it?

I have tried Librelec on the same Odroid C2 and the passthrough works like a charm.

Cheers!
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid C2 - Sound drop with passthrough

Post by Fourdee »

Mez882 wrote:Hi all!

I am the happy owner of an odroid C2 running on DietPi.
Everything seems to be running really well but one thing: I get some sound dropouts every few seconds when I play a movie with Kodi and enable HDMI passthrough.
This seems to happen only when HDMI passthrough is enabled.

Is anyone facing the same issue and was able to fix it?

I have tried Librelec on the same Odroid C2 and the passthrough works like a charm.

Cheers!
Hi Mez,

Might be something we can track in kernel log. After the issue occurs, please paste the results of the following (its a big one) and i'll take a look:

Code: Select all

dmesg
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Mez882
Posts: 24
Joined: Wed Nov 02, 2016 10:45 am

Re: Odroid C2 - Sound drop with passthrough

Post by Mez882 »

Hi!
Here is the output of the dmesg command (file attached).
The sound drop seams to occur pretty much every 6/7 seconds.
It's very short. It sounds like if the sound was skipped forward for 1/8 of a second.
I tried various video files. Seems to happen with dolby or dts.
Thanks for looking into it, let me know if there is anything else you need!

Cheers,
Nicolas
Attachments
log.zip
dmesg
(11.49 KiB) Downloaded 125 times
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid C2 - Sound drop with passthrough

Post by Fourdee »

Mez882 wrote:Hi!
Here is the output of the dmesg command (file attached).
The sound drop seams to occur pretty much every 6/7 seconds.
It's very short. It sounds like if the sound was skipped forward for 1/8 of a second.
I tried various video files. Seems to happen with dolby or dts.
Thanks for looking into it, let me know if there is anything else you need!

Cheers,
Nicolas
Thanks Nicolas,

Yep, definetly something going wrong here, appears it keeps enabling/disabling the IEC958 HDMI:

Code: Select all

[91222.365300] aiu i2s playback enable
[91222.365328] audio_hw_958_enable 1
[91222.461534] aiu i2s playback disable
[91222.461552] audio_hw_958_enable 0
[91222.461625] [aml-i2s-dai]i2s dma ffffff800048e000,phy addr 1611005952,mode 2,ch 2
[91222.461631] ----aml_hw_iec958_init,runtime->rate=44100,sample_rate=5--
[91222.461635] aml_set_spdif_clk rate
[91222.461648] divider=22,frac=13030400,SDMval=2364
[91222.461660] set normal 512 fs /4 fs
[91222.461667] iec958 mode PCM24
[91222.461677] IEC958 24bit
[91222.461685] hdmitx: audio: aout notify rate 44100
[91222.461689] hdmitx: audio: aout notify size 32
[91222.461694] 958 with i2s
Any chance you can take a picture of your current audio settings screen in Kodi? The one under System settings. I'll see if I can replicate on my C2.

Also, have you tried a different HDMI cable, and whats your power supply being used (eg: Official HK 5v/2A)?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Mez882
Posts: 24
Joined: Wed Nov 02, 2016 10:45 am

Re: Odroid C2 - Sound drop with passthrough

Post by Mez882 »

Hey Fourdee!

I use an iphone charger over the OTG usb port. It is 5v/2A.
I'v attached the pictures of the sound configuration.
I will try to find another hdmi cable and get back to you once I tried. But again: I tried the same hardware setup with Librelec and didn't get the issue.
Don't hesitate to let me know if I can provide anything else.

Cheers!
Nicolas
Attachments
KodiSound.zip
(524.78 KiB) Downloaded 133 times
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid C2 - Sound drop with passthrough

Post by Fourdee »

Mez882 wrote:Hey Fourdee!

I use an iphone charger over the OTG usb port. It is 5v/2A.
I'v attached the pictures of the sound configuration.
I will try to find another hdmi cable and get back to you once I tried. But again: I tried the same hardware setup with Librelec and didn't get the issue.
Don't hesitate to let me know if I can provide anything else.

Cheers!
Nicolas
Thanks Nicolas,

I'll run some tests tomorrow and get back to you.

Regarding the charger, I would highly recommend a Raspberry Pi PSU, it provides a stable 5v/2A. I've had many issues with Samsung chargers that drop their voltage below 4.5v, although, to be sure, you'd need one of these to test the voltages of the iPhone charger are a stable 5v under load. Power may not be the issue, but its the most common cause of problems on SBC's.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid C2 - Sound drop with passthrough

Post by Fourdee »

Hi Nicholas,

Apologies for the delay, i've created a ticket and will try and get round to this in the next few days: https://github.com/Fourdee/DietPi/issues/626
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Mez882
Posts: 24
Joined: Wed Nov 02, 2016 10:45 am

Re: Odroid C2 - Sound drop with passthrough

Post by Mez882 »

No worries Fourdee, thank you for looking into this and reacting so quickly. It's great to see how you guys are committed and helpful!
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid C2 - Sound drop with passthrough

Post by Fourdee »

Hi Nicolas,

Ok, unable to replicate on my system, but I have few things we can try, although, its going to be a case of trial and error until we find the cause:

Kodi:
In Kodi > System settings > Audio options
Set the following:
  • Support 8 Channel DTS-HD audio decoding: Off
  • Keep audio device alive: 1 minute
  • Limit Sampling Rate: 44.1Khz
Kernel:
If you still experience dropouts, please check and update kernel package:

Code: Select all

apt-get update
apt-get dist-upgrade -y
You can check current kernel with uname -a, latest is:

Code: Select all

root@DietPi:~# uname -a
Linux DietPi 3.14.79+ #1 SMP PREEMPT Sat Nov 12 19:20:38 CET 2016 aarch64 GNU/Linux
ALSA:
Lets check your asound.conf, please paste results:

Code: Select all

cat /etc/asound.conf
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Mez882
Posts: 24
Joined: Wed Nov 02, 2016 10:45 am

Re: Odroid C2 - Sound drop with passthrough

Post by Mez882 »

Hi Fourdee,
So here you are:
With the settings you suggested, I do not have sound drops.
As soon as I enabled passthrough, keeping the same settings, I got the sound drops.

Code: Select all

I am at the latest kernel:
Linux DietPi 3.14.79+ #1 SMP PREEMPT Sat Nov 12 19:20:38 CET 2016 aarch64 GNU/Li       nux
root@DietPi:~# cat /etc/asound.conf

Code: Select all

pcm.!default {
    type hw
    card 0
    device 0
}
ctl.!default {
    type hw
    card 0
    device 0
}
Cheers!
Post Reply