CarlosML Posted July 23, 2015 Share Posted July 23, 2015 I'm trying to use CodecCommander.kext with the mentioned configuration. When I load the kext, this is the output: CodecCommander: Initializing CodecCommander: Probe CodecCommander: Version 2.4.0 starting. CodecCommander: IntelHDA::initialize CodecCommander: Device memory @ 0xf7e60000, size 0x00004000 CodecCommander: Memory mapped at @ 0xffffff81eff61000 CodecCommander: Evaluating device "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PEG0@1/IOPP/HDAU@0,1" [1002:aab0]. CodecCommander: ....CodecVendor Id: 0x1002aa01 CodecCommander: ....Codec Address: 0 CodecCommander: ....Subsystem Id: 0x00aa0100 CodecCommander: ....PCI Sub Id: 0x174baab0 CodecCommander: ....Output Streams: 3 CodecCommander: ....Input Streams: 0 CodecCommander: ....Bidi Streams: 0 CodecCommander: ....Serial Data: 3 CodecCommander: ....x64 Support: 0 CodecCommander: ....Codec Version: 1.0 CodecCommander: ....Vendor Id: 0x1002 CodecCommander: ....Device Id: 0xaa01 CodecCommander: stopping due to codec profile Disable flag CodecCommander: Stopping... CodecCommander: Initializing CodecCommander: Probe CodecCommander: Version 2.4.0 starting. CodecCommander: CodecCommanderPowerHook::init CodecCommander: CodecCommanderPowerHook::probe CodecCommander: IntelHDA::initialize CodecCommander: CodecCommanderPowerHook::start CodecCommander: Device memory @ 0xf7f30000, size 0x00004000 CodecCommander: Memory mapped at @ 0xffffff81e58de000 CodecCommander: CodecCommanderPowerHook::init CodecCommander: no CodecCommander found with child iterator CodecCommander: CodecCommanderPowerHook::probe CodecCommander: Evaluating device "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDEF@1B" [8086:8ca0]. CodecCommander: ....CodecVendor Id: 0x10ec0900 CodecCommander: ....Codec Address: 2 CodecCommander: ....Subsystem Id: 0x1458a182 CodecCommander: ....PCI Sub Id: 0x1458a182 CodecCommander: CodecCommanderPowerHook::start CodecCommander: ....Output Streams: 1 CodecCommander: ....Input Streams: 0 CodecCommander: ....Bidi Streams: 4 CodecCommander: ....Serial Data: 2 CodecCommander: ....x64 Support: 0 CodecCommander: ....Codec Version: 1.0 CodecCommander: ....Vendor Id: 0x10ec CodecCommander: ....Device Id: 0x0900 CodecCommander: Configuration CodecCommander: ...Check Infinite: false CodecCommander: ...Check Interval: 3000 CodecCommander: ...Perform Reset: true CodecCommander: ...Perform Reset on External Wake: true CodecCommander: ...Perform Reset on EAPD Fail: false CodecCommander: ...Send Delay: 100 CodecCommander: ...Update Nodes: false CodecCommander: ...Sleep Nodes: false CodecCommander: Custom Command CodecCommander: ...Command: 0x02050007 CodecCommander: ...OnInit: true CodecCommander: ...OnWake: true CodecCommander: ...OnSleep: true CodecCommander: Custom Command CodecCommander: ...Command: 0x02047cb0 CodecCommander: ...OnInit: true CodecCommander: ...OnWake: true CodecCommander: ...OnSleep: false CodecCommander: --> custom command 0x02050007 CodecCommander: SendCommand: (w) --> 0x22050007 CodecCommander: ExecutePIO Invalid result received. CodecCommander: SendCommand: (r) <-- 0xffffffff CodecCommander: --> custom command 0x02047cb0 CodecCommander: SendCommand: (w) --> 0x22047cb0 CodecCommander: ExecutePIO Invalid result received. CodecCommander: SendCommand: (r) <-- 0xffffffff CodecCommander: PowerHook: setPowerState 2 CodecCommander: setPowerStateExternal 2 CodecCommander: --> awake(2) CodecCommander: --> custom command 0x02050007 CodecCommander: SendCommand: (w) --> 0x22050007 CodecCommander: ExecutePIO Invalid result received. CodecCommander: SendCommand: (r) <-- 0xffffffff CodecCommander: --> custom command 0x02047cb0 CodecCommander: SendCommand: (w) --> 0x22047cb0 CodecCommander: ExecutePIO Invalid result received. CodecCommander: SendCommand: (r) <-- 0xffffffff CodecCommander: setPowerState 2 CodecCommander: --> awake(2) After my system enters sleep, audio doesn't work if speakers are conencted to the green jack (Internal speakers). If I connect them to Line Out, they work after sleep without Codec Commander. If I try to load CodecCommander.kext after sleep and it wasn't loaded before, the system KP and reboots immediately. Link to comment Share on other sites More sharing options...
En0r1m Posted July 23, 2015 Share Posted July 23, 2015 You need to edit the config file of the kext CodecCommander as described in the Readme file here:https://github.com/Dolnor/EAPD-Codec-Commander You may also need to add 01470c02 to your PinConfigs of AppleHDA.kext. Link to comment Share on other sites More sharing options...
gengik84 Posted July 23, 2015 Share Posted July 23, 2015 Watch and download here: https://github.com/toleda/audio_CloverALC Link to comment Share on other sites More sharing options...
TimeWalker75a Posted July 23, 2015 Share Posted July 23, 2015 You may also need to add 01470c02 to your PinConfigs of AppleHDA.kext. .. if they are set to use CC, then what for, exactly ? what if codec is not #0 and EAPD's on a different node ? Link to comment Share on other sites More sharing options...
Mirone Posted July 23, 2015 Share Posted July 23, 2015 Post your codec_dump for a better analysis, although I know very well how ALC1150 works, but TimeWalker75a may have other ideas analyzing it. Maybe this picture helps: Link to comment Share on other sites More sharing options...
CarlosML Posted July 24, 2015 Author Share Posted July 24, 2015 I opened an issue at Codec Commander's github repo and Dolnor has diagnosed an issue: https://github.com/Dolnor/EAPD-Codec-Commander/issues/14#issuecomment-124227826 It seems that indeed this motherboard has EAPD capable nodes (Gigabyte website claims it has built-in amp for speakers). Enabling "Update Nodes" makes the sound work after sleep, but only for a little while. After a couple of minutes of playback I can listen an audible pop and the sound dies, as if the amp is being deactivated again. Link to comment Share on other sites More sharing options...
Mirone Posted July 24, 2015 Share Posted July 24, 2015 send me your DSDT+config.plist+IOREG. Edit: Which version of your system? who corrected the AppleHDA are you using? Link to comment Share on other sites More sharing options...
En0r1m Posted July 24, 2015 Share Posted July 24, 2015 .. if they are set to use CC, then what for, exactly ? what if codec is not #0 and EAPD's on a different node ? Maybe that's why I told him to correctly configure your info.plist of CC, but you are the developer of this kext, so hopefully you can provide all the answers correctly. Link to comment Share on other sites More sharing options...
CarlosML Posted July 24, 2015 Author Share Posted July 24, 2015 send me your DSDT+config.plist+IOREG. Edit: Which version of your system? who corrected the AppleHDA are you using? 10.4.4 Toleda's cloverALC (do you need the DSDT before Clover modifications?) Link to comment Share on other sites More sharing options...
Mirone Posted July 24, 2015 Share Posted July 24, 2015 Firts try this kext: http://www.insanelymac.com/forum/index.php?app=core&module=attach§ion=attach&attach_id=166334 use Layout_ID=9. Link to comment Share on other sites More sharing options...
CarlosML Posted July 24, 2015 Author Share Posted July 24, 2015 Should I remove realtek.ALC that toleda's patch injects using Clover? Link to comment Share on other sites More sharing options...
Mirone Posted July 24, 2015 Share Posted July 24, 2015 Should I remove realtek.ALC that toleda's patch injects using Clover? Yes. Link to comment Share on other sites More sharing options...
CarlosML Posted July 24, 2015 Author Share Posted July 24, 2015 Added AppleHDA.kext to /S/L/E. It doesn't load automatically at boot, I have to load it manually using kextload (I wiped the kext cache and permissions are OK). When I load it manually, I can hear an audible "pop" and CodecCommander detects it, but I have no sound. It seems Clover layout injection is working OK: Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method { Store (Package (0x08) { "layout-id", Buffer (0x04) { 0x09, 0x00, 0x00, 0x00 }, "MaximumBootBeepVolume", Buffer (0x01) { 0x01 }, "AFGLowPowerState", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "PinConfigurations", Buffer (0x00) {} }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } } Link to comment Share on other sites More sharing options...
Mirone Posted July 24, 2015 Share Posted July 24, 2015 use this:config.zip Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method { Store (Package (0x08) { "layout-id", Buffer (0x04) { 0x09, 0x00, 0x00, 0x00 }, "MaximumBootBeepVolume", Buffer (0x01) ------>Delete this. { 0x01 }, "AFGLowPowerState", ------>Delete this. Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "PinConfigurations", Buffer (0x00) {} }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } } Link to comment Share on other sites More sharing options...
CarlosML Posted July 24, 2015 Author Share Posted July 24, 2015 It works! Thank you!As you noted in your config.plist, I forgot to delete the Kext replacements that toleda's script added. I have to use both your patched AppleHDA and CodecCommander (with Update Nodes=true) , using AppleHDA only produces an audible pop when I move the volume slider but nothing else (the built-in amp is disabled in that case, I guess?). Also, I have audio after sleep and it seems isn't dying out after a couple of minutes like with the AppleHDA patched by toleda's script. May I ask you what's the difference with toleda's cloverALC and your patch? edit: found a problem, with your AppleHDA the front panel jack for headphones is not working, but with cloverALC works. Not big deal for me because I don't use them. Link to comment Share on other sites More sharing options...
Recommended Posts