Jump to content
PayPal donations: [email protected] ×
EMlyDinEsH

AppleHDA Binary Patching

Recommended Posts

Test and feedback

 

Gracias realmadrid for your efforts and time. I've tested but the kext doesn't load.

 

What I've done is, based on the patched kext for the K55vm in EDP, I've generated a new one with the following setup (taking into account the info from codecgraph):

 

Input:

-Internal mic:9-34-18 

-External mic:8-35-24

Output:

-Speakers:20-13-3

-Headphones:33-12-2

 

and the codec verb following EMlyDinEsH guide:

 

01271C10 01271D01 01271EA6 01271F90

01471C20 01471D01 01471E13 01471F90

01871C30 01871D10 01871E81 01871F02

02171C40 02171D10 02171E21 02171F02 01470C02

 

and with the attached one it works like a charm. Since ALC270 also suffers the jack sense issue, it is required to activate the patch included in ElanTouchpad kext to avoid stop working after sleep.

 

EMlyDinEsH, thanks for your guide. really helpfull.

 

AppleHDA.kext.ALC270.zip

Share this post


Link to post
Share on other sites

hey it's me again... today I tried to do everything from scratch... that's my data:

 

codec: alc269vb
address: 0
vendorid: 0x10ec0269 && 283902569
 
pincomplex - controlname
0x18 : default 0x04a11830
0x19 : default 0x99a3093f
0x1b : default 0x99130110
0x1e : default 0x99430120
0x21 : default 0x0421101f
 
----------------------------
 
0x18 : 30 18 a1 04
0x19 : 3f 09 a3 99
0x1b : 10 01 13 99
0x1e : 20 01 43 99
0x21 : 1f 10 21 04
 
----------------------------
 
0x18 : 10 10 a1 04 /// 0x08 -> 0x23 -> 0x18 /// 8 -> 35 -> 24
0x19 : 20 01 a3 99 /// 0x09 -> 0x22 -> 0x19 /// 9 -> 34 -> 25
0x1b : 30 01 13 99 /// 0x1b -> 0x0d -> 0x03 /// 27 -> 13 -> 3
0x1e : 40 01 43 99 /// 0x1e -> 0x06 -> ??   /// 30 -> 6 -> ???
0x21 : 50 10 21 04 /// 0x21 -> 0x0c -> 0x02 /// 33 -> 12 -> 2
 
----------------------------
 
01871c10 01871d10 01871e81 01871f04
01971c20 01971d01 01971ea3 01971f99
01b71c30 01b71d01 01b71e13 01b71f99
01e71c40 01e71d01 01e71e43 01e71f99
02171c50 02171d10 02171e21 02171f04
 
 
but with those, I can't even get to desktop :/
 
please help!

Share this post


Link to post
Share on other sites

 

hey it's me again... today I tried to do everything from scratch... that's my data:

 

codec: alc269vb
address: 0
vendorid: 0x10ec0269 && 283902569
 
pincomplex - controlname
0x18 : default 0x04a11830
0x19 : default 0x99a3093f
0x1b : default 0x99130110
0x1e : default 0x99430120
0x21 : default 0x0421101f
 
----------------------------
 
0x18 : 30 18 a1 04
0x19 : 3f 09 a3 99
0x1b : 10 01 13 99
0x1e : 20 01 43 99
0x21 : 1f 10 21 04
 
----------------------------
 
0x18 : 10 10 a1 04 /// 0x08 -> 0x23 -> 0x18 /// 8 -> 35 -> 24
0x19 : 20 01 a3 99 /// 0x09 -> 0x22 -> 0x19 /// 9 -> 34 -> 25
0x1b : 30 01 13 99 /// 0x1b -> 0x0d -> 0x03 /// 27 -> 13 -> 3
0x1e : 40 01 43 99 /// 0x1e -> 0x06 -> ??   /// 30 -> 6 -> ???
0x21 : 50 10 21 04 /// 0x21 -> 0x0c -> 0x02 /// 33 -> 12 -> 2
 
----------------------------
 
01871c10 01871d10 01871e81 01871f04
01971c20 01971d01 01971ea3 01971f99
01b71c30 01b71d01 01b71e13 01b71f99
01e71c40 01e71d01 01e71e43 01e71f99
02171c50 02171d10 02171e21 02171f04
 
 
but with those, I can't even get to desktop :/
 
please help!

 

 

I've done it just one time, so I'm not an expert, but my recommendation:

 

- Start with a patched AppleHDA that at least loads and have something working (speaker, mic, etc ..). HAve you tried the one generated by Dinesh for 269?

 

- From there, make incremental changes with one of the input or output and test the new patch to see if you have made any progress.

 

- Use Codecgraph to better understand the different connections (I've generated one from your code_dump and attahced). The graph helped me a lot to try different paths and to correct the initial one I had partially working

 

-  If you're not going to use one of the input/outputs (like the SPDIF I've seen in your dump) or don't know how to implement it, disable it (F0 00 00 40)

 

Good luck

achivio.txt.svg.zip

Share this post


Link to post
Share on other sites

I've done it just one time, so I'm not an expert, but my recommendation:

 

- Start with a patched AppleHDA that at least loads and have something working (speaker, mic, etc ..). HAve you tried the one generated by Dinesh for 269?

 

- From there, make incremental changes with one of the input or output and test the new patch to see if you have made any progress.

 

- Use Codecgraph to better understand the different connections (I've generated one from your code_dump and attahced). The graph helped me a lot to try different paths and to correct the initial one I had partially working

 

-  If you're not going to use one of the input/outputs (like the SPDIF I've seen in your dump) or don't know how to implement it, disable it (F0 00 00 40)

 

Good luck

attachicon.gifachivio.txt.svg.zip

hi, thanks for trying to help

 

yes I tried it but had nothing working... I then tried the one for anerik70 which partially works. (mic only)

I and anerik have identical paths, but still I can't hear anything from the speaker, and I can't understand why :/

Share this post


Link to post
Share on other sites

hi, thanks for trying to help

 

yes I tried it but had nothing working... I then tried the one for anerik70 which partially works. (mic only)

I and anerik have identical paths, but still I can't hear anything from the speaker, and I can't understand why :/

Post the one you have it working at least the mic (anerik70) and I will compare with the Codecgraph output to try to help you.

 

I was able to make it working by doing some try/error patchs based on the different options.

Share this post


Link to post
Share on other sites

What is the purpose of the binary patch after the codec line 7, and how do you calculate it ?

 

I want to  patch the Mavericks AppleHDA, the ML binary patch is not working anymore

 

Thanks

 

  1. For AppleHDA 10.7.2 AND 10.7.3
  2. Enter "FF 87 EC 1A" in search Box and
  3. enter "69 02 EC 10" in replace box
  4. Press "Replace All" button to replace
  5.  
  6. Again
  7. enter "8F 1A 02" in search box and "84 9B 01" in replace box
  8. Press "Replace" button

Share this post


Link to post
Share on other sites

 

What is the purpose of the binary patch after the codec line 7, and how do you calculate it ?

 

I want to  patch the Mavericks AppleHDA, the ML binary patch is not working anymore

 

Thanks

 

  1. For AppleHDA 10.7.2 AND 10.7.3
  2. Enter "FF 87 EC 1A" in search Box and
  3. enter "69 02 EC 10" in replace box
  4. Press "Replace All" button to replace
  5.  
  6. Again
  7. enter "8F 1A 02" in search box and "84 9B 01" in replace box
  8. Press "Replace" button

 

Send me codec_dump, i can help you fix

or try binary:

Find: 84 08 ec 10 replace all by 00 00 00 00

Find: 84 19 d4 11 replace all by 69 02 ec 10

Share this post


Link to post
Share on other sites

Send me codec_dump, i can help you fix

or try binary:

Find: 84 08 ec 10 replace all by 00 00 00 00

Find: 84 19 d4 11 replace all by 69 02 ec 10

Thanks for your reply

 

It's for the STAC9205 codec

 

edit: I tried to zero out all codecs but it's not working 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...