Video playback goes through PC speakers

  • Hello,

    I have an issue with sound from video playback. I have Libreelec running on a Lenovo m710q with a DP-to-HDMI cable running from the PC directly through the TV.

    The GUI sounds in Kodi come through the TV, but any videos I play are coming through the PC speakers. I have tried all the devices under "Settings > Audio" but they all result in the same thing. Even using 'aplay' and specifying any of the HDMI sound devices still results in sound coming through the PC speakers.

    The fact that the GUI sounds come through my TV would indicate that the cable is directing sound through it to the TV, but I just have absolutely no idea why video playback is not outputting to the TV speakers.

    I have attached a debug log.

    Any insight is greatly appreciated!

  • In the first playback attempt in the file (H264, 5.1 EAC3 audio) alsa first attempts to open the HDMI device:

    However this advertises no audio channel map data, see the ^ "UNKNOWN" so the alsa sink looks for a better output:

    The sysdefault entry (mapped to the analogue output) advertises FL/FR so this is selected and used.

    This is probably an issue with EDID/ELD data missing on the HDMI connection. I note that the only display-info in the log is:

    Code
    2026-02-25 22:50:24.109 T:2694     info <general>: [display-info] make: 'LG Electronics' model: 'LG FULL HD'

    Kodi also detects a limited set of resolutions (to me this looks like a monitor not a TV):

    but in a normal system, I'd expect something like this:

    and a set of resolutions like this:

    I haven't looked at source code, but I suspect Kodi blindly uses whatever audio device has been configured when outputting audio for GUI sounds; while media playback has logic to consider speaker layout so you get a different result.

    The normal cause of missing EDID/ELD data on HDMI connections is either cables or adapters (not passing it along). So you might have a cheap DP to HDMI adapter designed for presentations (supports video but not audio) or the DP chip in the Lenovo is doing something odd, or the HDMI cable might be bad, or perhaps there's something in BIOS/firmware settings, or perhaps the TV (or is it a monitor) outputs EDID that simply doesn't advertise audio /shrug

    The possible workaround is https://wiki.libreelec.tv/configuration/edid#intel done from another Linux device (that does see audio capabilities) and then transfer that configuration to the Lenovo. This will result in the kernel (and thus Kodi) seeing a TV with some audio capabilities as connected, and it will then try to transmit audio on the HDMI connection instead.

    In short, I don't see Kodi doing anything wrong here, and it looks like a local hardware problem.