Quick tutorial to get ALC887 audio working on hackintoshes with 5.1 full surround on any audio
That means, not only some players will play at full 5.1, but every output audio, like what realtek hd audio utility does on windows.
This method has been tested on macOS Sierra 10.12.3 with a MSI H81M-P33 motherboard with 3-jacks audio setup and Logitech Z506 5.1 surround speakers
It should work on other configurations too.
Clover bootloader
AppleHDA.kext in /System/Library/Extensions should be the original, unpatched one
Multibeast
Soundflower 1.6.6b
Mount EFI partition
Open Multibeast
Select drivers>audio>realtek>alc887/888b + 100 / 200 series audio + optional 3 port audio
Build/Install
Reboot
Install Soundflower 1.6.6b
Reboot
Open MIDI configuration app (/Applications/Utilities)
Create a new combined device
Select all output devices found
Click on configure speakers
Choose 5.1 layout and make sure every speaker is identifed correctly
Save configuration
(optional) reboot
Open soundflowerbed
Choose Soundflower (64ch)
Select combined device you created before
Go to Settings - Audio - Output
Choose Soundflower (64ch)
Play something. Sound should come from every speaker you have
Open settings
Go to User - login
Unlock the lockpad
Add login item - Soundflowerbed
(optional) select hide
Lock the lockpad
Reboot