I came across this issue running remix and phoenix os (linux based android os's), and I found a fix that works for them. Not sure if it's possible to access the terminal in LibreELEC, but if you can, and have root, it's fairly simple. Here's the link, and look at post #6
Audio over HDMI | XDA Developers Forums