2019-10-06, 22:50
(2019-10-06, 15:44)cocodude Wrote:(2019-10-05, 16:39)armyofme Wrote: So this dual hdmi issue on Pi4 is an issue with Kodi on all platforms, osmc and libreelec too? I've just had to switch back to using one hdmi port in order to get the best sound. Be great once we can use both ports but I realise that maybe somewhere down the line yet.
I'm absolutely not an expert in Kodi, but I think it's unlikely to be a general problem in Kodi. I think Kodi can indeed support multiple ports, but only output video on one output at a time (or mirroring) - honestly, this is fine and actually I think it's unrelated.
What we really need is for Kodi to be able to "see" two HDMI ports. Then, hopefully, we can just choose HDMI1 for the passthrough sound output; decoded sound will still go through on HDMI0, just like video.
I believe that what's needed to be done is to change the file xbmc/cores/AudioEngine/Sinks/AESinkPi.cpp as that's where the HDMI ports appear to be enumerated, and it's Pi specific. I'm hoping just copying the block in EnumerateDevicesEx for the HDMI device (renaming to HDMI1) would work. It's a bit of a guess though, and I bet there's something more complicated to do.
Fingers crossed! Please let me know how you get on.