Use KODI to send the signal directly (pass-through) to your receiver. Make sure your audio device has the "allow exclusive" checkbox checked. Use the appropriate Surround program on your receiver to "upmix" to 5.1.
Other players and drivers may also support pass-through (e.g. K-Lite Codec Pack), but I haven't tried recently.