Kodi with Sonos playbar

Hello all. I am running Kodi v16.1 on an Amazon Fire TV. Everything is great. I just bought a Sonos 5.1 surround sound system which is capable of decoding dolby digital but not DTS. My TV is capable of outputting 5.1 DD as well. In order to make content output from Kodi correctly to for 5.1, what are the settings I should have? I figure I make 5.1 my speaker configuration and enable passthrough on AC3. If I don’t enable this on DTS, will it transcode to Dolby Digital and output in 5.1 correctly?

Thanks!