Jump to content

Realtek ALC AppleHDA Audio Injection


  • Please log in to reply
125 replies to this topic

#21
TrvHrt

TrvHrt

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 132 posts
  • Gender:Male
I'm running lion not mavericks I really don't know where to start with sound

#22
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 1,096 posts
  • Gender:Male

I'm running lion not mavericks I really don't know where to start with sound

Lion/AMD??  What version of Lion?  Post back in two weeks, may have something



#23
TrvHrt

TrvHrt

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 132 posts
  • Gender:Male
Yes li
Yes lion amd 10.7.5.

#24
TrvHrt

TrvHrt

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 132 posts
  • Gender:Male

Im running mavericks now and same issue can't get sound to work, i have the same kexts most people seem to have that work but for me nothing =[



#25
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 1,096 posts
  • Gender:Male

Im running mavericks now and same issue can't get sound to work, i have the same kexts most people seem to have that work but for me nothing =[

See Post #1, reply with  requested info.



#26
mcsmart

mcsmart

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 158 posts
  • Gender:Male
  • Location:Germany
  • Interests:Un*x-like systems, PCs, Scripting and Programming

Hi toleda, thanks for your work.
 
I'd like to report a problem with audio injection on my newest build (see my signature for basic HW specs).

  • Description of audio problem:

    No audio device recognized/usable, although AppleHDA is loaded. System Profiler shows the correct (injected) layout. As it says in your guide I am not using any custom AppleHDA.kext or enabler.
     
  • OS X version/motherboard model/BIOS version/processor/graphics

    OS X 10.9.0 (vanilla install), GA-H87M-D3H with ALC892, Radeon HD 7850
     
  • Procedure/Guide Used/AppleHDA.kext version

    I tried the following methods:
    • Clover with Audio Inject=1 and DSDT/FIX_HDA=False
    • Clover with Audio Inject=3 and DSDT/FIX_HDA=False
    • Clover without Audio Inject and DSDT/FIX_HDA=True
  • Extra/dsdt.aml (if installed):

    none
     
  • Copy of IOReg:

    I'm going to send you this one through a PM, as it contains my serial number
    :)
     
  • Console/All Messages/kernel Sound Assertions selected:

    22.12.13 19:13:01,000 kernel[0]: Sound assertion in AppleHDADriver at line 1525
    22.12.13 19:13:01,000 kernel[0]: Sound assertion in AppleHDADriver at line 2193
    22.12.13 19:13:01,000 kernel[0]: Sound assertion in AppleHDADriver at line 207
    22.12.13 19:13:01,000 kernel[0]: Sound assertion in AppleHDADriver at line 1084
  • Screenshots:

    attached

 

Edit: Sorry, I cannot send you a PM, as your inbox is full :(

Attached Files



#27
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 1,096 posts
  • Gender:Male

 

No audio device recognized/usable, although AppleHDA is loaded. System Profiler shows the correct (injected) layout. As it says in your guide I am not using any custom AppleHDA.kext or enabler.

Edit: Sorry, I cannot send you a PM, as your inbox is full :(

 

Injection is working; Inject=1 and FixHDA=NO.  The patched AppleHDA.kext is not loading; where is it?  Need to see IOReg.

PM space available. 



#28
mrjayviper

mrjayviper

    InsanelyMac Protégé

  • Members
  • PipPip
  • 85 posts

Hello.

 

I have a Gigabyte motherboard with the ALC889 chipset. I do not have DSDT for my board so I used I chose 1a option.

 

I initially installed AppleHDA.kext without knowing I needed another kext to make it work.

 

anyway, here are the steps I used:

 

1. installed AppleHDA (from this link)

2. installed HDAEnabler1 (from this link)

3. reboot

 

After the reboot, there are no input/output devices shown in Sound settings thus no sound for me.

 

using IORegistryExplorer, I verified the layout-id is <01 00 00 00> which is suppose to be the expected value according to this guide.

 

I must add I didn't use a patched AppleACPIPCI or similar kext.

 

Any ideas what could be wrong? thanks! :)



#29
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 1,096 posts
  • Gender:Male

Any ideas what could be wrong?

No. See Post #1 Problem Reporting, reply with requested info.



#30
mcsmart

mcsmart

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 158 posts
  • Gender:Male
  • Location:Germany
  • Interests:Un*x-like systems, PCs, Scripting and Programming

Injection is working; Inject=1 and FixHDA=NO. The patched AppleHDA.kext is not loading; where is it? Need to see IOReg.
PM space available.

I've sent you the IOReg through pm. What do you mean by "patched AppleHDA.kext"? I am using Clover and I followed the instructions in [Guide]-Add_HDEF-Clover.pdf. In there it says: "no kext, dsdt or ssdt enabler required".

This why I am using the vanilla AppleHDA.kext, but after reading through your first post carefully I figured that I still need to patch the kext. {censored}, I forgot. I am gonna try that ASAP. You probably do not need the IOReg dump then, as layout injection is already working...


#31
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 1,096 posts
  • Gender:Male

 I am gonna try that ASAP. You probably do not need the IOReg dump then, as layout injection is already working...

Your IOReg says the installed AppleHDA.kext is native.  Run the patch script.  It creates a folder on the desktop with original AppleHDA.kext and a backup of the patched AppleHDA.kext.  Restart and make a new IOReg.



#32
mcsmart

mcsmart

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 158 posts
  • Gender:Male
  • Location:Germany
  • Interests:Un*x-like systems, PCs, Scripting and Programming

Okay, I got it working. I simply thought this would work with a vanilla AppleHDA.kext, but patching is still required. I guess Clover's binary kext patching method is also of no use here, as you need to replace entire files within the kext :(
 
Just two suggestions for your patching script:

  • audio_alc892-91_patch.command is not executable
  • your patch scripts assume that the files were downloaded to ~/Downloads/audio_ALC892-master/. Maybe some dirname magic or relative paths would be better, as they would allow other download locations

Thanks for your efforts.

 

- mcsmart



#33
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 1,096 posts
  • Gender:Male

Just two suggestions for your patching script:

  • audio_alc892-91_patch.command is not executable
  • your patch scripts assume that the files were downloaded to ~/Downloads/audio_ALC892-master/. Maybe some dirname magic or relative paths would be better, as they would allow other download locations

Thanks for the suggestions.



#34
mrjayviper

mrjayviper

    InsanelyMac Protégé

  • Members
  • PipPip
  • 85 posts

Problem Reporting

 

1. Description of audio problem, including the following information:

 

 There are no output devices in sound settings.

 

 

2. OS X version/motherboard model/BIOS version/processor/graphics

 

OSX 10.8.5/Gigabyte 990FXA-UD3/F10a/AMD FX-8120/Nvidia GT610/onboard ALC889

 

 

3. Procedure/Guide Used/AppleHDA.kext version

 

installed AppleHDA and HDAEnabler1 using Kext wizard. I then repaired permission/cache.

 

 

4. Extra/dsdt.aml (if installed)

 

see 1st attachment. It was extracted/compiled using DSDT Editor. no changes or patches were made/used.

 

 

5. Copy of IOReg - IOReg/File/Save a Copy As…, verify file (not ioreg.txt)

 

see 2nd attachment. not sure how to verify but opening it using ioreg, it seems ok.

 

 

6. Console/All Messages/kernel Sound Assertions selected/Save Selection As…..

 

post-1276315-0-80552700-1388737794.png

 

 

7. Screenshot of System Information/Hardware/Audio/Intel High Definition Audio (not Devices)

 

post-1276315-0-55800100-1388737788.png

 

 

8. Screenshot of System Information/Hardware/Graphics/Displays

 

post-1276315-0-13587700-1388737930.png

 

Thanks very much

Attached Files



#35
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,886 posts
  • Gender:Male
  • Location:português

Problem Reporting

1. Description of audio problem, including the following information:

There are no output devices in sound settings.


2. OS X version/motherboard model/BIOS version/processor/graphics

OSX 10.8.5/Gigabyte 990FXA-UD3/F10a/AMD FX-8120/Nvidia GT610/onboard ALC889


3. Procedure/Guide Used/AppleHDA.kext version

installed AppleHDA and HDAEnabler1 using Kext wizard. I then repaired permission/cache.


4. Extra/dsdt.aml (if installed)

see 1st attachment. It was extracted/compiled using DSDT Editor. no changes or patches were made/used.


5. Copy of IOReg - IOReg/File/Save a Copy As…, verify file (not ioreg.txt)

see 2nd attachment. not sure how to verify but opening it using ioreg, it seems ok.


6. Console/All Messages/kernel Sound Assertions selected/Save Selection As…..

post-1276315-0-80552700-1388737794.png


7. Screenshot of System Information/Hardware/Audio/Intel High Definition Audio (not Devices)

post-1276315-0-55800100-1388737788.png


8. Screenshot of System Information/Hardware/Graphics/Displays

post-1276315-0-13587700-1388737930.png

Thanks very much


I have the same motherboard with similar hardware combination, and have unfortunately so far had no way to activate the sound card.

Meroni and Toleda have tried to help me, unfortunately without success. I have tried with DSDT.aml + HDMI-Patch without HDA Enabler although the AppleHDAController.kext is loaded but no Sound active.

 

and I can confirm your uploaded images even so, I have the same information. I also tried to boot without DSDT.aml + HDAEnabler to activate the sound card unfortunately with the same negative result . AppleHDAController is loaded and I can not adjust anything and no sound .

 

Our presumption that we should have to programming a new Sound driver for AMD, , perhaps it is not possible to realize with intel-based AppleHDA. Maybe the binary file must be designed in AMD. I could be wrong, but I'm very interested what opinion have Toleda and Meroni.


Edited by spakk, 03 January 2014 - 11:38 AM.


#36
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 1,096 posts
  • Gender:Male

Problem Reporting

 

1. Description of audio problem, including the following information:

 

 There are no output devices in sound settings.

 

 

2. OS X version/motherboard model/BIOS version/processor/graphics

 

OSX 10.8.5/Gigabyte 990FXA-UD3/F10a/AMD FX-8120/Nvidia GT610/onboard ALC889

AppleHDA.kext supports Intel High Definition Audio (IHDA). For obviously reasons, your AMD does not have a valid IHDA device-id. Often, patching the AppleHDA binary allows support of non supported audio codecs.  For AppleHDA.kext to load for AMD onboard audio, the AppleHDAController binary has to be patched for the AMD audio device-id.  No idea if patching for the AMD audio device-id will work.  If it doesn't, their is no way to use AppleHDA.kext for AMD onboard audio.

 

The  attached IOReg shows 10024383.  Device-ids represented in AppleHDAController binary are reversed.  Some IHDA device-ids in AppleHDAController are:

 

86 80 20 8C

86 80 20 9C

86 80 20 1D

86 80 20 1E

86 80 20 1C

86 80 56 3B

 

Example, using a hex editor on AppleHDAController binary:

Find: 86 80 20 8C

Replace: 02 10 83 43 

 

Save, install, rebuild cache, restart.  Check for IOReg/HDEF/AppleHDAController.


Meroni and Toleda have tried to help me, unfortunately without success. I have tried with DSDT.aml + HDMI-Patch without HDA Enabler although the AppleHDAController.kext is loaded but no Sound active.

HDMI audio does work on AMD in 10.8 and newer.  Attach your dsdt and IOReg.



#37
mrjayviper

mrjayviper

    InsanelyMac Protégé

  • Members
  • PipPip
  • 85 posts

I'll try the suggestion. thanks



#38
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,886 posts
  • Gender:Male
  • Location:português

AppleHDA.kext supports Intel High Definition Audio (IHDA). For obviously reasons, your AMD does not have a valid IHDA device-id. Often, patching the AppleHDA binary allows support of non supported audio codecs. For AppleHDA.kext to load for AMD onboard audio, the AppleHDAController binary has to be patched for the AMD audio device-id. No idea if patching for the AMD audio device-id will work. If it doesn't, their is no way to use AppleHDA.kext for AMD onboard audio.

The attached IOReg shows 10024383. Device-ids represented in AppleHDAController binary are reversed. Some IHDA device-ids in AppleHDAController are:

86 80 20 8C
86 80 20 9C
86 80 20 1D
86 80 20 1E
86 80 20 1C
86 80 56 3B

Example, using a hex editor on AppleHDAController binary:
Find: 86 80 20 8C
Replace: 02 10 83 43

Save, install, rebuild cache, restart. Check for IOReg/HDEF/AppleHDAController.

HDMI audio does work on AMD in 10.8 and newer. Attach your dsdt and IOReg.


Many thanks toleda for your information.
I will try proceed according to your specifications and will report later. afterwards. For each change, I will upload the ioreg.

#39
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,886 posts
  • Gender:Male
  • Location:português

Hi Toleda showing my last test with patched AppleHDA by Meroni with DSDT.aml and your HDAEnabler12, with HEX patch

 

since only the hex patch has brought no successes with the unpatched AppleHDA, I am now experimenting on.
In addition, I tried the PINConfiguration from my code_dump (from Linux and PINConfigurator modified) insert in your HDAEnabler.plist, this is the result-.

 

 

fascinating it is that is the AppleHDAController.kext loaded, see Figure 1

Figure 3 shows a small selection of my AppleHDA, I am unsure whether I have done the PINConfiguration correctly. Toleda please check my ioreg perhaps I made a mistake while experimenting. Thank you very much

 

 

Figure1.

862028SystemInfokexts.png

 

Figure 2.

452065SystemInfo.png

 

Figure 3.

584441mylastpatch.png

Attached Files



#40
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,886 posts
  • Gender:Male
  • Location:português

Hi toleda,

 

a small change, eventually we get to the target??. I hope!
I have the PinConfiguration that Mirone has configured for me inserted into the HDAEnabler. Now an unknown speaker is displayed but remains hidden sound. I am attaching my modified AppleHDA.kext, you'll find the modified HDAEnabler under plugins.

please see my last ioreg with unknow speaker and my CodeDump

 

1.

 

496747lasttest.png

 

 

2.

 

779734Sound1.png

 

 

3.

 

983425Sound2.png

 

 


funny it is that when I open my CodeDump with AppleHDAPatcher of Taruga a different value is displayed , asking for info

 

see the value: Vendor ID and Subsystem

 

352077AppleHDAPatcherioreg.png


or does anyone have any idea where I can find the error yet ? :)

Attached Files







5 user(s) are reading this topic

1 members, 4 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy