Jump to content

VIA VT2021/2020 AppleHDA 1.0

Sign in to follow this  

About This File

=====================================================

***README*** Updated on 14th Oct 2012

=====================================================

Updated on 14th October 2012

a. Rectified a major bug in AppleHDAHardwareConfiguration.kext PinConfiguration in AppleHDA.kext

b. Updated HDEF to new one

Updated on 13th Oct 2012.

a. Rectified a minor bug with SPDIF Output.

b. Removed the use of VIA VT2021 kext

c. Added new HDEF patch

d. Enhanced AppleHDA kext

AppleHDA patch for VIA VT2021/2020 audio codecs for OS X Mountain Lion

10.8.x (Updated for 10.8.2)

Working Ports

1. Rear Green Port - Stereo Audio Output

2. Rear Pink Port - Stereo Microphone In

3. Rear Blue Port - Stereo Audio in

4. Rear SPDIF - Digital Line Out

=====================================================

1. Install AppleHDA using kext Utility

2. Patch DSDT with HDEF patch below, use it under PCI0

-----------------------------------------------------

Device (HDEF)

{

Name (_ADR, 0x001B0000)

Method (_PRW, 0, NotSerialized)

{

Return (Package (0x02)

{

0x0D,

0x05

})

}

Method (_DSM, 4, NotSerialized)

{

Store (Package (0x04)

{

"layout-id",

Buffer (0x04)

{

0x0c, 0x00, 0x00, 0x00

},

"PinConfigurations",

Buffer (0x30)

{

0x10, 0x40, 0x11, 0x01, 0xF0, 0x00, 0x00, 0x40,

0xF0, 0x00, 0x00, 0x40, 0xF0, 0x00, 0x00, 0x40,

0xF0, 0x00, 0x00, 0x40, 0xF0, 0x00, 0x00, 0x40,

0x50, 0x30, 0x81, 0x01, 0x60, 0x90, 0xA1, 0x90,

0xF0, 0x00, 0x00, 0x40, 0x20, 0x21, 0x45, 0x07,

0xF0, 0x00, 0x00, 0x40, 0xF0, 0x00, 0x00, 0x40

}

}, Local0)

DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

Return (Local0)

}

}

------------------------------------------------------




User Feedback

Recommended Comments



Hi! To start with i would like to state that I am quite new in hackintosh, and OSx in general..

I have a setup with the z77x-d3h, 3770k, gtx680, and found it surprisingly easy to get up and running, except for this onboard-sound-issue.. I have read, googled around for 3days now, and i simply dont understand step 2 in this guide; Patch DSDT with HDEF patch below, use it under PCI0

When I extract my DSDT in dsdt-editor, I dont know how to patch with the HDEF and use it under PCI0.. If someone could cut step 2 into novice-peaces, it would really mean a lot to me! best regards - jumbe

Share this comment


Link to comment
Share on other sites

hiz to all I've got the h77-d3h with same via codec.. any clues on how to do this patch on a system with dsdt (uefi SSDT and all)..? thank you

Share this comment


Link to comment
Share on other sites

mwChief> GA-Z77X-UD3H OS X 10.8.2 front works fine, didn't try anything else

My box does not have front panel. I got additional back panel with front-panel connector. As result

front panel mic does not work also with my z77-d3h

Share this comment


Link to comment
Share on other sites

Woo, managed to get it working on my GA-Z77X-D3H Rev 1.0

Only get the optical output and the green port on rear, and no inputs, but will do the job for me.

Had to do a whole lot of patching of my DSDT file, which i'll attach below. I took most of my edits from the code from here: http://cl.ly/IlXJ posted by @mehigh earlier, thanks for that.

To basically sum up my edits:

1. Tested mehigh's DSDT just temporarily, to see if the HDEF patch worked. It did, so i knew i had a good base.

2. Extracted my own DSDT, removed the device for HDEF from it. I then went into the PCI0 tree, and at the bottom after B0D4 added the HDEF device definition from mehigh's DSDT.

3. Built my DSDT. Had about 3 errors. Looked where they were. Tried to find the matching code in the original DSDT by mehigh, to replace my own definitions with.

4. Keep building as you go, until you build with no errors.

5. Profit$$$

Good luck!

Resources:

My DSDT I'm currently using (GA-Z77X-D3H Rev 1.0)

http://pastebin.com/CBNXhFF5

mehigh's DSDT

http://cl.ly/IlXJ

Might post a tutorial on my website later this week if I get a change. Hopefully I can help a few people. Might also play around with getting all the other ports detected and working!

Also as mehigh stated earlier, it probably isn't a good idea to copy my DSDT as I probably have completely different hardware to you.

Enjoy!

Share this comment


Link to comment
Share on other sites

hey ...

I installed Hackintosh without DSDT ... i don't know how to patch or do what you said .. I'm really beginner in Hackintosh...

now i just need to now what to do ( Exactly ) after installing AppleHDA Kext utility .. can you help please?

Share this comment


Link to comment
Share on other sites

Z77 D3H Backpanel pink mic actually works but have too low volume. So it has bad gain (boost) values.

Share this comment


Link to comment
Share on other sites

Currently I have this working great on a VIA 2020 motherboard (Asus Maximus Gene III) w/ a patched DSDT. However, I cannot despite various different attempts, get the SPDIF out to function correctly. It only shows up in the System Preferences > Sound > Output List - However no audio or volume is available once selected.

Any idea's for a possible fix Nithy?

Share this comment


Link to comment
Share on other sites

@revisionzero,

SPDIF won't have volume control when enabled, as it is a full digital output. Volume control should be done on the signal receiver.

As for the reason it's not even working; does it have any "red light" output on the port?

Share this comment


Link to comment
Share on other sites

@nickw444

Currently it does not, which I believe means the port is not correctly referenced in the Kext. I have tried various different LayoutID's in AppleHDA.kext, by default it is 8 I believe. Anyhow, Im open to give any suggestions a try! I have tried a few different DSDT edits as well, including the one referenced in the Post Readme, as well as ones referenced in the comments.

With all that said, Im willing to repeat anything suggested. I didnt know about the SPDIF not having a volume control, so I will look into that further as I wait to hear back next. Thanks in advance.

Share this comment


Link to comment
Share on other sites

@revisionzero, not too sure if I can help you out; currently working on my own kext for enabling audio on my board with the correct outputs (as all I can get at the moment are SPDIF and green). However i'm kind of stuck with that, so I gave up.

Anyways, good luck, let us know how you go.

Share this comment


Link to comment
Share on other sites

Hey guys,

Great job! It works on GA-H77-D3H rev.1.1 (VT2021).

But rear pink (mic) doesn't work. Just a very very weak and distorted sound. I tested with a mono microphone. Maybe it's configured as a wrong pin?

Also, I'm trying to figure out how to fix 2.0 channels optical SPDIF. Obviously, my goal is 5.1 channels.

Any news?

Share this comment


Link to comment
Share on other sites

This worked for me. But the microphone on pink jack at the back doesn't.

Anyhow it's all good for me.

My motherboard is Gigabyte GA-H77M D3H rev1.1

Thanks!

Share this comment


Link to comment
Share on other sites

Is there something I can do to enable AC3 pass through with this kext? I've got it all working along with my HDMI audio, by the pass through option is missing. Thanks.

Share this comment


Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.