Jump to content

AppleHDA Binary Patching


EMlyDinEsH

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

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

Link to comment
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 :/

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...