Audio Output to HDMI only, possible?

  • LibreELEC (official): 9.0.2 (LePotato.arm) on AML-S905X-CC

    I would like to have Kodi use the HDMI audio output only. But want to keep an analog set of speakers plugged into the 3.5mm Jack for other use (netcat raw audio). I have done this on a RPi2. nc -lp <port> | aplay -Dhw:1,0

    Is it possible to do this on this AmLogic board?

    I have tried all the settings in the Kodi UI, but audio seems to output simultaneously on both regardless of the Kodi settings.

    I tried selecting HDMI and the GUI click sounds do only output to the HDMI (no sound from analog speakers), but then playing a video results in no sound from any device.

    Would buying a USB to 3.5mm adapter work?

    Jaaxx suggested in 2017 that Amlogic ignores Kodi audio output selection and just outputs to all devices. But has this changed since Krypton? I'm on Leia now, and the beta of LE20 still had the same issue.

    Thanks.

  • The USB audio card route would be best, as this provides an independent soundcard to route audio to. I'm not sure if the current behaviour is hardwired in hardware (in the SoC) or in the kernel, but I suspect the former if both legacy and modern kernel images behave the same, as those kernel codebases have almost zero driver code in common.

  • Quote


    With USB audio you are able to select HDMI or USB on LE's audio output settings

    Using a USB audio adapter, it shows up in "aplay -l" and aplay -L", but still does not show up in the LE audio output settings. But that's fine, I only want HDMI audio output for Kodi/LE

    It's disappointing that the amlogic boards do this and I needed to buy additional hardware, but I can see this is an edge case.

    I got a USB to 3.5mm analog audio adapter based on the SS1629 chip for $15. (Plugable brand), and used nc -lp <port> | aplay -D plughw:1,0

    This works. Thank you.

    Edited 2 times, last by LE.User934 (October 12, 2022 at 5:51 PM).

  • Using a USB audio adapter, it shows up in "aplay -l" and aplay -L", but still does not show up in the LE audio output settings. But that's fine, I only want HDMI audio output for Kodi/LE

    I see USB audio on RPi's audio settings, so it's probably a Le Potato bug.

    You can try a newer image from chewitt to avoid this: Click!