Surround Sound Enabling pass through causes static noise

Hello,

I was hoping I may be able to get some help with my Kodi set up. I’m trying to get surround sound working with Kodi. I’ve followed numerous guides but still don’t seem to be getting the solution I need.

To explain my set up;

Tonbux M8S running, Android and Kodi 16.1

Connects into a Kinivo 301bn HDMI switch. (this switcher supports 5.1 audio)

This connects into my XBox One via HDMI and out of the Xbox to my TV via HDMI.

I have an optical cable connecting the Xbox to my surround sound player Samsung HT 4500.

The Xbox is set up for surround sound and bitstream using Dolby Digital.

The Android box is set to digital audio passthrough HDMI.

In Kodi the audio output is set to support my audio receivers formats.

When I enable Pass Through I get horrible static noise through my speakers. I have tried different settings but to no avail.

Any help or advice would be much appreciated.