Replacing VIA HD Audio Codec Chip

Gigabyte’s new UEFI BIOS is particularly well-suited for building Hackintoshes. However, many of Gigabyte’s recent motherboards, including all of the MicroATX Z77 and H77 boards, use the VIA VT2021 HD Audio codec chip, which is not well-supported. In contrast, the Realtek line of HD Audio codecs are generally well-supported. The ALC885 and ALC889A in particular don’t even need editing AppleHDA.kext for the device ID.

The Intel High Definition Audio Specification defines defines a standard 48-pin package for the codec chip, although it is “not a compliance requirement for all codecs”. It appears that Both Realtek and VIA codecs usually follow the standard package, so it’s likely they’re (almost?) pin-compatible. Update: The pin-outs of the ALC885 and VT2021 are the same.

Datasheets:

Since I’m building a Hackintosh with a GA-Z77M-D3H with a VIA VT2021 chip, I decided to work around the audio issues by swapping the VT2021 with a Realtek ALC885 chip.

Procedure

  1. Desolder the existing codec from the motherboard
  2. Clean off any bridged pads on the motherboard (oops)
  3. Add flux and solder new chip
  4. Inspect, then power on

Here are close-up photographs of the removed VT2021 chip and newly-installed ALC885.

Results

Surprisingly, the replaced chip appears to work fine. It was auto-detected and configured automatically in Linux, and also works in OS X with the usual amount of headache. I have not rigorously tested whether all of the output ports work. Those that I tested (rear microphone and rear line out) work fine.

The codec chip and its accompanying 12V-to-5V linear regulator (AS78L05, left of the codec) get suspiciously hot (around 50 C?). I do not know if it’s normal for the ALC885 to dissipate enough power to reach that temperature, nor did I think of checking the VT2021’s temperature before replacing it. Since the audio output is working, I currently have no proof that this is abnormal…

47 comments to Replacing VIA HD Audio Codec Chip

  • Gabriel

    WOW. This is a little more intense than I’m willing to try with an expensive motherboard, especially since I have NO soldering experience, but kudos to you for doing it. That’s one good way to solve the VIA annoyance!

  • Johan

    Truly amazing!

  • Tony

    i just used a usb plug & play audio adapter from eBay. extremely cheap and an instant fix to my hackintosh with this mobo that was missing audio.

  • Mac Nobe

    Not Working with my Z77X-D3H

  • Joel

    I had no idea that codec ICs would be pin compatible but then I guess it’s nothing new. DACs from the stone age (80s/90s) were often the same.

    Definitely getting this mobo for my hackintosh now 🙂

  • Zulu

    Can i ask where did you get the Realtek chip from? Was it salvaged from another mobo or did you specifically order one in?

  • Zulu

    I just made an order for 2 of these on eBay. Hopefully I can hack it successfully when it arrives. Thanks!

  • Eldridge

    Can anyone, especially Henry confirm if front panel HP and Mic works with this replacement

    • Henry

      It worked for me, although in my case, the jack detect pin was reversed between the front mic and front headphone (i.e., plug in something on the microphone jack and the headphone will turn on). I suspect this was a driver port assignment bug rather than due to the hardware swap. (Realtek audio on MacOS isn’t completely painless)

  • zyrobs

    This is interesting. I got a Gigabyte Z77 board recently and it’s driving me crazy that the Via codec has an inability to fill out my missing center speaker to the front left & right ones. It’s good to know that replacement is possible (I have a ALC889a in my old motherboard).

    I’m not brave enough to try this on a motherboard this expensive though.

  • Hey quick questions for Henry, I was wondering if i could do this on an MSI G31 TMp21 board the chip on there is currently a ALC888s and would like to get my Mac working perfectly, this is the only thing standing in the way. I always have to use Vooodoo

    • Henry

      It will probably work, but there does seem to be two pins that are different between the ALC888s and ALC885, pins 33 and 37 (from Realtek’s datasheets).

      I would have thought the ALC888s would work with AppleHDA (possibly with some patching), since it should be quite similar to the rest of the Realtek line of chips…

  • Mice moob

    Hello, Henry. I have a same MB you got. Do you using Clover UEFI install and boot Mountain Lion? Can you upload your newest patched DSDT and CLOVER CONFIG.PLIST files?

  • Wow, this is indeed impressive. Any idea if this can be done with IDT sound-chips? DELL use them, I have a Latitude E6530 and would like to replace it with RealTek, far superior on-board audio. I see on the IDT website they’re being sold off! Does this mean No more support for older IDT audio? Thanks a bunch IDT. Surely VIA, IDT, Realtek must use the same pin-out configurations? Would love to replace the IDT chip with a Realtek. Thanks in advance.

    • Henry

      You can’t really know without trying it, and I certainly haven’t tried it. All HDA chips should have very similar (though not necessarily identical) pinouts. You’ll need datasheets to see whether they’re close enough to swap without redesigning the motherboard.

      My own opinion is that it’s probably not worth the risk if you already have working audio… (Another point of uncertainly is whether poor on-board audio problems are due to the chip, or the analog circuits around it…)

  • mosey

    Hi, Henry. I have the same motherboard. After replacing the sound chip, can u update to the latest BIOS?

    • Henry

      I haven’t tried. I don’t see why it would be an issue though, unless the new BIOS specifically tinkers with the audio.

  • mosey

    I noticed the F9a BIOS described as fixed audio function under Win7/8/8.1/XP/Vista (* After update BIOS, please update VIA audio driver. I thought the BIOS has audio controller data or something. I want to replace with a ALC885 or ALC889a but worry about it maybe unstable. So after the replacement, is everything normal and stable? You mentioned the unusual heat, is that normal?

    • Henry

      I see. No, I have no experience with the new BIOS version. My guess is that it would work, since I don’t think the BIOS is involved in configuring audio devices. I’m not sure why it says you should update the VIA audio driver though.

      To my knowledge, it’s still working without issues (I built the computer for a friend, so I don’t see it every day). I had one issue where the front-panel headphone and microphone pinouts were swapped, but I suspect that is more likely due to the OSX driver. The heat does seem a bit unusual, but I don’t have another system with the same chip to compare. All I can say is it’s still good after several years, and there weren’t major problems…

      • Siana

        BIOS contains the Azalia Verb Table, which is read by compliant drivers to configure the audio chip functions and inputs/outputs.

        These tables are very often incorrect, and are overridden by the Windows driver shipped by mainboard manufacturer or the chip supplier. Thus with these drivers installed, in Windows this table has no effect. The recommendation to update BIOS and then update the driver is a catch-all. Updating the BIOS will fix audio for people running the generic driver which relies on BIOS tables, and updating the mainboard specific driver will undo the damage that the prior version of the driver might have done.

        On Linux in the last 10 years, pretty much all issues with Intel HD Audio compatible sound chip support has been traced back to incorrect verb tables, and the distribution drivers attempt to detect mainboards and soundchips and apply corrected tables themselves.

  • Dave

    I have the exact same motherboard (GA-Z77M-D3H) and was thinking of doing the same.

    I have a question about a problem I have on another board that uses Realtek 892.
    Here is a link to the problem:
    http://www.hardwarecanucks.com/forum/audio/67055-broken-audio-motherboard.html

    I removed the extra SMD Capacitor and I still get no sound from the onboard. Do you think if I replace the Realtek chip with the same one, it will fix the sound issue?

  • Henry

    I have a feeling that’s a resistor rather than a capacitor. It looks like it’s attached to pin 8 (SDATA IN). Figure 18 in the datasheet (http://www.hardwaresecrets.com/datasheets/ALC892-CG_DataSheet_1.3.pdf) seems to suggest that a 22-ohm series resistor would be expected there.

    It also doesn’t look like the stray resistor is in a place where it would cause any damage. I wouldn’t suspect a dead chip, and the soldering job looks good, so I don’t think replacing the sound chip would help. Have you tried debugging on the software side (is the chip detected?), and tested all of the inputs and outputs to see if any of them do something?

  • Dave

    Software side, Windows detects and installs the drivers. I downloaded and installed the Realtek drivers and it installed without trouble. But …

    All the ports (Back and Front header) including the SPDIF ( Optical and Coaxial ports on the back I/O ) don’t work. Jack detection doesn’t work. Tested both AC97 and HD settings and still no sound.

    I used a multimeter to test the SMD resistor. It has a 33-ohm value. I kept and tested the stray resistor.

    I don’t mind tinkering around, so I wouldn’t mind trying to fix it. Replace chip next?

    • Henry

      The fact that the digital side of the chip works makes me think it’s even less likely it’s a faulty chip. (Still possible, but wouldn’t be my first guess).

      It’s hard to tell in your picture: Is the soldering on pins 25-36 ok? I can’t quite tell if pin 35’s pad is corroded. You might check if the various power pins have reasonable voltages (including the LDO and VREF outputs), and see whether the signal pins are actually connected to the jacks?

  • Siana

    No, the Realtek should be cold to the touch, ambient temperature. The regulator shouldn’t put you into that much trouble either.

    One possible reason for it to get hot is if it goes into radio frequency oscillation on the output operational amplifiers. It might be designed for a resistance or an inductance on all or most of the outputs close to the pin, which VT2021 might not care for, being taped out more spaciously or including internal stabilization. Oscillation will also result in a degradation of distortion. Chances are, some of the small SMDs on the board are 0-Ohm resistors for the VT version of the board and valued components for the Realtek version.

    • Henry

      Hm… plausible, and I don’t have enough expertise to rule this out. But I think this is unlikely because the Realtek datasheet doesn’t mention anything about this. Also, it’s hard to imagine an amplifier designed to drive an open circuit wouldn’t be able to drive an open circuit (The case I tested with is with no load attached to the outputs).

      • Siana

        If you look at the Realtek datasheet that you link, page 93 Figure 2, look carefully at Jack D figure. It shows DC decoupling capacitor and then a ferrite bead inductor and then yet some capacitors to the ground. The DC decoupling one is obviously a must in any such system, but the rest? I thought for a second that the rest of the capacitors have something to do with Jack Detect, but looking at the Figure 19, i don’t think that’s the case any longer. The only purposes i can think of for the ferrite bead and the other capacitors is either to stabilize the output against oscillation or to protect it against injected currents.

        I can’t see such in the data sheet for VT2021.

        • Henry

          This might be true for Figure 20 (rear jacks), but in Figure 19 (front panel jacks), the ferrite bead is on the cable (i.e., usually part of the case), not the motherboard. The DC blocking capacitor is before the header for the cable, but everything else is on the cable.

          My guess for the ferrite beads would be to block any RF received by the speaker cables…

  • VoDa

    Hi…
    Its interresting info… I have ASUS P5Q Deluxe with fuc++ing ADI2000B codec… I want something with Realtek, because i need something with DDlive or DTSconnect… I looked to pinouts and looks nearly identic, but i have fear, that BIOS on the MB dont recognize another Codec… You dont need other revision of your BIOS???

    Thanks and sorry for stupid questions maybe…

    David

  • TJ

    Hi Henry,
    I have GA-z77x-d3h and want to replacing the vt2021 with alc885 too.
    I just want to ask what the best temperature on blower (solder gun) to mak the solder quick melting but not make the component damage?

    Regards,
    TJ.

  • Mixx

    I finaly done it… replaced Via VT1708S with realtek ALC887, and it is all detected and installed in windows, but it cant reconize any back panel or front panel jacks… i guess some pin i didnt solder good and that is why it cannot detect jacks…

    • Henry

      Good job! 🙂

      Are the jacks not detected at all, or is the wrong jack detected?
      Comparing the datasheets, it seems like the two chips use different (flipped) jack detection circuits:
      Section 8.4, Page 78: http://www.rom.by/files/DS_VT1708S_100_CCPL.pdf
      Figure 18, page 69: https://audiophilesoft.ru/articles/realtek_audio_setup/ALC887.pdf

      Within one jack group (4 jacks sharing one jack detection pin), ALC887 uses 39.2Kohm for port A and 5.1Kohm for port D, while VT1708S seems to use 5.1K for port A and 39.2K for port D (at least, if “J4” actually means “Port D”). If that’s the case, I’d expect the (back panel front speaker) or (front panel headphone) will be detected when you plug something into one of the “surround” speaker jacks (Plug something into port A to trigger port D, or plug something into port H to trigger port E).

      • Mixx

        Hey Henry can you help me i still trying after more then half year to make even one jack pc out to work to get any sound… i fuc*ed some legs resoldering but it still “works” i mean it is detected in windows (Speakers/Realtek high definition Audio and Realtek Digital Output) with drivers installed… In GUI it showing front green jack and blue greyed out for back… i tryed everything to map it even registry editing, but it simply wont work…. i have last idea to wire directly 3,5mm jack with soldering iron but i dont know where…. onto some legs on chip or somewhere else… i want to solder just front panel – front out/headphones because it does not need jack detection when i turn it off in Realtek HD audio menager and it is showing in GUI so i think it is posible i just need to figure it where to solder…

        • Henry

          Well, most of the pins are for the analog side of the chip, so I’m not entirely surprised that the digital side still works after some damaged pins.

          I think you really need to get the jack detection to work correctly. As far as I can tell, the chip doesn’t actually output audio unless it detects the jack being used.

          Have you tried plugging a jack into other ports to try to trigger the jack detection? On this particular board, on Windows, I think audio comes out of the rear green jack if something is plugged into the rear blue jack to trigger the jack detection.

          • Mixx

            Yes i tryed every port to trigger… i even solder from my old motherboard 6 jack and it simply wont work and i give up with that idea… I need just one output nothing more…i belive if i remmeber corectly when you check option ” Disable front panel jack detection ” in realtek manager it is outputting audio on front whatever you have something inseret or not…i studied last night datasheet and i have Idea to solder leg 14 ” LINE 2- R ( Port- E- )” and leg 15 ” LINE 2- L ( Port- E- ) ” and gnd,i belive it will not work if i solder directly it need some electric components betwen but on page 78/82 https://audiophilesoft.ru/articles/realtek_audio_setup/ALC887.pdf i cant understand what are “L14” and “FERB” it needs go through that to work, i guess it is some resistor and capacitor i would check with multimeter if i didn’t sold my old motherboard 🙁 and cant figure it out…

            • Henry

              If your motherboard already has the 10-pin front audio connector, it’s probably already wired correctly. Perhaps try testing the existing wiring first.

              The right side of Figure 19 is not part of the motherboard. It’s part of the cable and jack on your computer case, so you probably don’t need to do anything other than attach the connector to the motherboard. L14/L15 are probably ferrite bead inductors. It looks like L14/L15/C41/C42 are used to filter out high (radio?) frequencies, so they’re not entirely necessary for basic functionality.

              If you want to use Jack E and Line 2, I think you should check whether pins 5 and 9 on the motherboard’s connector actually connect to a ~100uF capacitor that then goes to LINE2-R and LINE2-L on the chip (pins 14 and 15). Also make sure this part of the chip wasn’t the part that was damaged. (Also check the AVDD* and AVSS* pins. They may be analog power pins that power the analog portion of the chip.) The 100uF capacitors (C38/C39) are probably necessary: They block the DC offset from the output pins from reaching the audio output, but you’ll still hear something (and a loud pop?) if those are missing.

              • Mixx

                You are right it is connected i checked with multimeter following evreything to the end, pin 14 and 15 goes through two 100uf capacitors then through some resistors(i think or something else) and goes to Front Panel Audio Connector and then it goes in front headphone panel jack and i followed everything so it is connected. i resolder and double check legs AVSS1 pin 26,AVSS2 pin 42, AVDD1 pin 25 and AVDD2 pin 38 so now im positive 95% that is good, but still nothing changed and i still cant get audio from front jack or any jack from back and no jack detection… i checked which legs i destroyed from past it was SPDIFI/EAPD pin 47, GPIO1/DMIC-data pin 4 and Sense C pin 33, that is all i belive… I’m stuck without any idea… maybe its time to resolder poor VIA back and see if it will work without those destroyed legs 🙁

  • jsaodfj

    damn mate you are a fuckin monster LMAO
    great job, this blog is a gem

  • FARUKH SHAIKH

    Can I replace via ic to related sound ic on my end g41t me motherboard.

    • Henry

      Unsure if you can (if it’s a somewhat standard HD Audio chip, it might be possible). It’s usually a very bad idea to do so, because you typically lose some audio channels and might get some of the audio pins swapped.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>