🚧 We are currently migrating our forum expirience to another level! Please stay tunned! New forum and more support & features soon! 🚧

👉 Donations via PayPal 💰 [External Link Removed for Guests]👈
👉 Installation/Post Tutorials 👨‍💻 [Local Link Removed for Guests]👈
👉 Useful Links 🔗 [Local Link Removed for Guests]👈
👉 Olarila Latest Images 💿 [Local Link Removed for Guests]👈
👉 Guides & Tutorials 🙋‍♂️ [Local Link Removed for Guests]👈
👉 Clover Folder for All Chipsets 🍀 [Local Link Removed for Guests]👈
👉 DSDT Patch Requests 📦 [Local Link Removed for Guests]👈

🎉 NEW Discord server!

[External Link Removed for Guests]
Invite Link: [External Link Removed for Guests]

How to patch AppleHDA

noyfb
Posts: 3
Joined: 21 Feb 2012, 20:57

Re: How to patch AppleHDA

Post by noyfb »

Mirone wrote: 21-16-3-->Speaker
20-15-2-->Phone
7-36-25-->Mic Int.
8-35-24-->Mic Ext.
Note: For notebooks is necessary to add a codecverbs to the EAPD.
in your case would 01570C02.

How did you get to the conclusion that his codecverd was 01570C02 by just looking at his graph?
Aren't codecverbs 4 x 8 alpha numeric sequences?
User avatar
Mirone
Developer
Developer
Posts: 1760
Joined: 15 Jun 2011, 14:22
CPU: Intel Core i7-8700k
Motherboard: GA-Z370M Aorus Gaming
GPU: Radeon RX 560 - 4GB

Re: How to patch AppleHDA

Post by Mirone »

This is a value for EAPD.
[External Link Removed for Guests]
noyfb
Posts: 3
Joined: 21 Feb 2012, 20:57

Re: How to patch AppleHDA

Post by noyfb »

I understand it's for EAPD Detect.
I can not figure out how you got that number. Where did you pull it out from?
How did you build that sequence?
User avatar
Mirone
Developer
Developer
Posts: 1760
Joined: 15 Jun 2011, 14:22
CPU: Intel Core i7-8700k
Motherboard: GA-Z370M Aorus Gaming
GPU: Radeon RX 560 - 4GB

Re: How to patch AppleHDA

Post by Mirone »

noyfb wrote:I understand it's for EAPD Detect.
I can not figure out how you got that number. Where did you pull it out from?
How did you build that sequence?
14=Node70c=value reserved02=EAPD Value
note in the file codec_dump_dec.txt.svg
[External Link Removed for Guests]
User avatar
ACS79
Posts: 17
Joined: 08 Aug 2013, 01:15
CPU: i7 3820 | Core i7 4790K
Motherboard: GAX79-UP5-WIFI | GAZ97X-UDH5
GPU: GTX660 TI | GTX970
Location: Rio de Janeiro - RJ

Re: How to patch AppleHDA

Post by ACS79 »

Guys, I'm trying to enable my audio using AppleHDA for ALC 269.
My HDEF get this way?

Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x08)
{
"codec-id",
Buffer (0x04)
{
0x3E, 0x29, 0x00, 0x00
},

"layout-id",
Buffer (0x04)
{
0x0D, 0x01, 0x00, 0x00
},

"device-type",
Buffer (0x11)
{
"ALC269"
},

"PinConfigurations",
Buffer (0x2C)
{
/* 0000 */ 0xF0, 0x11, 0x11, 0x41, 0xF0, 0x11, 0x11, 0x41,
/* 0008 */ 0x10, 0x00, 0x13, 0x90, 0x40, 0x40, 0x21, 0x01,
/* 0010 */ 0xF0, 0x11, 0x11, 0x41, 0x30, 0x90, 0xA1, 0x01,
/* 0018 */ 0x50, 0x00, 0xA3, 0x90, 0xF0, 0x11, 0x11, 0x41,
/* 0020 */ 0xF0, 0x11, 0x11, 0x41, 0x60, 0x80, 0x03, 0x40,
/* 0028 */ 0x20, 0x00, 0x43, 0x90
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}

the audio information in the system, however the audio still does not work, look at the images below:
Image
10.8.5 | 10.9.5 : GA-X79-UP5 | Intel LGA 2011 | Core i7 3820 | GTX660 TI | ALC898
10.10.3 : GA-Z97X-UDH5 BK| Intel LGA 1150 | Core i7 4790K | GTX970 | ALC1150 | TP-Link TL-WDN4800 | USB Bluetooth Comtac
User avatar
Mirone
Developer
Developer
Posts: 1760
Joined: 15 Jun 2011, 14:22
CPU: Intel Core i7-8700k
Motherboard: GA-Z370M Aorus Gaming
GPU: Radeon RX 560 - 4GB

Re: How to patch AppleHDA

Post by Mirone »

try this kext: [Local Link Removed for Guests]
[External Link Removed for Guests]
noyfb
Posts: 3
Joined: 21 Feb 2012, 20:57

Re: How to patch AppleHDA

Post by noyfb »

Need help!

I have ACL 269.
The drivers are being loaded but no audio in/output are being listed.

Could you help me please?



DSDT.HDEF._DSM

Code: [Local Link Removed for Guests]

Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x04)
                        {
                            "layout-id", 
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            }, /* 
                            "codec-id", 
                            Buffer (0x04)
                            {
                                 "283902569"
                            }, 
                            "hda-gfx",
							Buffer (0x0A)
							{
								"onboard-1"
							}, */
                            "PinConfigurations", 
                            Buffer (Zero) {}
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
Verbs Fixed:

Code: [Local Link Removed for Guests]

Codec: Realtek ALC269   Address: 0   DevID: 283902569 = Codec ID (0x10ec0269)
Codec name 		: Realtek ALC269
Codec Name HEX      : 0x10ec0269
Codec Name Binary 	: 283902569
Codec Map to Apple	: ADI 1984

   Jack   	Color  	Description             	Node     PinDefault     Original Verbs

    1/8   	Black  	Speaker at Ext Rear     	17 0x11   0x411111f0 	01171cf0 01171d11 01171e11 01171f41                              
    1/8   	Black  	Speaker at Ext Rear     	18 0x12   0x411111f0   	01271cf0 01271d11 01271e11 01271f41
  ATAPI 	Unknown Speaker at Int ATAPI    	20 0x14   0x99130110   	01471c10 01471d01 01471e13 01471f99
    1/8   	Green  	HP Out at Ext Rear      	21 0x15   0x0121401f   	01571c1f 01571d40 01571e21 01571f01
  ATAPI 	Unknown Speaker at Int ATAPI    	22 0x16   0x99130120   	01671c20 01671d01 01671e13 01671f99
 			        Mic at Ext Rear   		0x18 0x18 27367488   	01871c40 01871d98 01871ea1 01871f01  
 			        Mic at Int ATAPI    		0x19 0x19 2577598799  01971c4f 01971d09 01971ea3 01971f99  
    1/8   	Black  	Speaker at Ext Rear          26 0x1a   0x411111f0   	01a71cf0 01a71d11 01a71e11 01a71f41
    1/8   	Black  	Speaker at Ext Rear     	27 0x1b   0x411111f0   	01b71cf0 01b71d11 01b71e11 01b71f41
  ATAPI  	Purple 	Line Out at Ext N/A     	29 0x1d   0x40038205   	01d71c05 01d71d82 01d71e03 01d71f40
  ATAPI 	Unknown SPDIF Out at Int ATAPI      	30 0x1e   0x99430130   	01e71c30 01e71d01 01e71e43 01e71f99


   Jack   	Color  	Description             	Node     PinDefault     Original Verbs
NOT USED
    1/8   	Black  	Speaker at Ext Rear     	17 0x11   0x411111f0 	01171cf0 01171d11 01171e11 01171f41                              
    1/8   	Black  	Speaker at Ext Rear     	18 0x12   0x411111f0   	01271cf0 01271d11 01271e11 01271f41
    1/8   	Black  	Speaker at Ext Rear    	26 0x1a   0x411111f0   	01a71cf0 01a71d11 01a71e11 01a71f41
    1/8   	Black  	Speaker at Ext Rear     	27 0x1b   0x411111f0   	01b71cf0 01b71d11 01b71e11 01b71f41
  ATAPI  	Purple 	Line Out at Ext N/A     	29 0x1d   0x40038205   	01d71c05 01d71d82 01d71e03 01d71f40
  ATAPI 	Unknown SPDIF Out at Int ATAPI      	30 0x1e   0x99430130   	01e71c30 01e71d01 01e71e43 01e71f99


USED
  ATAPI 	Unknown Speaker at Int ATAPI    	20 0x14   0x99130110   	01471c10 01471d01 01471e13 01471f99
  ATAPI 	Unknown Speaker at Int ATAPI    	22 0x16   0x99130120   	01671c20 01671d01 01671e13 01671f99
    1/8   	Green  	HP Out at Ext Rear      	21 0x15   0x0121401f   	01571c1f 01571d40 01571e21 01571f01
 			        Mic at Ext Rear   		0x18 0x18 27367488   	01871c40 01871d98 01871ea1 01871f01  
 			        Mic at Int ATAPI    		0x19 0x19 2577598799  01971c4f 01971d09 01971ea3 01971f99  
=================================================================================
FIXING
  ATAPI 	Unknown Speaker at Int ATAPI    	20 0x14   0x99130110   	01471c10 01471d01 01471e13 01471f90   	10 01 1000 
  ATAPI 	Unknown Speaker at Int ATAPI    	22 0x16   0x99130120   	01671c20 01671d01 01671e13 01671f90	10 01 1000

    1/8   	Green  	HP Out at Ext Left      	21 0x15   0x03211030   	01571c30 01571d10 01571e21 01571f03	00 00 0011
 			        Mic at Ext Left (line in)  	24 0x18	0x03a11040	01871c40 01871d10 01871e81 01871f03  	00 00 0011

 			        Mic at Int ATAPI    		25 0x19   0x99a30150 	01971c50 01971d01 01971e83 01971f90  	10 01 1000
			

			       Speaker EAPD 					01470C02
			       HP EPAD						01570C02

You do not have the required permissions to view the files attached to this post.
User avatar
ACS79
Posts: 17
Joined: 08 Aug 2013, 01:15
CPU: i7 3820 | Core i7 4790K
Motherboard: GAX79-UP5-WIFI | GAZ97X-UDH5
GPU: GTX660 TI | GTX970
Location: Rio de Janeiro - RJ

Re: How to patch AppleHDA

Post by ACS79 »

Mirone the kext not worked in 10.8.5 and 10.9

My files of audio are on link: [External Link Removed for Guests]
10.8.5 | 10.9.5 : GA-X79-UP5 | Intel LGA 2011 | Core i7 3820 | GTX660 TI | ALC898
10.10.3 : GA-Z97X-UDH5 BK| Intel LGA 1150 | Core i7 4790K | GTX970 | ALC1150 | TP-Link TL-WDN4800 | USB Bluetooth Comtac
Baoren
Posts: 1
Joined: 15 Dec 2011, 20:36

Re: How to patch AppleHDA

Post by Baoren »

Hi there, my 1st post,
if possible I'd need some help to complete the patch I am trying to do on an AppleHDA.kext for my laptop (G74sx). It should have an ALC269VB, but i think it has a peculiar version of it, so standard kext patched don't work. I used and old version I found of AppleHDA.kext which worked fine till now (with some problems time by time), but is not working anymore in 10.9.2.

I followed all the 1st steps. I extracted codec_dump.txt, I converted to hexadecimals, I created the svg from these files, and so the verbs. I modified the info.plist from the 2 kexts inside the plugin folders.

My doubts start at this point.
1St of all, in the folder AppleHDA.kext/Contents/Resources, from an original AppleHDA.kext from 10.9.2, there are these folders:
English.lproj
Japanese.lproj
ko.lproj
zh_CN.lproj
zh_TW.lproj

And these files:
DefaultAudioLevels.plist
layout90.xml.zlib
layout92.xml.zlib
layout94.xml.zlib
layout120.xml.zlib

No trace of layout12.xml.zlib or platforms.xlm.zlib. But I see in other AppleHDA.kext already patched these files are present. So my 1st query is this: where are these files?

Anyway, I tryed to understand the structures of these files taken from other kext already patched.
It seems quite easy to modify the layout. But platforms.xml seems quite troubled to me. I don't understand enough the SVG file I created from codec dump. Especially, I don't understand these things:
the difference between dot lines and normal lines
the difference between grey and blue lines
which of the nodes I should check, considering that they seem to be more than I need
And I don't understand as well the structure that pathmap must follow. Without some suggestion it will take me a life to understand it properly.

I didn't try to patch the AppleHDA inside MacOS folder, but now I want to solve these other steps, if I find any problem at that point I'll post again.

I may need to review also my DSDT, but I think I can figure it out by myself. And if I won't, I'll ask.

I am open to any suggestion. I will attach the files I extracted so you can give it a look. Also, I'll add a converted version in PNG of the codec_dump_dec.txt.svg.

Thanks for any help
You do not have the required permissions to view the files attached to this post.
jason_266
Posts: 11
Joined: 20 Nov 2013, 11:05
CPU: intel
Motherboard: hm65
GPU: intel

Re: How to patch AppleHDA

Post by jason_266 »

hello.ihave tried to start the guide for patch the applehda kext for my codec but on terminal i take the same message all the time.(No such file or directory). follow the steps very carefully but nothing.

can you help me?
i give you my codec dump from ubuntu if this help you

[External Link Removed for Guests]
You do not have the required permissions to view the files attached to this post.
User avatar
Mirone
Developer
Developer
Posts: 1760
Joined: 15 Jun 2011, 14:22
CPU: Intel Core i7-8700k
Motherboard: GA-Z370M Aorus Gaming
GPU: Radeon RX 560 - 4GB

Re: How to patch AppleHDA

Post by Mirone »

Baoren wrote: Anyway, I tryed to understand the structures of these files taken from other kext already patched.
It seems quite easy to modify the layout. But platforms.xml seems quite troubled to me. I don't understand enough the SVG file I created from codec dump. Especially, I don't understand these things:
the difference between dot lines and normal lines
the difference between grey and blue lines
which of the nodes I should check, considering that they seem to be more than I need
And I don't understand as well the structure that pathmap must follow. Without some suggestion it will take me a life to understand it properly.

I didn't try to patch the AppleHDA inside MacOS folder, but now I want to solve these other steps, if I find any problem at that point I'll post again.

I may need to review also my DSDT, but I think I can figure it out by myself. And if I won't, I'll ask.

I am open to any suggestion. I will attach the files I extracted so you can give it a look. Also, I'll add a converted version in PNG of the codec_dump_dec.txt.svg.

Thanks for any help
Speaker = 27-13-3
Headphones = 33-12-2
Ext. Mic = 9-34-24
Int. Mic = 8-35-25
In his pinconfigs you will need a EAPD
to be 01470c02.
The best way for you to see this is with a cmparando
kext already corrected, take it as an example.
[External Link Removed for Guests]
User avatar
Mirone
Developer
Developer
Posts: 1760
Joined: 15 Jun 2011, 14:22
CPU: Intel Core i7-8700k
Motherboard: GA-Z370M Aorus Gaming
GPU: Radeon RX 560 - 4GB

Re: How to patch AppleHDA

Post by Mirone »

jason_266 wrote:hello.ihave tried to start the guide for patch the applehda kext for my codec but on terminal i take the same message all the time.(No such file or directory). follow the steps very carefully but nothing.

can you help me?
i give you my codec dump from ubuntu if this help you

[External Link Removed for Guests]
Here is the folder with the files you need.
codecgraph.zip
You do not have the required permissions to view the files attached to this post.
[External Link Removed for Guests]
calabash
Posts: 2
Joined: 01 May 2015, 21:51
CPU: i7-620M
Motherboard: Unknown
GPU: GMA5700MHD

Re: How to patch AppleHDA

Post by calabash »

Hi,
i have a HP G72 from my working colleague here and i try to patch the ALC270, because all the kexts floating around do not work for me.

I have tried layout 12 and 28.
Only headphone is working with the patched kext. With voodooHDA i get full sound.

Inject via clover, no DSDT injection.

Please can you take a look or do you have some ideas?

Thank you
You do not have the required permissions to view the files attached to this post.
koreandokdo
Posts: 4
Joined: 30 Aug 2014, 19:53
CPU: e7400
Motherboard: p5e
GPU: hd4350

Re: How to patch AppleHDA

Post by koreandokdo »

A noob question, Sorry,
As weird as it is, I can not find any .xml files of whatsoever in the Resource folder!!
Am i even looking in the right place ? By Resource folder does it mean in AppleHDA.kext > Contents > Resource?
If not, should i add or create the said .xml files there?
By the way I am on 10.6.3. (Yeah, outdated i know :D )
edubz
Posts: 5
Joined: 01 Jan 2016, 02:20
CPU: Intel Core i7 4720HQ
Motherboard: acer v15 nitro
GPU: nvida 960m

Re: How to patch AppleHDA

Post by edubz »

im in lunix now how do I copy the files over to my other USB stick it wont let me
chechevara
Posts: 1
Joined: 10 Apr 2016, 18:37
CPU: Core i3 3120m
Motherboard: Gigabyte
GPU: IntelHD4000

Re: How to patch AppleHDA

Post by chechevara »

Hi I need some help for patching my AppleHDA Codec.

these are may laptop specs
Samsung NP300e5e
Intel Core i3-3120M - Ivy Bridge
Intel HM75 Express Chipset
Intel HD Graphics 4000
Realtek ALC269VC

I have installed OS X 10.9.5 (13F1712) - everything works except wifi (problem solved with an usb wifi adapter) and sound (works with voodooHDA 2.8.8V3 but i have noise in headphones and sometimes sound distorsion). I choose this version of Mac OS X because camera is working out of a box (in El Capitan and Yosemite doesn't).

I use Clover bootloader UEFI

I have tried to patch AppleHDA from you guide but sound still not working. Maybe i did something wrong. Also i don't know what HDEF and DTGP patch for config.plist is good in my case. Some maybe you can help me with this. Here are my Codec_dumb the AppleHDA kext that i tired to patch and the Codecgraph folder that i used for patching.
Thanks!!!!
You do not have the required permissions to view the files attached to this post.
stich86
Posts: 1
Joined: 04 May 2017, 15:03
CPU: i7 6700
Motherboard: Lenovo
GPU: GTX960

Re: How to patch AppleHDA

Post by stich86 »

Hi guys,

I'm trying to get Internal and External MIC (LineIn, LineOut, Headphone work as expected) working on my Lenovo M800 (I've created my own Layout-ID 12)


with this verbs I get front mic working and recognized as Internal MIC:

<01471c10 01471d40 01471e01 01471f01
01571c20 01571d00 01571e13 01571f90
01871c30 01871d90 01871ea1 01871f01 -- change port type to External REAR (while it's front)
01971c40 01971d90 01971ea1 01971f90 -- change port type to Internal
01a71c50 01a71d30 01a71e81 01a71f01
01b71c60 01b71d40 01b71e21 01b71f02
01e71c70 01e71d61 01e71e4b 01e71f01>

Then put in the Platform.xml ([External Link Removed for Guests]) the pathmaph 9-34-25 (instead of 9-34-25 that's the rear port) make front mic port to work.. while missing rear port
Now I think the problem is in the connection between verbs and Platform.

As External Input I've just 8-35-26 (that's linein) and As Internal Input 9-35-25 (front mic port).. how to add a third Input? It need to be put into array 0 (external input) as 1 child or in the array 1 (internal input) as 1 child?

Currently in the Pathmap i've

- 0 - with child 0 as Line In
- 1 - with child 0 as Front Mic
- 2 - with child 0,1,2 as HeadPhone, LineOut, Internal Speaker
- 3 - with child 0 as SPDIF

Any help is appreciated

Thanks!
richdtv
Posts: 4
Joined: 04 Dec 2018, 04:19
CPU: 5500U
Motherboard: Dell
GPU: intel

How to patch AppleHDA

Post by richdtv »

Hi all,

I downloaded AppleHDA patcher v1.9 on desktop of my Capitan installation. I get only a blue window with mountains. There is no instructions to patch my ALC255 in the AppleHDA patcher window. Can you please guide me how exactly i should use this patcher?
sleepynow
Posts: 3
Joined: 04 Jan 2019, 00:24
CPU: I3 370M
Motherboard: Acer 4749
GPU: Intel HD Graphics Arrandale

How to patch AppleHDA

Post by sleepynow »

I've tried to patch applehda.kext by myself, but it still does not has sound? hope anyone can help me to take a look where my miss is,
Heres my spec: Acer 4739, ALC271x (based on codec dump), Yosemite 10.10.5
I also attach my applehda.kext, in case you guys want to check it. Thanks in advance
edit: after some minute( maybe 30 mins), in device(system info) built-in and built-out show up, but still no sound, and ioreg also changed
(I attach it also)
You do not have the required permissions to view the files attached to this post.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 17486
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

How to patch AppleHDA

Post by MaLd0n »

sleepynow, u try a AppleHDAPatcher?
--Donations via PayPal [External Link Removed for Guests] :guitar

--Problems with Paypal? Check Here [Local Link Removed for Guests] :guitar

--Useful Links [Local Link Removed for Guests] :guitar

--Olarila Hackintosh Builds [Local Link Removed for Guests] :guitar

--Donated? Send me one Private Message
Post Reply

Return to “Guides and tutorials”