HD Audio Decoding in Kodi

Hello,

Is Kodi (16 or 17) able to decode Dolby truehd and DTS HD-MA and output as LPCM ?

I’m asking this as my Harman AVR only shows “Multi channel input” with no information if signal decoded from the loosless HD audio stream or the core lousy DD or DTS stream.

I have issues with my Harman in HD audio passthrough on qnap (garbled sound) and i’m looking to decoding it internally in Kodi.

Also do i need to select 7.1 to get HD audio decoding or i can select 5.1 to match my speakers ?

Thanks.