Only 2.0 audio via HDMI

  • Greetings,

    Got an issue with HDMI Audio here: I am unable to get 5.1 surround via vc4-hdmi-0

    5.1 surround gets requested, but ALSA only gets back stereo:

    Code
    DEBUG <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, LFE, BL, BR 
    DEBUG <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR (ALSA: FL FR)

    Full LOG here:

    External Content pastebin.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    Any idea what is wrong here and how to fix?

  • Thanks for feedback.

    Had the Extractor initially connected separately to vc4-hdmi-1 but had the same issue. While doing trial and error, one of the HDMI A-D cable broke - so I were forced to plug it in between vc4-hdmi-0 and TV.

    €dit:

    Cable actually is connected to the HDMI port next to the USB-C - issue is not fixed.

    Edited once, last by Killom (December 25, 2021 at 1:49 AM).

  • Also tried some config.txt options like hdmi_force_edid_audio=1 or hdmi_ignore_edid=0xa5000080 but no luck. I only get 2 PCM channels over HDMI. According to HDMI specs, you can send 8 PCM audio streams via HDMI. Maybe is ALSA the issue? ALSA only reports 2 channel audio

  • Could be a bug of your nightly build:

    Code
    2021-12-24 01:49:46.401 T:1080     INFO <general>: CAESinkALSA - ALSA: /var/lib/jenkins/LE/build4/workspace/RPi4/LibreELEC.tv/build.LibreELEC-RPi4.arm-11.0-devel/build/alsa-lib-1.2.5.1/src/pcm/pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
    2021-12-24 01:49:46.402 T:1080     INFO <general>: CAESinkALSA - Unable to open device "surround71" for playback

    Go back to the latest stable version, and report.

  • Congrats, we found a nightly bug. /shrug

    Current Stable kodi.log:

    External Content pastebin.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    These also appear with current stable:

    Code
    INFO <general>: CAESinkALSA - Unable to open device "surround71" for playback

    But:

    Code
    2021-12-27 00:15:05.075 T:1123     INFO <general>:     Device 2
    2021-12-27 00:15:05.075 T:1123     INFO <general>:         m_deviceName      : sysdefault
    2021-12-27 00:15:05.075 T:1123     INFO <general>:         m_displayName     : vc4-hdmi-0 ()
    2021-12-27 00:15:05.075 T:1123     INFO <general>:         m_displayNameExtra: MAI PCM i2s-hifi-0
    2021-12-27 00:15:05.075 T:1123     INFO <general>:         m_deviceType      : AE_DEVTYPE_PCM
    2021-12-27 00:15:05.075 T:1123     INFO <general>:         m_channels        : FL, FR, LFE, UNKNOWN1, FC, BC, BL, BR, BLOC, BROC, FLOC, FROC
    2021-12-27 00:15:05.075 T:1123     INFO <general>:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
    2021-12-27 00:15:05.075 T:1123     INFO <general>:         m_dataFormats     : AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
    2021-12-27 00:15:05.075 T:1123     INFO <general>:         m_streamTypes     : No passthrough capabilities

    ALSA reports devices back with 12 channels instead of 2. Any idea how to identify the root cause for this?

    Surround is working now.

  • I'm back again with multichannel audio issues:

    Currently on 12.0-nightly-20230918-aaaa788.

    Channel layout is OK this time - but even with stereo Upmix all I get is audio from FR and BL - rest of channels is silent.

    Then after rebooting, i got audio from FR and BR. Its like russian roulette but with audio channels.

    Then again system sounds - like the clicking when changing menu items - will play on FL and BR.

    Something is seriously borked currently. Even not sure if this is scope of LE Team. Maybe also faulty on Kodis end. Or Layer 8. Cant be sure :D

    Edit:

    Checked against Layer 8 issue. FR input == FR output etc.. Wiring OK, not screwed up. So signal input from RPi is faulty which means Kodi or LE. Also same setup used to work as intended back with LE 10 and 11

    Edit reloaded:

    When setting Audiochannels to 2.0 in system setup, FR and FL working. Everything above 2.0 either the channels are addressed incorrectly / not at all, or the mapping is screwed up somehow. But both are software problems

    Edited 3 times, last by Killom (September 21, 2023 at 9:31 PM).