How to get digital surround passthrough via S/PDIF working?

Thanks, @jaden but this method is not working.

speaker-test -t wav -c 6 gives sound for just front channels.