Jump to content

Help with VIA VT1802 audio


12 posts in this topic

Recommended Posts

Hello,

 

ML is insalled and updated to 10.8.4 but I have no sound.

 

I did a codec dump and my Codec is VIA VT1802..

 

I found some code which will apparently get me to the following status:

 

Int. Spk, Headphone, Int mic working, Lineout unknown yet..

 

https://github.com/maxfierke/Lemu4-Hackintosh-Config/commit/39f8deca09af7d1403d727a5419968598e15ea77

 

https://github.com/maxfierke/Lemu4-Hackintosh-Config/blob/39f8deca09af7d1403d727a5419968598e15ea77/vt1802p_devel/AppleHDA_patch_files/Platforms.xml

 

https://github.com/maxfierke/Lemu4-Hackintosh-Config/blob/39f8deca09af7d1403d727a5419968598e15ea77/vt1802p_devel/AppleHDA_patch_files/layout12.xml

 

I know its to do with patching the applehda, but I'm clueless as to how to actually do what I need to do using this code...

 

Can anyone help please?

 

Thanks

Link to comment
Share on other sites

Hi,

 

Thanks, I tried voodoohda, didn't work...showed up in mysystem prefences but no actual sound...

 

The guy reckons he has patched AppleHDA for this codec and got it most/all of it working..

I now have the following files in relation to it:

 

Configdata.txt

pinconfigurations.txt

verbit_vt1802.txt

verbitdebug.txt

vt1802_dec.txt

vt1802_dec.txt.svg

vt1802.txt

vt1802.txt.svg

 

And a folder called AppleHDA_Patch_files inside of which is:

 

layout12.xml

platforms.xml

 

I read that voodoo is not very good (at least on this machine), but i'd use it if it was working, but it isn't..Hopefully I'll hear back from the guy who did the patch work on how to use this stuff...I think all of the work real work is pretty much done, just don't know any thing about this stuff..

Link to comment
Share on other sites

Hi, there is much info about AppleHDA patching in the sound section of this forum. Basically you need to:

- do a binary patch for AppleHDA

- edit AppleHDAHardwareConfigDriver's Info.plist and insert a new section for your audio chip together with the PinConfiguration array

- replace layout12.xml and Platforms.xml in Resources folder

- inject layout-id 12 either with an enabler kext or with a DSDT modification

 

I can try to help you with the binary patch, the rest is documented well.

Link to comment
Share on other sites

Hi, there is much info about AppleHDA patching in the sound section of this forum. Basically you need to:

- do a binary patch for AppleHDA

- edit AppleHDAHardwareConfigDriver's Info.plist and insert a new section for your audio chip together with the PinConfiguration array

- replace layout12.xml and Platforms.xml in Resources folder

- inject layout-id 12 either with an enabler kext or with a DSDT modification

 

I can try to help you with the binary patch, the rest is documented well.

 

Hey,

 

Sorry for the delay, had to go away. Yes that would be brilliant if you could help..I have a feeling that I have all the files and txt I need to paste but I don't know how/where to put everything.I have a feeling the binary patch has already been done and saved, and is the folder I have ready to be copied or something..but I don't know, so yes If you could help me with that I will start reading the sound section see I can figure out what to do with all the files and code I already have...

 

Thanks

Link to comment
Share on other sites

Most audio chips are masked as AD1984 which is supported by Apple. The device id of AD1984 is 0x11D41984. VT1802 (yours) is: 0x11068446.

Open the AppleHDA binary in a hex editor and replace: 8419D411 with 46840611 - you should find two occurrences.

 

For the rest of the steps open AppleHDA.kext, look through the contents and you should find the things easily. Otherwise just ask.

Link to comment
Share on other sites

Most audio chips are masked as AD1984 which is supported by Apple. The device id of AD1984 is 0x11D41984. VT1802 (yours) is: 0x11068446.

Open the AppleHDA binary in a hex editor and replace: 8419D411 with 46840611 - you should find two occurrences.

 

For the rest of the steps open AppleHDA.kext, look through the contents and you should find the things easily. Otherwise just ask.

 

Hello, i have this codec VT1802 in my G75VW. How i make to work applehda?! thankss!

Link to comment
Share on other sites

Hi, there is much info about AppleHDA patching in the sound section of this forum. Basically you need to:

- do a binary patch for AppleHDA

- edit AppleHDAHardwareConfigDriver's Info.plist and insert a new section for your audio chip together with the PinConfiguration array

- replace layout12.xml and Platforms.xml in Resources folder

- inject layout-id 12 either with an enabler kext or with a DSDT modification

 

I can try to help you with the binary patch, the rest is documented well.

can you send me your Applehda? I have codec VT1802 too. Thanks!!

Link to comment
Share on other sites

  • 2 weeks later...

hello I'm patching appleHDA

 

no error but it doesn't work

http://www.mediafire.com/download/pcnwv76xi90jcti/DSDT_and_AppleHDA.zip

test it on your laptop 

 

source

my codecDump http://www.mediafire.com/download/7vxp28hw8x4wmpe/CodecDump.zip

 

 

my work

 

from codecDump i got
 

02471cf0 02471d00 02471e17 02471f90 -speaker

02571c10 02571d40 02571e21 02571f01 -hp out

02871c20 02871d40 02871e21 02871f41 -nonexistent green headphone

02971c30 02971d00 02971ea7 02971f90 -mic in

02a71c40 02a71d30 02a71e81 02a71f41 -nonexistent blue line in

02b71c50 02b71d90 02b71e81 02b71f01 -line in (ext mic)

02d71c60 02d71d10 02d71e44 02d71f00 -spdif out

03071c70 03071d00 03071ea6 03071f50 -nonexistent digital mic

03371c80 03371d00 03371e17 03371f90 -nonexistent (subwoofer?)

02470c03 02570c02

 
Node 0x24 Pin Default 0x901701f0: [Fixed] Speaker at Int N/A
Node 0x25 Pin Default 0x022140f0: [Jack] HP Out at Ext Front
Node 0x29 Pin Default 0x90a70137: [Fixed] Mic at Int N/A
Node 0x2b Pin Default 0x01a1903e: [Jack] Mic at Ext Rear 
Node 0x24 EAPD 0x3
Node 0x25 EAPD 0x2
 
-------------------------------------------------------
 
Node 0x24: f0 01 17 90
Node 0x25: f0 40 21 02
Node 0x29: 37 01 a7 90
Node 0x2b: 3e 90 a1 01
 
i fixed it because it have ff and 33 i will add Spdif latter:
 
Node 0x24: 10 01 17 90
Node 0x25: 20 40 21 02
Node 0x29: 30 01 a0 90
Node 0x2b: 40 90 81 01
 
==>Codec verb for AppleHDA.kext/Contents/Resources/Platforms.xml : 

02471cf0 02471d00 02471e17 02471f90 02571c10 02571d40 02571e21 02571f01 02971c30 02971d00 02971ea0 02971f90 02b71c50 02b71d90 02b71e81 02b71f01 02d71c60 02d71d10 02d71e44 02d71f00 03071c70 03071d00 03071ea6 03071f50 03371c80 03371d00 03371e17 03371f90 02470c03 02570c02

----------------------------------------------
in AppleHDA.kext/Contents/Resources/Layout28.xml change CodeID to : 285 639 750
 
pathMapID:1802
 
Path maps for AppleHDA.kext/Contents/Resources/Platforms.xml:
input
line-in:0x11 - 0x1f - 0x2b 
reverse order and convert to DEC 17-31-33-41
 
mic-in: 0x10 - 0x1e - 0x29 or 0x10 - 0x21 - 0x29
reverse order and convert to DEC 16-30-41
 
 
output
speaker : 0x24 - 0x14 - 0x08
reverse order and convert to DEC 36-20-52-08
 
headphone: 0x25 - 0x15 - 0x09
reverse order and convert to DEC 37-21-53-08
 
Spdif : 45-14
 
extra: 16-30-42
 
Binary patch:
Using Hexedit, open AppleHDA.kext/Contents/MacOS/AppleHDA and then:
Find: 84 19 d4 11
Replace: 46 84 06 11
i do it 2 times
Link to comment
Share on other sites

  • 7 months later...

 

hello I'm patching appleHDA

 

no error but it doesn't work

http://www.mediafire.com/download/pcnwv76xi90jcti/DSDT_and_AppleHDA.zip

test it on your laptop 

 

source

my codecDump http://www.mediafire.com/download/7vxp28hw8x4wmpe/CodecDump.zip

 

 

my work

 

from codecDump i got 
Node 0x24 Pin Default 0x901701f0: [Fixed] Speaker at Int N/A
Node 0x25 Pin Default 0x022140f0: [Jack] HP Out at Ext Front
Node 0x29 Pin Default 0x90a70137: [Fixed] Mic at Int N/A
Node 0x2b Pin Default 0x01a1903e: [Jack] Mic at Ext Rear 
Node 0x24 EAPD 0x3
Node 0x25 EAPD 0x2
 
-------------------------------------------------------
 
Node 0x24: f0 01 17 90
Node 0x25: f0 40 21 02
Node 0x29: 37 01 a7 90
Node 0x2b: 3e 90 a1 01
 
i fixed it because it have ff and 33 i will add Spdif latter:
 
Node 0x24: 10 01 17 90
Node 0x25: 20 40 21 02
Node 0x29: 30 01 a0 90
Node 0x2b: 40 90 81 01
 
==>Codec verb for AppleHDA.kext/Contents/Resources/Platforms.xml : 
02471c10 02471d01 02471e17 02471f90 02571c20 02571d40 02571e21 02571f02 02971c30 02971d01 02971ea0 02971f90 02b71c40 02b71d90 02b71e81002b71f01 02470c03 02570c02
----------------------------------------------
in AppleHDA.kext/Contents/Resources/Layout28.xml change CodeID to : 285,639,750
 
pathMapID:1802
 
Path maps for AppleHDA.kext/Contents/Resources/Platforms.xml:
input
line-in:0x11 - 0x1f - 0x2b 
reverse order and convert to DEC 17-31-43
 
mic-in: 0x10 - 0x1e - 0x29 or 0x10 - 0x21 - 0x29
reverse order and convert to DEC 16-30-41 or 16-33-41
 
 
output
speaker : 0x24 - 0x14 - 0x08
reverse order and convert to DEC 36-20-08
 
headphone: 0x25 - 0x15 - 0x09
reverse order and convert to DEC 37-21-9
 
Binary patch:
Using Hexedit, open AppleHDA.kext/Contents/MacOS/AppleHDA and then:
Find: 84 19 d4 11
Replace: 46 84 06 11
i do it 2 times
 
try again:
Find: 8b 19 d4 11
Replace: 46 84 06 11 
i do it 2 times

 

You need to add the EAPD for the devices with them or they won't work.

 

You'd want to use this codec verb instead:

 

02471c10 02471d01 02471e17 02471f90 02470c03 02571c20 02571d40 02571e21 02571f02 02570c02 02971c30 02971d01 02971ea0 02971f90 02b71c40 02b71d90 02b71e81002b71f01 02470c03 02570c02

 

For your first EAPD node (0x24), you need 02470c03 where 70c is for the EAPD and the 03 is for the data

For the second one (0x25), you need 02570c02

Link to comment
Share on other sites

  • 1 month later...
 Share

×
×
  • Create New...