Posts by frank78

    Solution Found!

    Apologies for the delay in providing an update.
    As the original poster of this thread, I can now consider my issue resolved.

    After my last post but before chewitt requested the pastekodi informations, I even upgraded to a nightly build, but I still had no success.
    So, I decided to download the official 2025.01 release of LibreELEC 12.0.2 for RPi4 again and copied it onto a separate SD card, to be able to reproduce the state of my original post. My initial plan was to gather the data that chewitt had requested.

    After booting from the new SD card, I left everything at its default settings (language set to English – in my previous attempt, I had changed it to German) and went straight to the audio settings after the initial setup.
    And there it was – the "Audio Passthrough" section was immediately visible in the standard view (which I previously did not have).

    So, I set PT to enabled and activated all formats supported by my AVR in expert mode.
    After that, I copied the entire "audiooutput" section from the guisettings.xml of this fresh installation to my problematic installation (which was running the nightly build).
    Now, even the nightly build supports Audio Passthrough!

    However, I noticed something strange:
    The Audio Passthrough toggle was enabled, but it was visually different (somewhat "inactive").
    I clicked on it again, and after that, it changed to its normal color and was fully "active".

    I’m not sure what the exact cause of the issue was in the end.
    Nevertheless, thank you all for your help, especially chewitt!

    Best regards,
    Frank

    🔹 System Details:

    • Device: Raspberry Pi 4
    • AV Receiver: Denon AVR (connected to HDMI0)
    • LibreELEC Version: 12.0.2
    • Kodi Version: 21 (Omega)
    • Audio Output: HDMI (ALSA)

    After a fresh install of LibreELEC 12.0.2 onto a new SD Card, audio passthrough no longer works.
    My old LibreELEC 11 had no problems serving audio passthrough.
    Now, Kodi only outputs PCM, even though the AVR supports Dolby Digital, DTS, TrueHD, etc.

    I've had a little troubleshooting with ChatGPT and this is how we've got so far...


    🔎 Key Findings

    1️⃣ HDMI audio was initially disabled in the kernel:

    Code
    dmesg | grep -i hdmi

    showed this boot command:

    Code
    snd_bcm2835.enable_hdmi=0

    HDMI audio was disabled by default.
    → Changed to snd_bcm2835.enable_hdmi=1 in cmdline.txt, but this had no effect after reboot.

    2️⃣ ALSA now recognizes HDMI audio, but passthrough is still unavailable in Kodi:

    Code
    cat /proc/asound/card0/pcm0p/sub0/hw_params

    now returns:

    Code
    access: MMAP_INTERLEAVED
    format: IEC958_SUBFRAME_LE
    subformat: STD
    channels: 2
    rate: 48000 (48000/1)
    period_size: 2400
    buffer_size: 9600

    So ALSA is working, and the HDMI output is active.
    → But Kodi does not offer passthrough in settings.

    3️⃣ Kodi still detects Pulseaudio, even though ALSA is active:

    Code
    cat ~/.kodi/temp/kodi.log | grep -i audio
    Code
    warning <general>: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail
    info <general>:         m_displayNameExtra: Bluetooth Audio (PULSEAUDIO)

    Pulseaudio is running, but should not be used for HDMI.
    Disabling Pulseaudio (systemctl stop pulseaudio) had no effect on passthrough.


    🆘 Questions for the Forum

    Why is passthrough unavailable in Kodi, even though ALSA now recognizes HDMI?
    Is there a known issue in LibreELEC 12.0.2 that prevents passthrough from working?
    Does LibreELEC 12 use a different approach for HDMI audio handling (e.g., changes in vc4-hdmi)?
    Any additional logs or tests I should run to troubleshoot this?


    Any help or insights would be greatly appreciated! 🎧🔥