Jump to content

How to patch AppleHDA.kext from 10.5.2 and above


  • Please log in to reply
227 replies to this topic

#221
MordLust

MordLust

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts
Hello, i need your help!

I've been trying for several days, to patch the AppleHDA so that the external microphone works!
I have a internal and a external Mic, but in applehda nothing works! in voodoohda only the internal works!

my laptop is a: Lenovo G560 i3 Nvidia310M

soundcard : Conexant Cocoa II High Definition SmartAudio

HDAUDIO\FUNC_01&VEN_14F1&DEV_5069&SUBSYS_17AAC00B&REV_1003

Problem is: I dont know exactly how to edit the pathmaps in AppleHDAPlatformDriver.kext.
I have read the How to read codecdump.rtf but it didnt work for me, or i do a mistake!

Internal Speaker and Headphones works really good (it detects automaticly my Headphones).
When i "play" with the PathMaps it shows the Mic in Pannel, but Sound dont work:
Attached File  hda.jpg   60.13KB   44 downloads


Can you please look at my applehda.kext what i do wrong?

these are my pathmaps:
<key>PathMaps</key>
					 <array>
						 <dict>
							 <key>PathMap</key>
							 <array>
								 <array>
									 <array>
										 <array>
											 <dict>
												 <key>Amp</key>
												 <dict>
													 <key>Channels</key>
													 <array>
														 <dict>
															 <key>Bind</key>
															 <integer>1</integer>
															 <key>Channel</key>
															 <integer>1</integer>
														 </dict>
														 <dict>
															 <key>Bind</key>
															 <integer>2</integer>
															 <key>Channel</key>
															 <integer>2</integer>
														 </dict>
													 </array>
													 <key>MuteInputAmp</key>
													 <true/>
													 <key>PublishMute</key>
													 <true/>
													 <key>PublishVolume</key>
													 <true/>
													 <key>VolumeInputAmp</key>
													 <true/>
												 </dict>
												 <key>NodeID</key>
												 <integer>22</integer>
											 </dict>
											 <dict>
												 <key>NodeID</key>
												 <integer>24</integer>
											 </dict>
											 <dict>
												 <key>NodeID</key>
												 <integer>27</integer>
											 </dict>
										 </array>
									 </array>
								 </array>
								 <array>
									 <array>
										 <array>
											 <dict>
												 <key>NodeID</key>
												 <integer>31</integer>
											 </dict>
											 <dict>
												 <key>Amp</key>
												 <dict>
													 <key>Channels</key>
													 <array>
														 <dict>
															 <key>Bind</key>
															 <integer>1</integer>
															 <key>Channel</key>
															 <integer>1</integer>
														 </dict>
														 <dict>
															 <key>Bind</key>
															 <integer>2</integer>
															 <key>Channel</key>
															 <integer>2</integer>
														 </dict>
													 </array>
													 <key>MuteInputAmp</key>
													 <true/>
													 <key>PublishMute</key>
													 <true/>
													 <key>PublishVolume</key>
													 <true/>
													 <key>VolumeInputAmp</key>
													 <false/>
												 </dict>
												 <key>NodeID</key>
												 <integer>16</integer>
												 <key>Verf</key>
												 <integer>80</integer>
											 </dict>
										 </array>
									 </array>
									 <array>
										 <array>
											 <dict>
												 <key>NodeID</key>
												 <integer>25</integer>
											 </dict>
											 <dict>
												 <key>Amp</key>
												 <dict>
													 <key>Channels</key>
													 <array>
														 <dict>
															 <key>Bind</key>
															 <integer>1</integer>
															 <key>Channel</key>
															 <integer>1</integer>
														 </dict>
														 <dict>
															 <key>Bind</key>
															 <integer>2</integer>
															 <key>Channel</key>
															 <integer>2</integer>
														 </dict>
													 </array>
													 <key>MuteInputAmp</key>
													 <true/>
													 <key>PublishMute</key>
													 <false/>
													 <key>PublishVolume</key>
													 <true/>
													 <key>VolumeInputAmp</key>
													 <false/>
												 </dict>
												 <key>NodeID</key>
												 <integer>16</integer>
												 <key>Verf</key>
												 <integer>80</integer>
											 </dict>
										 </array>
									 </array>
								 </array>
							 </array>
							 <key>PathMapID</key>
							 <integer>9</integer>
						 </dict>
					 </array>
				 </dict>
			 </dict>

Attached Files



#222
MordLust

MordLust

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts
I'm a little confused! please help me understand!

In the How to read codecdump.rtf it says i have to look for this Nodes:
  • Input Node
  • Audio Selector
  • Mic In (Jack)
Thats in my case: 20 + 23 + 27

But in Tarugas AppleHDA guide.pdf it says i have to look for:
  • Input Node
  • Mixer Node
  • Mic In (jack)
Thasts in my case: 20 + 36 + 27

What is correct?

#223
LinearBurn

LinearBurn

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 104 posts
  • Location:Oklahoma USA
Ok i grabed my pinconfig btu not sure how to bit flip it if any one could please help me

If i get this working i plan to pass this on for others with my laptop so that they may be saved the pain in the arss this has been

ALC269 Lion GM Asus g73sw

My card is listing in the audio section of sys profiler but just dont have any outputs under sound

Any help is uber apricated

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0001\PinConfigOverrideVerbs]
"0000"=hex:f0,1c,27,01
"0001"=hex:11,1d,27,01
"0002"=hex:11,1e,27,01
"0003"=hex:41,1f,27,01
"0004"=hex:10,1c,47,01
"0005"=hex:01,1d,47,01
"0006"=hex:13,1e,47,01
"0007"=hex:99,1f,47,01
"0008"=hex:20,1c,77,01
"0009"=hex:01,1d,77,01
"0010"=hex:13,1e,77,01
"0011"=hex:99,1f,77,01
"0012"=hex:40,1c,87,01
"0013"=hex:98,1d,87,01
"0014"=hex:a1,1e,87,01
"0015"=hex:01,1f,87,01
"0016"=hex:4f,1c,97,01
"0017"=hex:09,1d,97,01
"0018"=hex:a3,1e,97,01
"0019"=hex:99,1f,97,01
"0020"=hex:f0,1c,a7,01
"0021"=hex:11,1d,a7,01
"0022"=hex:11,1e,a7,01
"0023"=hex:41,1f,a7,01
"0024"=hex:f0,1c,b7,01
"0025"=hex:11,1d,b7,01
"0026"=hex:11,1e,b7,01
"0027"=hex:41,1f,b7,01
"0028"=hex:2d,1c,d7,01
"0029"=hex:9a,1d,d7,01
"0030"=hex:07,1e,d7,01
"0031"=hex:40,1f,d7,01
"0032"=hex:30,1c,e7,01
"0033"=hex:01,1d,e7,01
"0034"=hex:43,1e,e7,01
"0035"=hex:99,1f,e7,01
"0036"=hex:1f,1c,17,02
"0037"=hex:40,1d,17,02
"0038"=hex:21,1e,17,02
"0039"=hex:01,1f,17,02
"NumVerbs"=hex:28,00,00,00

#224
LinearBurn

LinearBurn

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 104 posts
  • Location:Oklahoma USA

Ok i grabed my pinconfig btu not sure how to bit flip it if any one could please help me

If i get this working i plan to pass this on for others with my laptop so that they may be saved the pain in the arss this has been

ALC269 Lion GM Asus g73sw

My card is listing in the audio section of sys profiler but just dont have any outputs under sound

Any help is uber apricated

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0001\PinConfigOverrideVerbs]
"0000"=hex:f0,1c,27,01
"0001"=hex:11,1d,27,01
"0002"=hex:11,1e,27,01
"0003"=hex:41,1f,27,01
"0004"=hex:10,1c,47,01
"0005"=hex:01,1d,47,01
"0006"=hex:13,1e,47,01
"0007"=hex:99,1f,47,01
"0008"=hex:20,1c,77,01
"0009"=hex:01,1d,77,01
"0010"=hex:13,1e,77,01
"0011"=hex:99,1f,77,01
"0012"=hex:40,1c,87,01
"0013"=hex:98,1d,87,01
"0014"=hex:a1,1e,87,01
"0015"=hex:01,1f,87,01
"0016"=hex:4f,1c,97,01
"0017"=hex:09,1d,97,01
"0018"=hex:a3,1e,97,01
"0019"=hex:99,1f,97,01
"0020"=hex:f0,1c,a7,01
"0021"=hex:11,1d,a7,01
"0022"=hex:11,1e,a7,01
"0023"=hex:41,1f,a7,01
"0024"=hex:f0,1c,b7,01
"0025"=hex:11,1d,b7,01
"0026"=hex:11,1e,b7,01
"0027"=hex:41,1f,b7,01
"0028"=hex:2d,1c,d7,01
"0029"=hex:9a,1d,d7,01
"0030"=hex:07,1e,d7,01
"0031"=hex:40,1f,d7,01
"0032"=hex:30,1c,e7,01
"0033"=hex:01,1d,e7,01
"0034"=hex:43,1e,e7,01
"0035"=hex:99,1f,e7,01
"0036"=hex:1f,1c,17,02
"0037"=hex:40,1d,17,02
"0038"=hex:21,1e,17,02
"0039"=hex:01,1f,17,02
"NumVerbs"=hex:28,00,00,00


This is actualy Byte reversal This is how to do the math ... thanks Spider1! Hope this explains it for you guys!


Ok here are the values from the first post for Vista for the first 2 lines:
1f1ca700
401da700

Here are the converted numbers:
00a71c1f
00a71d40

So if you take the first number
1f 1c a7 00
00 a7 1c 1f

Second numbers
40 1d a7 00
00 a7 1d 40

So the matrix is:
1 2 3 4
1f 1c a7 00

4 3 2 1
00 a7 1c 1f

#225
HazMatt

HazMatt

    InsanelyMac Protégé

  • Members
  • Pip
  • 46 posts
  • Gender:Male
  • Location:MN, USA
  • Interests:FileMaker, Halo.
I'm having a heck of a time just finding out what my ALC898 codec is. It's not one of the five listed in codecs.rtf (in AppleHDA binary) nor is it listed in patch_realtek.c.txt. The Google is not working for me either. Opening AppleHDA in HexEdit had me screaming like a little girl. Can anyone post the ALC898 codec, or give me clear instructions for how to find it?

#226
René_

René_

    InsanelyMac Protégé

  • Donators
  • 76 posts
  • Gender:Male
  • Location:Maassluis, Netherlands
Hi HazMatt,
For the ALC898, try this: http://www.osx86.net....8_gm+hdef.html
HDAEnabler889.kext + AppleHDA.kext if you are NOT using a DSDT.
And for our boards, use the orange output. Green is not working. Also change in sound pref to Line Out.


So sorry, this is for the 889 and not for the 898 :(

Mixed up some things, maybe I need glasses :unsure:

#227
HazMatt

HazMatt

    InsanelyMac Protégé

  • Members
  • Pip
  • 46 posts
  • Gender:Male
  • Location:MN, USA
  • Interests:FileMaker, Halo.

HDAEnabler889.kext + AppleHDA.kext if you are NOT using a DSDT.

So I downloaded the HDAEnabler889.kext and am prepared to use Kext Wizard to install to System/Library/Extensions. I know there exists the original AppleHDA.kext in System/Library/Extensions, but it looks like the page you linked to has no less than three AppleHDA.kext files to choose from, depending on how many audio ports I want to enable:

V1 - The rear panel of five audio ports (Line In / Line Out / Line Out / Line Out / MIC)
V2 - The rear panel of the three audio ports (Line-in / Line-out / MIC)
V3 - No auto detect the headphone and microphone


I'm inclined to install HDAEnabler889.kext AND V1 of the hacked AppleHDA.kext. Does this jive with what you're suggesting? Would this potentially solve the green vs. orange output issue you mention?

p.s. I also am NOT using a DSDT at the moment.

Edited by HazMatt, 13 September 2012 - 03:06 AM.


#228
René_

René_

    InsanelyMac Protégé

  • Donators
  • 76 posts
  • Gender:Male
  • Location:Maassluis, Netherlands
Yes, you can take V1. Green port will not work, it only works on windows.
So use the orange or black port.
If you have no DSDT, you have to use the HDAEnabler898.

When you are later using a DSDT you don't need the HDAEnabler898 anymore, but instead put the HDEF section in your DSDT.

[Edit]
This is the right file for the ALC898: http://www.osx86.net...do=file&id=3218

Edited by René_, 04 April 2013 - 02:03 PM.






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