Flatpak multichannel audio over HDMI

  • I've recently started using the LE13 nighties on an intel NUC. All the HDMI audio works great in Kodi but apps/add-ons running via Flatpak are limited to stereo and i'm trying to use Moonlight with 5.1 surround.

    I've tried tweaking the custom audio device setting in "External programs helper" but i don't think that's where the problem is.

    I've added some Pulseaudio daemon config with "default-sample-channels = 6" which did make it start outputting 5.1 but the channel map is all mixed up with audio coming from the wrong speaker. Changing "default-channel-map" in the same config doesn't help.

    Anyone have any ideas? it would be really good if this could be streamlined / automatically configured based of the Kodi audio output settings in future.

  • I know little about pulse audio, but channel placement comes from ELD data which alsa derives from the EDID data on the HDMI connection. It might be worth ensuring (with Kodi stopped else it hogs the audio device) that alsa speaker-test can output 6ch audio correctly.

  • Interesting thanks, speaker-test works correctly, lists the expected channels and the tones play from the expected speaker.

    But when I config the pulseaudio to with "default-sample-channels = 6" i get:

    I know pulse is used for Bluetooth audio and that's limited to stereo, maybe some existing config for is getting in the way.

  • Code
    channel-map = front-left,front-center,front-right,rear-left,rear-right,lfe

    Have you tried something like that ^ in the config? (rearrange the text until things come out right)

    Try default-channel-map as an alternative

  • I tried a "default-channel-map" like you suggested in the daemon config, same place I set "default-sample-channels = 6" but it had no effect.

    Most other suggestions online talk about editing /etc/pulse/default.pa which is read only for us.