Alsa configuration ignored with hifiberry+dmix and libreelec 9.0.2

  • Hello,

    I want to use in parallel Kodi and Squeezelite on the same libreelec RPI3 with an Hifiberry DAC Plus soundcard. I used to do that in the past but my SD card died and now I cannot set it up again.

    The problem is that the hifiberry card cannot mux multiple streams. Kodi or Squeezelite takes the card - whichever starts first - and the other cannot play.

    It should be possible to configure alsa with dmix plugin. I tried the following in /storage/.config/sound.conf and /storage/.config/asound.conf

    :

    But this does not seem to have any effect.

    Code
    # aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
      Subdevices: 1/1
      Subdevice #0: subdevice #0

    It looks like the config file is completely ignored. I did not find anything useful in the logs, but I am not sure of what to look for.

  • I tried to add bindings like this but with no success:

    I do not really know what bindings are used for but I took example in alsa documentation

  • It's almost the same asound.conf. For me it looked like the asound.conf / sound.conf file was just completely ignored by Libreelec.
    I will continue to use libreelec on my "standards" Pis, but will keep raspbian on that precise one.

  • Hey,

    I'm trying for days something similar:

    I want to run squeezelite and kodi in parallel in Libreelec on a Raspberry Pi 3b+, sharing the same hardware output.

    As far as I understood, there are two ways to achieve that:

    1. both using an alsa dmix output

    (that's how You try). My /storage/.config/asound.conf looks very similar to Yours:

    Neither aplay -L nor squeezelite -l show the dmixer output. But still squeezelite -o dmixer works!

    But I can't get Kodi to also use alsa-dmixer. Any suggestions how to achieve that? Kodi always seems to go on PulseAudio which blocks the alsa hardware device. In xbian it works like described. There I have the dmixer-Alsa-Output in Kodi available and I can play sound on Kodi and squeezelite simultaneously.

    2. use pulseaudio

    I made an entry in /storage/.config/asound.conf:

    Code
    pcm.pulse {
    type pulse
    }

    and tried to start squeezelite -o pulse. It complains about the device not being available.

    So, any suggestions how to achive that?

    I managed to make it work with Kodi and Squeezelite running inside raspbian in the "pulse way". But there Kodi is somehow unstable, so I'd like to go back to LibreElec, which I have been running for years on that Raspberry Pi 3 b+.

    Edited once, last by Gauner (April 20, 2020 at 2:16 PM).