audio_CloverALC
audio_CloverALC copied to clipboard
ALC1220 support
Most of the new Z270 (Kaby Lake) motherboards feature an improved version of the Realtek ALC audio codec, the ALC1220.
I would love to see audio_CloverALC/audio_RealtekALC support it. 👍
I've got my Hackintosh up and running, the only thing missing is the sound support, so I can be of assistance if you need me to dump files/run commands in order to help you add support for it. :)
Working on it. No ETA at this time.
Do you need a codec dump?
Hi Toleda, Do you have any advice on how to work on audio codecs for hackintosh? Thank you!
@NewsGuyTor: have a 1220 codec dump
@robingoh: Best advice, however, the site disappeared years ago: THe KiNG: [HOW TO] Patch AppleHDA - Knowledge Base - Project OS X Forums. Search on the title for copies.
Hi Toleda, I thought this might help. Its the ALC 1220 patch for the linux ALSA sound driver. Looks like they are using the same patch as for ALC882: alsa.patch.zip
Won't work, device_id of ALC1220 is not 0x10ec1220
This works fine, maybe you can use it to implement support into CloverALC: http://www.insanelymac.com/forum/files/file/693-applehda-for-realtek-alc1220-10123
Not interested in another's work.
Try: https://github.com/toleda/audio_alc_test/blob/master/audio_cloverALC-1220-120.command.zip
This did not work for me with an Asus board with the 1168 codec. The devices are shown correctly, but no sound coming from the speakers.
What is connected to what? Selected audio device? What app is playing? macOS version? README/F. Problem Reporting/Files?
Specs: Sierra 10.12.3 ASUS Z270I-STRIX (S1220A codec) Audio correctly injected via SSDT-HDEF-HDAS-1.aml
What works: http://www.insanelymac.com/forum/topic/321300-native-alc1220-audio-for-200-series-motherboards/ Adding these 3 patches + installing kext to /S/L/E creates fully working audio.
What doesn't work I undid all the steps for the above, ran the command you just posted, and it ran successfully. After restart, all the devices are shown in Sound pref panel, but no audio coming from Internal Speakers when playing music or youtube. Spotify says "Can't play file"
Attached relevant files in zip. Note that Ioreg info is with "What works" applied.
You linked to a thief, my work. You have the 0x1168 (Strix/S1220), not 0x1220 (Maximus/S1220A) "What works" is useless; no problem to fix. Attach "doesn't work" files.
Hey toleda,
I have no idea what the politics behind all this is... it was just a solution I found and it worked for me.
Anyway, here are two more IOReg files. One is clean with no audio kext patches and no .kext files, the other is after running your 1.0f script. Yes, I am aware that it's for deviceid 0x1168 but the S1220(A) nomenclature was confusing.
Thanks for the help. Z270i_2.zip
All audio devices show. Add 200 series controller patch. If still not working, attach script output, config.plist, Clover boot log and IOReg; all from the same boot.
Thanks for the suggestion! It started working when adding this :)
<dict>
<key>Comment</key>
<string>200 Series Audio Controller patch</string>
<key>Find</key>
<data>
cKE=
</data>
<key>Name</key>
<string>AppleHDAController</string>
<key>Replace</key>
<data>
8KI=
</data>
</dict>
@toleda, Perhaps if you took the time to read the above linked post you would hesitate before calling me a thief. I credit you for the work in the very first sentence of that post and make no claim to be the author. All I did was tweak it a little. I'm sorry if this has caused offence but it would make more sense to make the accusation directly to the person concerned (me) rather than posting it in response to another persons enquiry.
@dgsga This was very surprising as I value and respect your contributions. As you previously posted to this thread with insight to a solution, a post on this thread with your solution was expected. A link to file sources is often appropriate credit. 1150 deja vu.
Hi Toleda, Thanks for the reply, I certainly value all the work you've done for the community and my ethos is very much about helping each other to solve problems. I'll certainly link to file sources in future.
Awesome toleda, works perfectly! Sorry to pester you more, but could you also update audio_CloverHDMI with these patches?
@NewsGuyTor audio_CloverHDMI does not touch the ALC1220 Post HDMI audio issues to https://github.com/toleda/audio_CloverHDMI Attach an IOReg
Ah, sorry, I meant supporting the 200-series motherboards in the script.
Script updated for 200 Series audio support. Recognize the patch is temporary.
Hey @toleda,
Had to RMA my ASUS board due to coil whine and got an "MSI Z270I GAMING PRO CARBON AC" board instead with deviceid of 0x10ec1220. I saw your updated thread on insanelymac and tried to run it, but got this error:
File: audio_cloverALC-120.command_v1.0f
Release Mode
Password:
EFI partition is mounted
System Integrity Protection status: disabled.
OK to patch
/Users/kanwei/Downloads/audio_cloverALC-120_v1.0f 2.command: line 671: syntax error near unexpected token `fi'
/Users/kanwei/Downloads/audio_cloverALC-120_v1.0f 2.command: line 671: `fi'
[Process completed]
After removing the offending lines, the script ran, I restarted, and there are no devices found. I've attached script output, ioreg, and config.plist.
Happy to be a guiney pig again
@kanwei Thanks. Typo fixed in script 1220/realtekALC.kext updated Run script again, reply with new files.
I tried applying the latest audio_cloverALC-120_v1.0f.command, but it asked me to download ALC1220S beta files, even though I am using the non-S Gigabyte version.
`Confirm ALC1220S Beta files (y/n): y
Download ALC1220S files ...`
That just gave me a kernel panic at boot, until I restored the previous AppleHDA.kext
Apologies. The files for device_id: 0x1220 are labeled 1220S If available, attach KP screenshot, script output and patched AppleHDA.kext.
@NewsGuyTor Working https://github.com/toleda/audio_alc_test/blob/master/audio_cloverALC-1220-120.command.zip
Gigabyte Z270N-Wifi
Install patch. Downloads 1200S files, everything shows up in system prefs. No sound.
I installed the 200 series patch and get kernel panic on boot.
Here's the KP error.
http://imgur.com/a/oxOK8
Here's patched AppleHDA
And, the installer output:
Last login: Sun Apr 2 11:44:34 on ttys000
Eriks-Workstation:~ erik$ /Users/erik/Desktop/ALC1220/audio_cloverALC-120_v1.0f1.command ; exit;
Agreement
The audio_cloverALC script is for personal use only. Do not distribute
the patch, any or all of the files or the resulting patched AppleHDA.kext
for any reason without permission. The audio_cloverALC script is
provided as is and without any kind of warranty.
File: audio_cloverALC-120.command_v1.0f1
Release Mode
Password:
EFI partition is mounted
System Integrity Protection status: disabled.
OK to patch
Confirm Realtek ALC1220 (y/n): y
Clover Audio ID Injection (y/n): y
Use Audio ID: 1 (y/n): y
Confirm 200 Series audio (y/n): y
Confirm ALC1220S Beta files (y/n): y
Download ALC1220S files ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9916 100 9916 0 0 1559 0 0:00:06 0:00:06 --:--:-- 2051
Edit config.plist/Devices/Audio/Inject/1
Edit config.plist/SystemParameters/InjectKexts/YES
Download kext patches
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1838 100 1838 0 0 873 0 0:00:02 0:00:02 --:--:-- 873
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4223 100 4223 0 0 256 0 0:00:16 0:00:16 --:--:-- 1029
Install /Volumes/EFI/EFI/CLOVER/kexts/10.12/realtekALC.kext
Install System/Library/Extensions/AppleHDA.kext/ALC1220S zml files
Fix permissions ...
Kernel cache...
rebuilding //System/Library/PrelinkedKernels/prelinkedkernel
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
kext-dev-mode allowing invalid signature -67054 0xFFFFFFFFFFFEFA12 for kext AppleHDA.kext
KernelCache ID: EBE299A8D75D5AFAD757BC77B327D31D
kextcache updated critical boot files, requesting launchd reboot
Install finished, restart required.
To save a Copy of this Terminal session: Terminal/Shell/Export Text As ...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
@erikwestlund I also had a kernel panic when upgrading to 10.12.4 with the 200 series patch, and had to use AppleALC to make it work again.