RPi3 USB Audio no sound on ALSA

  • Hi!

    I am new LibreELEC user. I installed LibreELEC 7.90.009 on RPi3 but usb audio is not working properly. My audio card is recognized and is listed in Settings->System->Audio as ALSA:<MyCard>. The problem is when I select the card and try to play anything, there is no sound and playback doesn't start. HDMI works fine without any changes.

    I've tried adding my usb card as default device in asound.conf

    Code
    pcm.device{
    type hw
    card Series
    }
    
    
    pcm.!default{
    type plug
    slave.pcm "device"
    }


    but it just listed my card once again, still not working.

    The I tried to use pulseaudio so I did:

    Code
    systemctl stop kodi
    pactl load-module module-udev-detect
    pactl set-default-sink <MyCard>
    systemctl start kodi


    When I select pulseaudio everything works fine. The problem is that I have to apply this code after every reboot or when I turn of the DAC.

    How can I fix this issue?

    Best regards
    wavelet

    Edited once, last by wavelet (December 19, 2016 at 1:16 PM).

  • I read your post too quickly, the dtparam=audio=on is to enable ALSA for the RPi internal soundcard. Weird that there's no sound in Kodi when selecting the device, you still shouldn't need an asound.conf (unless you want to use non-Kodi ALSA apps).

    Edited once, last by escalade (December 19, 2016 at 2:19 PM).

  • Yes I agree that asounf.conf is not needed. I just wanted to test it.
    I don't know why it doesn't work either. When starting playback in Kodi my DAC displays right samplerate but doesn't show the bitdepth and the playback just doesn't start. When I configure pulse audio everything is fine, there is correct samplerate and bitdepth, there are no glitches or artifacts whatsoever.
    [hr]
    I attach the log:
    ajZI
    [hr]
    Looking at previous log I saw some omx errors so I disabled OMX acceleration in video settings and changed resamplig method from hardware accelerated to medium - now it works. I don't know what was wrong...

    Is there any bugtracker where I can post the issue?
    Anyway thanks for help!

    Edited once, last by wavelet (December 19, 2016 at 2:44 PM).


  • ALSA is disabled by default on RPi (god knows why), you need dtparam=audio=on in /flash/config.txt. You don't need asound.conf.


    Because RPI uses it's own kodi specific audio routing, so alsa isn't needed.