Latest mpd addon requires unsupported alsa buffering


I recently switched to CoreELEC on my Odroid C2., thank you to the developers and the community! Unfortunately the latest update to the 9.0.2 addon repository introduced a problem for me.

The latest mpd (repo 9.0.2, addon 9.0.107, mpd 0.21.4) enforces ALSA output buffering.
It used to work with the following output configuration:

audio_output {
type				"alsa"
name			"PCM5102 DAC"
device			"hw:0,0"
format			"44100:16:2"	# Required for Odroid!
mixer_type		"software"
auto_channels		"no"		# Required for Odroid!
auto_format 		"no"		# Required for Odroid!
buffer_time 		"0"		# Required for Odroid!

With the latest version mpd exits with an error because of the zero buffer time.
With small values I hear strange noise.
With the default value of 500000 the command ‘mpc play’ gives the error: Error opening ALSA device “hw:0,0”; snd_pcm_hw_params_set_buffer_time_near() failed: Invalid argument

Playing a wav-file with ‘aplay -D hw:0,0 -t wav test.wav’ works perfectly.

Is there a way to downgrade mpd to the previous version?
Or is there another solution?

Thank you for your help,

Same issue with latest mpd. I downgraded to 0.20.21 version. Hapilly was in ~/.kodi/addons/packages - Try update from zip.


Thanks dewastor!

The old zip was still there indeed.
Unfortunately I read your message too late and made my own zip…
At least now I know how to build CoreELEC myself :slight_smile:

Tonight I fixed the problem by recompiling the previous version of MPD, following instructions from

On my linux laptop:

sudo apt install gcc make git unzip wget xz-utils
git clone
cd CoreELEC/
# Need to build libcrypt first manually because (I think) mpd is missing a dependency
# Need to add CCACHE_DISABLE=1 to prevent another error message (found this workaround in )
PROJECT=Amlogic DEVICE=S905 ARCH=arm CCACHE_DISABLE=1 scripts/build libgcrypt
PROJECT=Amlogic DEVICE=S905 ARCH=arm CCACHE_DISABLE=1 scripts/create_addon mpd

Be patient, it takes a while…
Now revert to the previous mpd version by replacing some lines in packages/addons/service/mpd/



Rebuild mpd:

PROJECT=Amlogic DEVICE=S905 ARCH=arm CCACHE_DISABLE=1 scripts/create_addon mpd

You then have a zip file that you can transfer to the C2:

Uninstall the mpd version 0.21.4 and install the previous from the zip-file.

Ok. More complicated but effective. Once I made self compiled addon in Libreelec that I need for music and know it’s quit problematic.
Uncheck automatic updates of mpd addon to prevent from future problems :slight_smile:

Does anybody has still those older mpd daemon zips and could give me access to it? I have the same problem and it would allow me to avoid recompilation. Thanks!

Hi, can someone Updload a working mpd Zip File Please.

About | FAQ | Terms of Service | Privacy Policy | Legal Notice