Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

3 minutes ago, vandroiy2012 said:

 

Just make fork of original AppleALC source code to your account on github, add your codec (make changes to existing codec) and follow GitHub help to push pull request. 

https://help.github.com/articles/creating-a-pull-request/ 

:). I know this step to pull code. But i only want to share it and i want to push but it not impossible from my side.

Link to comment
Share on other sites

On 9/25/2018 at 5:00 PM, wern apfel said:

It is possible to use all devices, but some must to be in switch mode. One of the two inputs is the microphone, it is only configured as line-in.

 

Take a look at the resources from the attachment. For layout 10 you should have four 2-channel streams, the first input device is the rear and front microphone in switch mode, the second device is line-in. Layout 11 has only three 2-channel streams, line-in and the rear microphone are in switch mode, the front microphone as second device.

 

Platforms101.xml.zip

 

Hi guys,

 

It's been crazy busy for me these days. That's why I couldn't answer earlier.

 

So I tried to combine what @MacPeet said about configuration 3 and what you said about Layout ID 10... I'm still not sure if I should use Layout ID 10 here.... But I did. And....so far no sound. So I'm most likely doing something wrong.

 

Would this be a correct configuration for Front and Back Microphones in Switch Mode and the Line in on the Back as separate device (meaning what you said for Layout ID 10...if I got that right)?

To be honest, I'm not quite sure what this Switch Mode is and how to configure it. I took the Speakers for example and I tried to replicate that. But I'm not sure I've done a very good job at that. So could you, please, tell me if this is correct?

 

 

2105694782_Screenshot2018-10-13at18_04_52.png.d80ee509dab00cc730359c41bc488042.png

 

Also, attached you can find the pathmap svg, and the rest of the AppleALC resources.

 

So...should this work...? What am I doing wrong? I didn't add EAPD yet. I just want to see if it works like that first.

 

Also, something else I'm not sure I understand... Do I still need to add the EAPD data INTO the ConfigData if it seems to be already added separately in WakeConfigData...?

 

514570066_Screenshot2018-10-13at18_36_51.thumb.png.c6e0571c14d4c17468b2fa373e974c06.png

 

 

 

 

 

codec_dump_dec.txt.svg

LayoutID10.zip

codec_dump.txt

verbs.txt

Link to comment
Share on other sites

18 hours ago, insanelyDeepak said:

can you tell me how to disable HDAU ? my dsdt don't have HDAU device 

I suppose it may be differently in your DSDT. You are looking for a second device in your GPU PCI bridge. Actually, if you use a patched DSDT it is the likely cause of freezes.

Another way could be running gfxutil -f HDAU from the system. It should give you the path usable with DeviceProperties.

Link to comment
Share on other sites

@arsradu

try this with LayoutID 15

 

trial_alc892_layoutID15_for_MSi_Z97S_SLI_Krait_Edition.zip


with EAPD:

01471c10 01471d40 01471e11 01471f91 01470c02 01b71c20 01b71d40 01b71e21 01b71f02 01b70c02 01871c30 01871d90 01871ea1 01871f91 01571c50 01571d10 01571e01 01571f01 01671c60 01671d60 01671e01 01671f01 01771c70 01771d20 01771e01 01771f01 01971c80 01971d90 01971ea1 01971f02 01a71c90 01a71d30 01a71e81 01a71f01

 

Archiv.zip

  • Like 1
Link to comment
Share on other sites

1 hour ago, MacPeet said:

@arsradu

try this with LayoutID 15

 

trial_alc892_layoutID15_for_MSi_Z97S_SLI_Krait_Edition.zip


with EAPD:

01471c10 01471d40 01471e11 01471f91 01470c02 01b71c20 01b71d40 01b71e21 01b71f02 01b70c02 01871c30 01871d90 01871ea1 01871f91 01571c50 01571d10 01571e01 01571f01 01671c60 01671d60 01671e01 01671f01 01771c70 01771d20 01771e01 01771f01 01971c80 01971d90 01971ea1 01971f02 01a71c90 01a71d30 01a71e81 01a71f01

 

Archiv.zip

 

Hii!! Thank you so much for your feedback!!!

 

Tried Layout ID 15 and the attached files with the following results:

 

Layout-wise, this is PERFECT! Internal Microphone in Switch Mode (Back and Front). And a Line-in. Perfect!

 

Now, there seems to be an issue with the actual sound. Meaning I only have a functional microphone with the Back Microphone port (Pink, node 24). The Line-in (Blue, node 26) and the Front Microphone (Pink, node 25) are non functional, although, as you can see, they do show up in System Preferences. IF I'm correct and the Platforms.xml is responsible for tracing the routes from the port to the node, then my guess is that probably there is something wrong on the Platforms side. I'm just not sure what. We can use 8 or 9 for Input, right?

 

And, so far, we've got 9-34-24, 9-34-25 and 8-35-26. Kinda weird that the path to node 24 seems to be working but the one for nodes 25 and 26 are not, even though at least for 24 and 25, they're both using the same Audio Mixer.

 

Outputs are all working perfectly. :D

 

1619022212_Screenshot2018-10-14at14_00_30.png.ae39d17c2ab08b2d5980b05d4a23b3b5.png

 

Edited by arsradu
Link to comment
Share on other sites

oh, sorry, my mistake
Front Mic now as LineIn

01471c10 01471d40 01471e11 01471f91 01b71c20 01470c02 01b71d40 01b71e21 01b71f02 01b70c02 01871c30 01871d90 01871ea1 01871f91 01571c50 01571d10 01571e01 01571f01 01671c60 01671d60 01671e01 01671f01 01771c70 01771d20 01771e01 01771f01 01971c80 01971d90 01971e81 01971f02 01a71c90 01a71d30 01a71e81 01a71f01

 

change again this AppleALC

trial_AppleALC.kext.zip

 

LineOut back green (as internal speaker) in SwitchMode with HP front green

 

Mic back pink (as internal Mic) in SwitchMode with Mic front pink (as LineIn)
LineIn back blue is a pure LineIn (requires pre-amplified mic's or CD players)

  • Like 1
Link to comment
Share on other sites

On 10/14/2018 at 2:47 PM, vit9696 said:

I suppose it may be differently in your DSDT. You are looking for a second device in your GPU PCI bridge. Actually, if you use a patched DSDT it is the likely cause of freezes.

Another way could be running gfxutil -f HDAU from the system. It should give you the path usable with DeviceProperties.

Thanks  results below 

Last login: Mon Oct 15 08:44:14 on console
Deepaks-iMac:~ deepak$ /Users/deepak/Downloads/gfxutil-1.76b/gfxutil -f HDAU
DevicePath = PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x1)

1016775328_ScreenShot2018-10-15at3_53_37PM.thumb.png.8852a3e72b735b8d5ca48d2e82a056ef.png

 

 

yes using custom DSDT , myDisplay has hdmi port but no inbuilt speakers but i'm not using HDMI port also issue wasn't in AppleALC just with new

 

Edited by insanelyDeepak
Link to comment
Share on other sites

On 10/14/2018 at 3:00 PM, MacPeet said:

oh, sorry, my mistake
Front Mic now as LineIn

01471c10 01471d40 01471e11 01471f91 01b71c20 01470c02 01b71d40 01b71e21 01b71f02 01b70c02 01871c30 01871d90 01871ea1 01871f91 01571c50 01571d10 01571e01 01571f01 01671c60 01671d60 01671e01 01671f01 01771c70 01771d20 01771e01 01771f01 01971c80 01971d90 01971e81 01971f02 01a71c90 01a71d30 01a71e81 01a71f01

 

change again this AppleALC

trial_AppleALC.kext.zip

 

LineOut back green (as internal speaker) in SwitchMode with HP front green

 

Mic back pink (as internal Mic) in SwitchMode with Mic front pink (as LineIn)
LineIn back blue is a pure LineIn (requires pre-amplified mic's or CD players)

 

This is genius! :)) Works exactly as you said. So it needs to be Line-In in order to work? How do you know if it has to be Line-In or Microphone or Headphone or whatever...? We've got one Microphone (Node 24). Can Node 25 be also marked as another Microphone and still work in Switch Mode? Just curious. I'll experiment with that a little more on my own.

 

Thank you so much for your help!

 

Do you think we can integrate these resources into AppleALC so they can be included with future updates? That would be awesome!!!

Link to comment
Share on other sites

On 3/8/2016 at 12:46 AM, vit9696 said:

The report is meant to contain:

1. Laptop model/Motherboard model
2. Codec name
3. Layout used with the info what works for you (ideally if you try them all)
4. OS X versions you tried
5. Autogenerated Info.plist made with the help of this utility.

Hi Superior,

 

i have HP Pavilion g7

 

i5-3230m 15"

8Gig Ram

250 850Evo

 

Its' audio ID is: 92HD87B2/2 (111d:76D9)

i did follow your instructions on (https://github.com/acidanthera/AppleALC/wiki/Installation-and-usage) with no success. could it be that my hardware is now useless? or am i doing something wrong? please help me resolve this issue.

 

your help will be highly appreciated. 

Clover AppleALC LILU.zip

Info.plist

10.14 IOREg.ioreg

alcdbg and liludbg results.log

Link to comment
Share on other sites

@arsradu
pure experience
Only 2 nodes chains (9 34 x and 8 35 x) for 3 input devices.
Two with the same nodes, but two mic's are causing problems with OSX.

 

 

Good evening  @vandroiy2012

 

I have a new codec, everything works perfectly says @arsradu

 

ALC892 - LayoutID 15 (0F) for MSi Z97S SLI Krait Edition

 

new_Resources_alc892.zip

 

can you please added the new codec?
 
many thanks

  • Like 2
Link to comment
Share on other sites

23 minutes ago, MacPeet said:

@arsradu
pure experience
Only 2 nodes chains (9 34 x and 8 35 x) for 3 input devices.
Two with the same nodes, but two mic's are causing problems with OSX.

 

 

Good evening  @vandroiy2012

 

I have a new codec, everything works perfectly says @arsradu

 

ALC892 - LayoutID 15 (0F) for MSi Z97S SLI Krait Edition

 

new_Resources_alc892.zip

 

can you please added the new codec?
 
many thanks

 

Many, many thanks!

Link to comment
Share on other sites

How to get the info?

 

Hi Im using the listed codec for ALC221 on a HP 8300 and the original creator noted that the mic didnt work - How do I go about finding the information needed to start the process to add a mic to the patch?

Any sites or posts dealing would be most appreciated.

Thanks

Link to comment
Share on other sites

@insanelyDeepak, from the screen it is obvious that your DSDT (?) is absolutely insane, as you inject a mad amount of unneeded properties to your HDMI audio device instead of your GPU device. So it is literally genuine garbage, and borked bootup is expected. Please fix your GPU setup accordingly to properly written manuals (e.g. the ones on applelife).

Link to comment
Share on other sites

On 10/8/2018 at 9:26 PM, insanelyDeepak said:

could you type below keywords in terminal and share output 
 


kextstat | grep -y hda
kextstat | grep -y ALC

 

 

The first one had no output, And here is the output from the second command:
(Compiled in 10.13.6, And tested in 10.13.6)

   40    0 0xffffff7f832c1000 0xe0000    0xe0000    as.vit9696.AppleALC (1.3.2) 93B94CD7-A44F-3C68-B467-BD2A6B207FE2 <39 12 7 5 4 3 2 1>

EDITED:

The output from the first command is:

  123    2 0xffffff7f8228e000 0xc000     0xc000     com.apple.iokit.IOHDAFamily (281.52) 3D7ADFBB-A913-31F3-A713-32A20B7B2249 <5 4 3 1>
  124    1 0xffffff7f8229d000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (281.52) 0CEE0F18-1D22-3D90-9FD5-ECCD63F81428 <123 122 73 12 7 6 5 4 3 1>
  143    0 0xffffff7f82421000 0xb7000    0xb7000    com.apple.driver.AppleHDA (281.52) 119A5EAE-5FD8-3CF3-A0CA-73EDDDC23DBE <142 124 123 122 102 73 6 5 4 3 1>

 

And sorry for too late reply, I was in vacation.

Edited by Justin Spier
I didn't pay enough attention, grep is case-sensitive by default
Link to comment
Share on other sites

10 hours ago, Andres ZeroCross said:



Did you use AppleALC.kext + lilu.kext??

There are many layoutid for ALC255, you can try it https://github.com/acidanthera/AppleALC/tree/master/Resources/ALC255

 

 

Have tried it, sir.... Andres .

 

Finally I tried codec the audio myself.
The speakers and headphones run smoothly but the problem remains on the mic...

 

Who can solve the combo jack problem on alc255?

x441u alc255 - alfin.zip

Link to comment
Share on other sites

Hi everyone,

 

I'm using hackintosh on HP Workstation Z600. This use Realtek ALC262. I have added AppleALC to patch HDA. And use clover to inject layout 28. I see it success to patch.

But I cannot hear sound when inject headphone although input detected. (Please see Input detected image file I'm attached)

 

I also attach my codec_dump file.

 

Please support me resolve this issue.

Many thanks

codec_dump.txt

Input detected.png

System Information.png

Edited by huytbt
Link to comment
Share on other sites

Have tried it, sir.... Andres .
 
Finally I tried codec the audio myself.
The speakers and headphones run smoothly but the problem remains on the mic...
 
Who can solve the combo jack problem on alc255?
x441u alc255 - alfin.zip
Some ALC255 need codec commander with certain profile, set the profile inside info.plist or ssdt. It's related to EAPD

Sent from my Mi Note 2 using Tapatalk

Link to comment
Share on other sites

×
×
  • Create New...