Jump to content

How to get rid of any Sound Assertions on AppleHDA


Alex009988
 Share

26 posts in this topic

Recommended Posts

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 0
01e71d11 - Black / Reserved
01e71e4b - SPDIF / Combo
01e71f01 - Port is connected to a Jack / External on primary chassis / Rear
pin-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 by Alex Auditore
  • Like 8
Link to comment
Share on other sites

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
Share on other sites

 

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".

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

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
Share on other sites

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
Share on other sites

  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
Share on other sites

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
Share on other sites

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
Share on other sites

I don't use an EFI bootloader (I use Chameleon). Here's how I fixed the issue (using Terminal):

 

  1. cd /System/Library/Extensions/AppleHDA.kext/Contents/MacOS
  2. sudo cp AppleHDA AppleHDA.backup
  3. 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
  4. 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!!

  • Like 4
Link to comment
Share on other sites

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
Share on other sites

  • 2 months later...
  • 9 months later...

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
Share on other sites

  • 1 month later...

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
Share on other sites

  • 1 year later...

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
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Yes it's working :blush: . 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
Share on other sites

 Share

×
×
  • Create New...