I have the Mecool M8S Pro (Amlogic S912) and my Denon AVR shows which audio codec is playing, and this box is running the latest LibreELEC 8.2.2.3. So no matter what audio my BlueRay rips have, it is passed through to my AVR.
I also have the "L" box, but have not installed LibreELEC on it.