No sound from MPD addon

  • Hello Everyone !

    I've installed Libreelec 9.2.7 on my raspberry pi 4.

    My audio is a small usb audio device. The sound works great in kodi (actually Libreelec detect the usb audio card and automatically used it in kodi whish is realllly great)

    I've configured MPD addon almost flawlessly (I've struggled finding the good mpd.conf file...). I didn't change anything about sound configuration in mpd.conf.

    I can connect to the MPD server and see my music library and start playing a song from my MPD client and the song seems to play but I have no sound (sound in kodi is good)

    aplay -l output this :

    Code
    LibreELEC:~ # aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0

    aplay -L output :

    aplay a musicfile gives this :

    Code
    LibreELEC:~ # aplay /media/MainDrive/RadioactivSonnerie.mp3 
    ALSA lib /home/chewitt/LibreELEC.widevine/build.LibreELEC-RPi4.arm-9.2.7/alsa-lib-1.1.9/src/confmisc.c:767:(parse_card) cannot find card '0'
    ALSA lib /home/chewitt/LibreELEC.widevine/build.LibreELEC-RPi4.arm-9.2.7/alsa-lib-1.1.9/src/conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib /home/chewitt/LibreELEC.widevine/build.LibreELEC-RPi4.arm-9.2.7/alsa-lib-1.1.9/src/confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib /home/chewitt/LibreELEC.widevine/build.LibreELEC-RPi4.arm-9.2.7/alsa-lib-1.1.9/src/conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib /home/chewitt/LibreELEC.widevine/build.LibreELEC-RPi4.arm-9.2.7/alsa-lib-1.1.9/src/confmisc.c:1246:(snd_func_refer) error evaluating name
    ALSA lib /home/chewitt/LibreELEC.widevine/build.LibreELEC-RPi4.arm-9.2.7/alsa-lib-1.1.9/src/conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib /home/chewitt/LibreELEC.widevine/build.LibreELEC-RPi4.arm-9.2.7/alsa-lib-1.1.9/src/conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib /home/chewitt/LibreELEC.widevine/build.LibreELEC-RPi4.arm-9.2.7/alsa-lib-1.1.9/src/pcm/pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM default
    aplay: main:828: audio open error: No such file or directory

    Sounds weird to have such an error in aplay and, in the same time, having no sound issue in Kodi.

    Does anyone has any hint ??

    Thank you !

    Stan

    PS : it worked perfectly in xbian (but xbian crashed one day and I decided to install Libreelec

  • Thank you again !

    Semiotik : The thread you mentioned drives on the culprit : I didn't noticed that the null audio output was uncommented... what a shame :D

    So I just add this alsa output (see below) in mpd.conf and everything work like a charm now !

    Code
    audio_output {
        type        "alsa"
        name        "USB audio"
        device        "hw:CARD=Device,DEV=0"
        mixer_type      "software"      # optional
    }

    I didn't tried installing LE 10 beta as it was too much hard work for me ;)

    Thank you again !