Jump to content
Alex Auditore

How to get rid of any Sound Assertions on AppleHDA

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

Share this post


Link to post
Share on other sites
Advertisement

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

Share this post


Link to post
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".

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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

Share this post


Link to post
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?

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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!!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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) ?

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

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  :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By moman2000
      Hi,
       
      Here it is (attached) for anyone who needs it for patching or restoring!
       
      Taken from macOS 10.14 Beta 1 18A293u
       
      Regards,
      Mohamed
      AppleHDA_282.5.kext.zip
    • By rio2
      How to make AppleHDAController load on Ryzen boards?
      Rename(/add) your audio controller to your DSDT/SSDT as HDEF Add a _DSM method to your HDEF device with layout id 1 Patch the AppleHDAController binary, because it has a static table containing the supported PCI Vendor/DeviceID pairs and it also checks the VendorID against known values. As an example I provide a dif file and patched 10.13.3 binary, but if you want to I can patch the binary for other versions.  
      After AppleHDAController loads to actually get sound working you need to patch AppleHDA.kext for the codec on your board. First I tried to use Lilu+AppleALC for this task, but for some reason it refused to work. (I might look into it later why) But for the time being it was easier to use toleda's cloverALC script for that, but to make it work I had to change(/remove) the specified location of the HDEF device from the script. And for some reason it also required me to mount the EFI partition manually.
       
      Change this:
      if [[ $(cat /tmp/HDEF.txt | grep -c "HDEF@1") != 0 ]]; then Into this:
      if [[ $(cat /tmp/HDEF.txt | grep -c "HDEF") != 0 ]]; then  
      AppleHDAController_Patched10.13.3
      AppleHDAController-10.13.3-AMD.bdiff
    • By zeg66
      Please help me with this 10.9.5 system. Motherboard: Gigabyte 965p-s3 rev3.3, gpu: Ati Radeon HD6450 (dvi/hdmi/vga). 
      Using any of the 3 ports on the 6450 (dvi, hdmi, vga), I see all the white letters on black background during boot but when they complete and it's time for the graphics to start I get a black screen and sometimes a restart after that. Using Clover 4411. Is there any way to get past this?
    • By zeg66
      Could you please help me enable the VGA port on the GT710 in 10.9.5 13F34 ? 
      It is currently booting fine through its HDMI port, web driver 334.0103f01 and config.plist arguments checked: Verbose (-v), npci=0x2000, dart=0, nvda_drv=1
      The nvidia GT710 works fine through its VGA port and web drivers on a friend's Mac Pro 3,1
      I must soon return this borrowed HDMI monitor, mine only has a VGA port so I'd appreciate your input.
    • By zeg66
      Have managed to boot into Finder without a usb but cannot see the outside world. Could you please help me to enable Marvell 80E8056 ethernet access on 10.9.5 13F34 ?
×