Alex009988 Posted October 3, 2013 Share Posted October 3, 2013 (edited) Hello. I had fully-working codec for ALC670, but there was only two issues. The first, endless assertions 03/10/13 20:56:34,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 03/10/13 20:57:24,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 03/10/13 20:58:14,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 03/10/13 20:59:24,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 03/10/13 21:00:25,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 The second, two pops when computer goes to sleep and wakes up.(Only for Mavericks) I decided to solve the problem with Assertions. I tried to do much on my own, but it was unsuccessful. After I asked TimeWalker for any help, he guessed that the problem was with SPDIF as AppleHDA was looking for special type of node, namely 0x04. pinconfig for SPDIF 01e71c60 - Association Nr/ Sequence Nr 001e71d11 - Black / Reserved01e71e4b - SPDIF / Combo01e71f01 - Port is connected to a Jack / External on primary chassis / Rearpin-default for this node is 0x014b1160, and driver want to have 04 at one specific place(but it was only a supposition) Of course, I tried all possible variants. But it was unsecesfful either. First Variant - the error didn't disappeared 01B71C40 01B71D10 01B71E2B 01B71F01 01571C30 01571D01 01571E13 01571F90 01271C10 01271D01 01271EA0 01271F90 01A71C50 01A71D31 01A71E81 01A71F01 01971C20 01971D90 01971E81 01971F01 01E71C04 01E71D11 01E71E4B 01E71F01 01171CF0 01171D00 01171E00 01171F40 01371CF0 01371D00 01371E00 01371F40 01471CF0 01471D00 01471E00 01471F40 01671CF0 01671D00 01671E00 01671F40 01771CF0 01771D00 01771E00 01771F40 01871CF0 01871D00 01871E00 01871F40 01D71CF0 01D71D00 01D71E00 01D71F40 02171CF0 02171D00 02171E00 02171F40 Second Variant - the error didn't disappeared 01B71C40 01B71D10 01B71E2B 01B71F01 01571C30 01571D01 01571E13 01571F90 01271C10 01271D01 01271EA0 01271F90 01A71C50 01A71D31 01A71E81 01A71F01 01971C20 01971D90 01971E81 01971F01 01E71C60 01E71D04 01E71E4B 01E71F01 01171CF0 01171D00 01171E00 01171F40 01371CF0 01371D00 01371E00 01371F40 01471CF0 01471D00 01471E00 01471F40 01671CF0 01671D00 01671E00 01671F40 01771CF0 01771D00 01771E00 01771F40 01871CF0 01871D00 01871E00 01871F40 01D71CF0 01D71D00 01D71E00 01D71F40 02171CF0 02171D00 02171E00 02171F40 Third Variant - the error disappeared but it had broken down the sound completely 01B71C40 01B71D10 01B71E2B 01B71F01 01571C30 01571D01 01571E13 01571F90 01271C10 01271D01 01271EA0 01271F90 01A71C50 01A71D31 01A71E81 01A71F01 01971C20 01971D90 01971E81 01971F01 01E71C60 01E71D11 01E71E04 01E71F01 01171CF0 01171D00 01171E00 01171F40 01371CF0 01371D00 01371E00 01371F40 01471CF0 01471D00 01471E00 01471F40 01671CF0 01671D00 01671E00 01671F40 01771CF0 01771D00 01771E00 01771F40 01871CF0 01871D00 01871E00 01871F40 01D71CF0 01D71D00 01D71E00 01D71F40 02171CF0 02171D00 02171E00 02171F40 Forth Variant - the error didn't disappeared 01B71C40 01B71D10 01B71E2B 01B71F01 01571C30 01571D01 01571E13 01571F90 01271C10 01271D01 01271EA0 01271F90 01A71C50 01A71D31 01A71E81 01A71F01 01971C20 01971D90 01971E81 01971F01 01E71C60 01E71D11 01E71E4B 01E71F04 01171CF0 01171D00 01171E00 01171F40 01371CF0 01371D00 01371E00 01371F40 01471CF0 01471D00 01471E00 01471F40 01671CF0 01671D00 01671E00 01671F40 01771CF0 01771D00 01771E00 01771F40 01871CF0 01871D00 01871E00 01871F40 01D71CF0 01D71D00 01D71E00 01D71F40 02171CF0 02171D00 02171E00 02171F40 After, a user called vladlenas saw my desperate attempts. And told me that he didn't solve it as well by using a similar method. And show me his the solution of the problem. He had that error Sound assertion "kTypePinComplex != fType" failed in AppleHDAWidget at line 2043 goto Exit ascii to hex 536F756E6420617373657274696F6E20226B5479706550696E436F6D706C657820213D20665479706522206661696C656420696E204170706C65484441576964676574206174206C696E65203230343320676F746F20457869740A And replaced it by this in AppleHDA 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 In my opinion, it looks too large. Moreover, I couldn't find it for my mistake(another long patch for 2181) at the kext So I decided to make the universal patch against any assertion. 536F756E 64206173 73657274 696F6E20 to 00000000 00000000 00000000 00000000 And what do you think? All of the assertions have disappeared. Now I have clean Console. I check sleep, ports. Everything works as it was before. The solution for Clover-bootloader, you know, Clover can patch any kexts <dict> <key>Comment</key> <string>Patch_against_assertions</string> <key>Find</key> <data> U291bmQgYXNzZXJ0aW9uIA== </data> <key>Name</key> <string>AppleHDA</string> <key>Replace</key> <data> AAAAAAAAAAAAAAAAAAAAAA== </data> </dict> Solution for XPC-bootloader <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>XpcPatcher</key> <dict> ............................. <key>MachOPatch3</key> <dict> <key>Apply</key> <integer>1</integer> <key>SystemVersion</key> <string>0x000</string> <key>Description</key> <string>Patch against assertions for AppleHDA</string> <key>FileName</key> <string>AppleHDA</string> <key>Search</key> <string>536F756E6420617373657274696F6E20</string> <key>Replace</key> <string>00000000000000000000000000000000 </string> </dict> </dict> </dict> </plist> Please, give a feedback if it works for you too. Edited October 3, 2013 by Alex Auditore 8 Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/ Share on other sites More sharing options...
Mirone Posted October 3, 2013 Share Posted October 3, 2013 Good Work. Soon I will test! all the best! 1 Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1950470 Share on other sites More sharing options...
Alex009988 Posted October 3, 2013 Author Share Posted October 3, 2013 After three hours, I got no message from AppleHDA while I was watching my favourite series through HDMI with sound. Before that messages with assertion showed up each 50 seconds. 1 Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1950477 Share on other sites More sharing options...
Mirone Posted October 7, 2013 Share Posted October 7, 2013 After making the changes still have 2 sound assertions any ideas? Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1951621 Share on other sites More sharing options...
Alex009988 Posted October 7, 2013 Author Share Posted October 7, 2013 Show your Console please. kernel.log Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1951904 Share on other sites More sharing options...
Mirone Posted October 9, 2013 Share Posted October 9, 2013 Look: 08/10/13 23:07:26,000 kernel[0]: Sound assertion in AppleHDAEngine at line 581 08/10/13 23:07:26,000 kernel[0]: Sound assertion in AppleHDAController at line 6288 08/10/13 23:07:26,000 kernel[0]: Sound assertion in AppleHDAController at line 5966 08/10/13 23:07:26,000 kernel[0]: Sound assertion in AppleHDAEngine at line 10154 Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1952524 Share on other sites More sharing options...
Alex009988 Posted October 9, 2013 Author Share Posted October 9, 2013 Look: 08/10/13 23:07:26,000 kernel[0]: Sound assertion in AppleHDAEngine at line 581 08/10/13 23:07:26,000 kernel[0]: Sound assertion in AppleHDAController at line 6288 08/10/13 23:07:26,000 kernel[0]: Sound assertion in AppleHDAController at line 5966 08/10/13 23:07:26,000 kernel[0]: Sound assertion in AppleHDAEngine at line 10154 Ok. Seems you should try to do the same patch in AppleHDAController. <dict> <key>Comment</key> <string>Patch_against_assertions</string> <key>Find</key> <data> U291bmQgYXNzZXJ0aW9uIA== </data> <key>Name</key> <string>AppleHDAController</string> <key>Replace</key> <data> AAAAAAAAAAAAAAAAAAAAAA== </data> </dict> Note. Formally, it doesn't solve the problem, but if everything works and our kernel-log is overspammed, we can use these patch(es) and forget about all this rubbish at Console as long as we find a beautiful solution of the problem who really want it. (But it too hard as we can sort out many nodes at pinconfig and try many modification in Platform.xml or a layout and all of our endeavours might be unsuccessful). As it was previous said, the aim of the patch is to forbid AppleHDA to "complain about". 1 Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1952809 Share on other sites More sharing options...
Mirone Posted October 9, 2013 Share Posted October 9, 2013 Thanks! No Sound Assertion in console now! Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1952931 Share on other sites More sharing options...
whitegerry Posted November 2, 2013 Share Posted November 2, 2013 I also get the log 'Sound assertion in AppleHDAWidget at line 2181' in Mavericks if there is no 0x04 in the pincofig. Luckily I'm successful with speaker not spdif out. Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1962352 Share on other sites More sharing options...
GoGas Posted November 4, 2013 Share Posted November 4, 2013 Getting Sound Assertion in AppleHDAWidget at line 2181 on Dell Inspiron 530 at boot with realetk AC888 driver from ##### 6. Pretty new to hackintoshes and the patching above is nothing I have doena dn not sure what it involves. What confuses me is that if I boot with GraphicsEnabler=No it will boot. Is this really related to audio or is graphics? Thanks Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1963409 Share on other sites More sharing options...
Alex009988 Posted November 7, 2013 Author Share Posted November 7, 2013 Getting Sound Assertion in AppleHDAWidget at line 2181 on Dell Inspiron 530 at boot with realetk AC888 driver from ##### 6. Pretty new to hackintoshes and the patching above is nothing I have doena dn not sure what it involves. What confuses me is that if I boot with GraphicsEnabler=No it will boot. Is this really related to audio or is graphics? Thanks Did you make the patch in all the same places? Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1965053 Share on other sites More sharing options...
iFIRE Posted November 7, 2013 Share Posted November 7, 2013 hi Alex, mine is diferent assertions lines, Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDAWidget at line 4240 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDACodecGeneric at line 1374 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDAWidget at line 4240 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDACodecGeneric at line 1374 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDAWidget at line 4240 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDACodecGeneric at line 1374 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDAWidget at line 4240 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDACodecGeneric at line 1374 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDAWidget at line 4240 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDACodecGeneric at line 1374 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDAWidget at line 4240 Nov 7 21:39:45 LocalHost kernel[0]: Sound assertion in AppleHDACodecGeneric at line 1374 this is the patch, search and replace ? to any errors ? like this one for mine 889a ? Thanks!!! 536F756E 64206173 73657274 696F6E20 to 00000000 00000000 00000000 00000000 Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1965060 Share on other sites More sharing options...
Alex009988 Posted November 8, 2013 Author Share Posted November 8, 2013 Hello. Yes this patch should cover all of the assertions. Before this patch I also had similar assertions. After, my log is clean. 01/10/13 15:15:09,000 kernel[0]: Sound assertion in AppleHDAEngine at line 581 01/10/13 15:15:09,000 kernel[0]: Sound assertion in AppleHDAWidget at line 4240 01/10/13 15:15:09,000 kernel[0]: Sound assertion in AppleHDACodecGeneric at line 1374 01/10/13 15:16:04,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 01/10/13 15:16:54,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 01/10/13 15:17:45,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 01/10/13 15:18:35,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 01/10/13 15:19:31,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 01/10/13 15:20:26,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1965299 Share on other sites More sharing options...
Guitarliuk Posted November 11, 2013 Share Posted November 11, 2013 Hi. I have the same problem as yours, Alex 11/11/13 19:14:22,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 11/11/13 19:14:22,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 11/11/13 19:14:22,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 11/11/13 19:14:22,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 11/11/13 19:15:12,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 11/11/13 19:15:12,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 11/11/13 19:15:12,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 11/11/13 19:15:12,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 So, I would apply the patch that you suggest, but unluckily I am new in this project and don't know how to operate. What should I do? I appreciate any help in advance. Sorry for my bad english, I'm from Italy. Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1966635 Share on other sites More sharing options...
jerrywilborn Posted November 11, 2013 Share Posted November 11, 2013 I don't use an EFI bootloader (I use Chameleon). Here's how I fixed the issue (using Terminal): cd /System/Library/Extensions/AppleHDA.kext/Contents/MacOS sudo cp AppleHDA AppleHDA.backup sudo perl -pi -e 's|\x53\x6F\x75\x6E\x64\x20\x61\x73\x73\x65\x72\x74\x69\x6F\x6E\x20|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|g' AppleHDA Use Kext Wizard to rebuild your cache and repair permissions. Now I can actually get some use out of dmesg! Thanks for figuring this out, Alex!! 4 Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1966745 Share on other sites More sharing options...
Guitarliuk Posted November 11, 2013 Share Posted November 11, 2013 I must thank both Alex, for figuring this out, and Jerry. I followed what you suggested to do in Terminal. Finally those annoying Console messages are gone. Thanks again guys. Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1966758 Share on other sites More sharing options...
Alex009988 Posted November 15, 2013 Author Share Posted November 15, 2013 I must thank both Alex, for figuring this out, and Jerry. I followed what you suggested to do in Terminal. Finally those annoying Console messages are gone. Thanks again guys. Either you can use hexedit to apply the patch apart from terminal. Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1968160 Share on other sites More sharing options...
poispois Posted November 17, 2013 Share Posted November 17, 2013 I've created a topic to my specific issue before finding this, here: http://www.insanelymac.com/forum/topic/293961-how-to-get-rid-of-these-sound-assertions-in-console/ I've added your <dict> to Clover plist but I still have sound assertions. Do I need any more steps to get rid of the sound assertions? Thanks in advance Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1968979 Share on other sites More sharing options...
nyolc8 Posted January 28, 2014 Share Posted January 28, 2014 I had only one sound assertion error line at booting in 10.9.2, this fix cleaned that too. Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-1989442 Share on other sites More sharing options...
juanerson Posted November 2, 2014 Share Posted November 2, 2014 Worked, thank you Alex, and Jerry. I applied the patch to AppleHDA and AppleHDAController. Just remain one line booting: 2/11/14 11:29:00,000 kernel[0]: Sound assertion in IOHDACodecDevice at line 145 EDITED: Applied the same patch to IOHDAFamily, and the last sound assertion is gone! Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-2080138 Share on other sites More sharing options...
david_osx Posted December 24, 2014 Share Posted December 24, 2014 using 10.10.1 with toledas latest edit for alc892 applehda.kext v 267 installed along with hdaenabler1.kext in S/L/E and using clover bootlader non UEFI install added the patch above AppleHDA and AppleHDAController in config.plist but still getting - kernel[0]: Sound assertion in AppleHDACodecGeneric at line 356 or 366 did i miss something? p.s I have some strange klick noise from time to time and when ever playing media like .mkv etc or youtube video or simple sound in itunes the sound just simple disappear for 1-2 sec like the system disturb the sound sync somehow.. don't know how to explain my problem unless you use my pc then you would understand.. any one know what that could be..???? here is the kext I'm using for the audio. AppleHDA + HDAEnabler1.zip Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-2097759 Share on other sites More sharing options...
MacNB Posted October 3, 2016 Share Posted October 3, 2016 Hello. I had fully-working codec for ALC670, but there was only two issues. The first, endless assertions 03/10/13 20:56:34,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 03/10/13 20:57:24,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 03/10/13 20:58:14,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 03/10/13 20:59:24,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 03/10/13 21:00:25,000 kernel[0]: Sound assertion in AppleHDAWidget at line 2181 And what do you think? All of the assertions have disappeared. Now I have clean Console. I check sleep, ports. Everything works as it was before. The solution for Clover-bootloader, you know, Clover can patch any kexts <dict> <key>Comment</key> <string>Patch_against_assertions</string> <key>Find</key> <data> U291bmQgYXNzZXJ0aW9uIA== </data> <key>Name</key> <string>AppleHDA</string> <key>Replace</key> <data> AAAAAAAAAAAAAAAAAAAAAA== </data> </dict> Please, give a feedback if it works for you too. This patch no longer works with Sierra 10.12. Any idea what the patch actually did (so that may be it can be fixed) ? Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-2291889 Share on other sites More sharing options...
insanelyDeepak Posted October 16, 2016 Share Posted October 16, 2016 This patch no longer works with Sierra 10.12. Any idea what the patch actually did (so that may be it can be fixed) ? I can confirm its working for me , too many others in Sierra maybe clover skipping yo patch , why don't you try manual Bin-Patch ? Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-2300652 Share on other sites More sharing options...
MacNB Posted November 1, 2016 Share Posted November 1, 2016 Yes it's working . I was disabling the patch (accidentally) in clover config.plist. Only issue now is popping/clicking sounds every 25 to 30 seconds. Really annoying. It never happened before I upgraded to 10.12. May be changing from macpro3,1 to imac14,2 did not help Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-2311968 Share on other sites More sharing options...
Mirone Posted November 1, 2016 Share Posted November 1, 2016 Only issue now is popping/clicking sounds every 25 to 30 seconds. use this: https://www.macupdate.com/app/mac/29024/antipop Link to comment https://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/#findComment-2311972 Share on other sites More sharing options...
Recommended Posts