Jump to content

Realtek ALC AppleHDA Audio Injection


toleda
 Share

133 posts in this topic

Recommended Posts

Sorry 'bout that, will post the files this evening when I'm home from work.

 

Updated the files in my original post on the bottom of page 5. Everything should be in the archive as requested :)

 

Thanks again!

Link to comment
Share on other sites

Updated the files in my original post on the bottom of page 5

AppleHDA.kext is not 10.9.3 native, many file are missing.  

 

1. Need the native AppleHDA.kext.

2. Run audio_cloverALC898-90_patch.command (Downloads/audio_ALC898-master/cloverALC/audio_cloverALC898-90_patch.command)

AppleHDA.kext is not 10.9.3 native, many file are missing.  

 

1. Install native AppleHDA.kext.

2. Run audio_cloverALC898-90_patch.command (Downloads/audio_ALC898-master/cloverALC/audio_cloverALC898-90_patch.command)

Link to comment
Share on other sites

AppleHDA.kext is not 10.9.3 native, many file are missing.  

 

1. Need the native AppleHDA.kext.

2. Run audio_cloverALC898-90_patch.command (Downloads/audio_ALC898-master/cloverALC/audio_cloverALC898-90_patch.command)

 

That command made it working. I have one question (both AppleHDA from script are uploaded below), why do we still need to patch kext? I thought that DSDT Injection was a way to not patch kext? Maybe I'm wrong though :) I apologize, I did uploaded the wrong one (sorry). Both original I used and patched by command are below.

 

edit: Sound does not work anymore after a reboot :S Maybe because of Clover?

AppleHDA-orig.kext.zip

AppleHDA.kext.zip

Link to comment
Share on other sites

Ran the wrong script.  See Post #104.  Use the file with clover in the name  in the folder with clover in the name.

I'm terribly sorry, will run the right one. Just so excited to get it working :D Will update this post with result to prevent creatimg too many :)

 

update: Works as it should. Thanks toleda! I was a bit confused why it didn't, but you helped me out, thanks! Still one question so I can be sure: If I update the O/S (and thus AppleHDA), should I run the patch again (the command file) if audio doesn't work? Just running that fixes it as it has done this time, right?

 

Thanks man! You saved my day :D

Edited by MacFaulty
Link to comment
Share on other sites

Still one question so I can be sure: If I update the O/S (and thus AppleHDA), should I run the patch again (the command file) if audio doesn't work? 

Software Updates have no affect on audio with this method.  Only new installs require a new patch.  One exception, an AppleHDA binary change,

Link to comment
Share on other sites

  • 2 weeks later...

Ok, I need help.  Just switched over to Clover and everything seems to be working except for audio.  I have a GA-EP45C-UD3R Gigabyte board with ALC889a audio.  Help???  I am not using a DSDT and letting Clover auto configure everything.  Used Clover Configurater to get up and running.

Link to comment
Share on other sites

Just switched over to Clover and everything seems to be working except for audio.  

For Clover Audio ID injection, set (se Post #1 for more info)

4. Clover/Config.plist/Devices/Audio/Inject = Audio_ID

4a. Audio_ID = 1/Audio/Inject=1

 

For Clover/AppleHDA audio, see Clover Patched Realtek ALC Installation/885

1. Mavericks Realtek ALC AppleHDA Audio

2. Yosemite: Audio - Realtek ALC AppleHDA

  • Like 1
Link to comment
Share on other sites

Sorry to hijack this (sort of), but is there already some alpha or beta support for patching the 10.10 AppleHDA for ALC898? I tried a rollback (with patch from 10.9.4), but still no audio.

Link to comment
Share on other sites

  • 2 weeks later...

Hi, anybody can help me? So many info and I'm so fresh in Mac  :blush:  I have ALC1150 in my GA-z97x-UD3H. So what I need to download/change in my system to work sound? (my OSX - 10.9.3 / Clover 2795 / No DSDT) Sorry for my english, I'm form Ukraine.

Link to comment
Share on other sites

ioreg says layout id 01 00 00 00 but still no audio.

AppleHDA.kext edits are next, see Post #1, ALCInjection/Realtek ALC AppleHDA.kext

Select the appropriate link, Post #1, use cloverALC/Clover patched method.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

I dont understand that message: ID 12 (i have dsdt 0c as ID, 885) :

 

File: audio_realtekALC-90_v2.0.command_v2.0.1

Verify kext-dev-mode=1 boot flag/argument
Password:
Confirm Realtek ALC885 (y/n): y
Audio ID: 12 is not supported, continue (y/n): y
 
Note
Set Audio ID injection before restart; valid IDs are:
0 - dsdt/ssdt HDMI audio (AMD/Nvidia/Intel)
1 - 3/5/6 port motherboard audio
2 - 3 port (5.1) motherboard audio (n/a 885)
3 - HD3000/HD4000 HDMI audio w/motherboard audio (n/a 885/1150)
 
Download ALC885 files ...
...
 
What must i change in dsdt? (from 0c to ? ) - i Have HDA 885
 
What does 
Set Audio ID injection before restart; valid IDs are:
0 - dsdt/ssdt HDMI audio (AMD/Nvidia/Intel)
1 - 3/5/6 port motherboard audio
2 - 3 port (5.1) motherboard audio (n/a 885)
3 - HD3000/HD4000 HDMI audio w/motherboard audio (n/a 885/1150)
mean ?
can i tell with 0 use dsdt / How to enter 0?!
Thanks
Link to comment
Share on other sites

I dont understand that message: ID 12 (i have dsdt 0c as ID, 885) :

 

What must i change in dsdt? (from 0c to ? ) - i Have HDA 885
 
can i tell with 0 use dsdt / How to enter 0?!

The script detects IOReg/HDEF/layout-id (layout-id (hex) = Audio ID (dec))

885 patched AppleHDA only supports Audio ID: 1 (dsdt/HDEF/layout-id: 0x01, 0x00, 0x00, 0x00)

The script is informing you the result of patching will be no audio, if the Audio ID is not 1.

Suggest editing dsdt/HDEF/layout-id from 0x0c to 0x01 (as above) and restart.  

Run the script: confirm ALC885

 

Need to validate the error handling for the 885/Audio ID: 0 and 1 conditions (both should work).

Thanks for the report.

Link to comment
Share on other sites

  • 3 weeks later...

No matter what I tried, I can't get audio id 1 to work with mavericks 10.9.5 or yosemite beta 8.

ID is shown correctly but there appears to be something wrong at patching the binaries.

It's even not shown under "devices":

 

Bildschirmfoto_2014_09_22_um_18_59_24.pn

Bildschirmfoto_2014_09_22_um_18_59_35.pn

 

that's my dsdt hdef section:

        Device (HDEF)
        {
            Name (_ADR, 0x001B0000)  // _ADR: Address
            OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
            Field (HDAR, WordAcc, NoLock, Preserve)
            {
                DCKA,   1, 
                Offset (0x01), 
                DCKM,   1, 
                    ,   6, 
                DCKS,   1, 
                Offset (0x08), 
                    ,   15, 
                PMES,   1
            }

            Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                Return (GPRW (0x0D, 0x04))
            }

            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (LEqual (Arg2, Zero))
                {
                    Return (Buffer (One)
                    {
                         0x03
                    })
                }

                Return (Package (0x06)
                {
                    "layout-id", 
                    Buffer (0x04)
                    {
                         0x01, 0x00, 0x00, 0x00
                    }, 

                    "PinConfigurations", 
                    Buffer (Zero) {}, 
                    "hda-gfx", 
                    Buffer (0x0A)
                    {
                        "onboard-1"
                    }
                })
            }
        }

update: I found a solution, the command script is using absolute paths which caused errors as my downloads folder is located on another volume and bound with a symbolic link via ln -s,

so I modified the script to fit my need and now I have sound:

echo " "
echo "Agreement"
echo "The audio_ALC887_patch is for personal use only. Do not distribute the patch," 
echo "any or all of the enclosed files or the resulting patched AppleHDA.kext for any" 
echo "reason without permission. The audio_ALC887_patch is provided as is and without" 
echo "any kind of warranty."
echo " "
#
echo "Prepare Desktop/audio_ALC887 ..."
cd ~
rm -rf ~/Desktop/audio_ALC887
cp -R ../audio_ALC887-master ~/Desktop/audio_ALC887
cp -R /System/Library/Extensions/AppleHDA.kext ~/Desktop/audio_ALC887/AppleHDA-orig.kext
cd ~/Desktop/audio_ALC887
unzip -q 887.zip
cd 887

echo "Install files ..."
sudo rm -R /System/Library/Extensions/AppleHDA.kext/Contents/Plugins/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist
sudo install -m 644 -o root -g wheel Info-94.plist /System/Library/Extensions/AppleHDA.kext/Contents/Plugins/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist
sudo rm -R /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zlib
sudo install -m 644 -o root -g wheel Platforms.xml.zlib layout1.xml.zlib layout2.xml.zlib layout3.xml.zlib  /System/Library/Extensions/AppleHDA.kext/Contents/Resources

echo "Patch binary ..."
sudo perl -pi -e 's|\x8b\x19\xd4\x11|\x87\x08\xec\x10|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA

echo "Fix permissions ..."
sudo chown -R root:wheel /System/Library/Extensions/AppleHDA.kext

echo "Kernel cache..."
sudo rm -fr /System/Library/Caches/*
sudo touch /System/Library/Extensions

cd ~
rm -R ~/Desktop/audio_ALC887/887
cp -R /System/Library/Extensions/AppleHDA.kext Desktop/audio_ALC887/AppleHDA.kext

echo "Finished, restart required."

relative locations made it work :D

Link to comment
Share on other sites

 Share

×
×
  • Create New...