Skip to content

Generic x86_64 device : ALSA lib underrun occurred #106

Open

Description

@Tammadram

Hello everyone and thanks for all the work already and futurely done.

I use Libreelec 12.2.1 legacy on a generic AMD x86-64 (miniforum UM350 to be exact).

The Moonlight addon install and start without apparent error, the video and controls works perfectly but the sound works randomly for about 1/10th of a second at a time.

My only clue at this point is this line repeating indefinitely in the moonlight-qt.log of the addon when the streaming is on :

ALSA lib /build/build.LibreELEC-Generic-legacy.x86_64-12.2.1/build/alsa-lib-1.2.11/src/pcm/pcm.c:8740:(snd_pcm_recover) underrun occurred

Note that in Kodi, while everything works fine in playback, the UI sound does not work.

Another Moonlight client (Xbox One) works perfectly as well so no problem from Sunshine I reckon.

Thanks for any help anybody may provide.

Activity

  1. Tammadram commented on Apr 28, 2026

    @Tammadram
    Author

    New informations:
    Interesting line in dmesg

    snd_hda_codec_hdmi hdaudioC0D0: HDMI: Unknown ELD version 0

    I guess C0D0 stand for card 0 device 0.
    But the correct one should be card 0 device 3 if I understand a play - l

    card 0: Generic_1 [HD-Audio Generic], device 3: HDMI 0 [AV Receiver]
    Subdevices: 0/1
    Subdevice #0: subdevice #0

  2. veldenb commented on Aug 8, 2026

    @veldenb
    Owner

    Have you tried explicitly configuring your audio device in Kodi, so not selecting the "default" audio device?

  3. Tammadram commented on Aug 12, 2026

    @Tammadram
    Author

    Hello !
    I'm on Libreelec 12.2.1 and there isn't a "default" option, there's several ALSA output device for HDMI, 1 for analog, 1 for S/PDIF and a last PULSE device for Bluetooth. The first output recognize my AV receiver and is the only one that get me sound. I already have tried to switch several times so even if it was a "default" selection, it have been unselected and selected again.

    Image

    Remember that I actually kind of have sound in Moonlight, but at a rate of a fraction of second every few second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions