Jump to content

How to get rid of any Sound Assertions on AppleHDA

AppleHDA Mavericks

  • Please log in to reply
18 replies to this topic

#1
Alex Auditore

Alex Auditore

    InsanelyMac Legend

  • Donators
  • 700 posts
  • Gender:Male

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, 03 October 2013 - 06:26 PM.


#2
Mirone

Mirone

    InsanelyMac Deity

  • Local Moderators
  • 1,751 posts
  • Gender:Male
  • Location:Brazil
Good Work.
Soon I will test!
all the best!


#3
Alex Auditore

Alex Auditore

    InsanelyMac Legend

  • Donators
  • 700 posts
  • Gender:Male
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.

#4
Mirone

Mirone

    InsanelyMac Deity

  • Local Moderators
  • 1,751 posts
  • Gender:Male
  • Location:Brazil
After making the changes still have
2 sound assertions any ideas?


#5
Alex Auditore

Alex Auditore

    InsanelyMac Legend

  • Donators
  • 700 posts
  • Gender:Male

Show your Console please. kernel.log



#6
Mirone

Mirone

    InsanelyMac Deity

  • Local Moderators
  • 1,751 posts
  • Gender:Male
  • Location:Brazil

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


#7
Alex Auditore

Alex Auditore

    InsanelyMac Legend

  • Donators
  • 700 posts
  • Gender:Male

 

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



#8
Mirone

Mirone

    InsanelyMac Deity

  • Local Moderators
  • 1,751 posts
  • Gender:Male
  • Location:Brazil

Thanks!

No Sound Assertion in console now!



#9
whitegerry

whitegerry

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts
  • Gender:Male

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.



#10
GoGas

GoGas

    InsanelyMac Protégé

  • Members
  • Pip
  • 30 posts

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



#11
Alex Auditore

Alex Auditore

    InsanelyMac Legend

  • Donators
  • 700 posts
  • Gender:Male

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?

#12
iFIRE

iFIRE

    InsanelyMacaholic

  • Banned
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,807 posts
  • Gender:Male
  • Location:Bcn-Spain

  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


#13
Alex Auditore

Alex Auditore

    InsanelyMac Legend

  • Donators
  • 700 posts
  • Gender:Male

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


#14
Guitarliuk

Guitarliuk

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

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.


#15
jerrywilborn

jerrywilborn

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts

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!!



#16
Guitarliuk

Guitarliuk

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

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.



#17
Alex Auditore

Alex Auditore

    InsanelyMac Legend

  • Donators
  • 700 posts
  • Gender:Male

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.



#18
poispois

poispois

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 133 posts
  • Gender:Male
  • Location:Portugal

I've created a topic to my specific issue before finding this, here: http://www.insanelym...ons-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



#19
nyolc8

nyolc8

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 802 posts
  • Gender:Male
  • Location:Budapest, Hungary

I had only one sound assertion error line at booting in 10.9.2, this fix cleaned that too. :)







Also tagged with one or more of these keywords: AppleHDA, Mavericks


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy