Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

for IDT codec

nid=11 [pin: Headphones (Green Front)]
      |
      + <- nid=19 [audio output] [src: pcm] bindSeq=00008001
 

nid: 11
           Name: pin: Headphones (Green Front)
     Widget cap: 0x00400581
                 PWR UNSOL STEREO
    Association: 0 (0x00008000)
        Pin cap: 0x0001001c
                 PDC HP OUT EAPD
     Pin config: 0x0221401f
    Pin control: 0x000000c0 HP OUT
           EAPD: 0x00000002
    connections: 3 enabled 1
          |
          + <- nid=19 [audio output] (selected)

 

HP is really connected to DAC directly
 

Link to comment
Share on other sites

9 minutes ago, tyufhl said:

Need Connection Select Control ( 701h)  to pinpoint the contact. This is not in HdaCodecDump.efi.

it is open source

we can add it if needed

or ask the author

 

but

Node 0x11 [Pin Complex] wcaps 0x40018D: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000373F: IN OUT HP Trigger Detect
  Pin Default 0x02214030: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x02:
  Connection: 1
     0x22

 

and it never will connected to node 0x3 directly, nothing to select here

 

you may select if multiple connections are available

Node 0x36 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 3
     0x03 0x04 0x06

 

 

Edited by Rodion2010
Link to comment
Share on other sites

4 minutes ago, Rodion2010 said:

it is open source

we can add it if needed

or ask the author

 

but

Node 0x11 [Pin Complex] wcaps 0x40018D: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x0000373F: IN OUT HP Trigger Detect
Pin Default 0x02214030: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x02:
  Connection: 1
0x22

 

and it never will connected to node 0x3 directly, nothing to select here

 

you may select if multiple connections are available

Node 0x36 [Audio Selector] wcaps 0x300101: Stereo
Connection: 3
0x03 0x04 0x06

 

 

Родион я тебе говорю что надо дампить верб 701 для точного определения контакта, когда этих контактов несколько.

  • Like 1
Link to comment
Share on other sites

3 minutes ago, tyufhl said:

Родион я тебе говорю что надо дампить верб 701 для точного определения контакта, когда этих контактов несколько.

 

а я о чем? :)

nothing to select here

if multiple connections are available

 

maybe 

F01h ?

get connection select?

701 is set connection

Edited by Rodion2010
  • Like 1
Link to comment
Share on other sites

45 minutes ago, tyufhl said:

Родион я тебе говорю что надо дампить верб 701 для точного определения контакта, когда этих контактов несколько.

another way is to try all possible connection and find the first matching PinComplex Out ...DAC, then the same for ADC ... PinComplex In

 

and ignore all Input monitoring etc

Edited by Rodion2010
Link to comment
Share on other sites

3 minutes ago, tyufhl said:

701 will not work. That's my fault.

is it possible to try all NIDs from 0 to ConnectinlListLength-1 until it will come to Audio Output, for example? 

 

I look at several dumps

for Output the 1st connection in the list is OK

for Input - no simple rule ((

Edited by Rodion2010
  • Like 1
Link to comment
Share on other sites

On 2/15/2019 at 11:00 AM, tyufhl said:

Check. Layout 2.

AppleALC.kext.zip

 

Quote

Big Thanks bro :) I will try it, but this is intended for IDT Audio Codec, right??? 

 

Dear bro :( you didn't answer me :( Your file for which codec is intended??? I know the Creative Sound Blaster would not work. But is for HDMI (GTX 1060) or IDT onboard Codec???

 

Another question is: Is it necessary in Clover Configurator, go to ACPI and install his DSDT patch: Rename HDAS to HDEF/

Link to comment
Share on other sites

2 hours ago, BlackPilot said:

 

 

Dear bro :( you didn't answer me :( Your file for which codec is intended??? I know the Creative Sound Blaster would not work. But is for HDMI (GTX 1060) or IDT onboard Codec???

 

Another question is: Is it necessary in Clover Configurator, go to ACPI and install his DSDT patch: Rename HDAS to HDEF/

IDT onboard Codec.

  • Thanks 1
Link to comment
Share on other sites

1 hour ago, Andrey1970 said:

No, AppleALC does it automatically.

 

Thanks dear mate :) One more question please :( ... Do I have to check "ResetHDA" when I write the layout-id (2) ??? (before I save the config.plist and reboot the system) 

 

image.png.526b98f00539a1554a43b75fe2a544f6.png

 

5 minutes ago, tyufhl said:

IDT onboard Codec.

 

Thank you brother :) I believe you can add it now to the AppleALC Github Repository :D 

Edited by BlackPilot
Link to comment
Share on other sites

5 minutes ago, BlackPilot said:

 

Thanks dear mate :) One more question please :( ... Do I have to check "ResetHDA" when I write the layout-id (2) ??? (before I save the config.plist and reboot the system)

 

image.png.526b98f00539a1554a43b75fe2a544f6.png

 

 

Thank you brother :) I believe you can add it now to the AppleALC Github Repository :D 

Does the IDT work or not?

  • Like 1
Link to comment
Share on other sites

Hello all, I have a lenovo yoga 910, i7-7500u. I installed mojave and previously had my audio working in high sierra from [url=&quot;http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/&quot;]#####[/url] but [url=&quot;http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/&quot;]#####[/url] keeps failing me. I tried to use intel fb patcher but no success yet. I have attached my audio codec dump and hope it is what you need. Any help is greatly appreciated

Thanks,

          Ben

codec.txt

Link to comment
Share on other sites

7 minutes ago, tyufhl said:

Does the IDT work or not?

 

My friend, sorry for my optimism haha :( I will test it very soon, give me some days please. I will tell you here :) But I'm sure It will work :D 

 

The good part is that AppleALC next version will be released in one or two months :) So there's time to test it.

 

Dear friend, is it necessary to check ResetHDA?? Sorry for the double question  :(

  • Like 1
Link to comment
Share on other sites

3 minutes ago, BlackPilot said:

 

My friend, sorry for my optimism haha :( I will test it very soon, give me some days please. I will tell you here :) But I'm sure It will work :D 

 

The good part is that AppleALC next version will be released in one or two months :) So there's time to test it.

 

Dear friend, is it necessary to check ResetHDA?? Sorry for the double question :(

not necessary.

  • Thanks 1
Link to comment
Share on other sites

hi all.

bumping my own post for attention.

any1 help me plz

 

 

On 2/12/2019 at 5:38 PM, ea dd said:

hi. all

 

i have replaced my old GeForce 9500GT with GTX 650 for installing Mojave. My rig info is in my signature.

 

Installed Mojave and it runs cool but audio through HDMI does not work when connecting to TV. Same with High Sierra.

Old card was working and it had a cable connecting the card to S/PDIF out header on mainboard.

new card does not have such a thing. So i guess it is made to work without that S/PDIF cable.

 

i have read somewhere that WhateverGreen.kext should fix HDMI audio problem and downloaded and installed it into /Library/Extension/ then fixed permission with Kext Utility.

 

Rebooted and see  WhateverGreen.kext is loaded. still no audio through HDMI.


   17    2 0xffffff7f80f7d000 0x22000    0x22000    as.vit9696.Lilu (1.3.1) 2BA44B2C-289E-39B7-A92B-C28291D5FC26 <8 6 5 3 2 1>
   18    0 0xffffff7f80f9f000 0x64000    0x64000    as.vit9696.WhateverGreen (1.2.6) 073AC103-5807-3374-8D23-F98A0975D391 <17 13 8 6 5 3 2 1>
   19    0 0xffffff7f81016000 0xea000    0xea000    as.vit9696.AppleALC (1.3.4) 5A1678E9-EEB8-3646-9244-5B589288D960 <17 13 8 6 5 3 2 1>

 

i'm using Lilu + AppleALC and my audio is working except HDMI.

Please find attached file includes screenshots of sound output settings, system information audio and ioreg file and config.plist of clover.

Help me please.

 

thanks.

 

 

attachment.zip

 

tnx

Link to comment
Share on other sites

22 hours ago, Rodion2010 said:

there is no one answer what is needed and what is not needed

exactly this is my point but usually i don't need audio selector , it totally varies from codec to codecs 

 

 

19 hours ago, Rodion2010 said:

is it possible to try all NIDs from 0 to ConnectinlListLength-1 until it will come to Audio Output, for example? 

 

I look at several dumps

for Output the 1st connection in the list is OK

for Input - no simple rule ((

correct

  • Like 1
Link to comment
Share on other sites

one more way to get codec info

load Codec Commander

sudo chmod -Rf 755 ~/Downloads/RehabMan-CodecCommander-2018-1003/Release/CodecCommander.kext
sudo chown -Rf 0:0 ~/Downloads/RehabMan-CodecCommander-2018-1003/Release/CodecCommander.kext
sudo kextload ~/Downloads/RehabMan-CodecCommander-2018-1003/Release/CodecCommander.kext
kextstat | grep CodecCommander
  146    0 0xffffff7f83059000 0x9000     0x9000     org.tw.CodecCommander (2.7.1) 114866EA-9E10-3A75-8084-CEEE9D344D9F <96 12 11 4 3 1>

and run the script

CodecDump2.command.zip

 

all nodes info will be in XML file

Link to comment
Share on other sites

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

Hello,

This is going to be a support/discussion topic of AppleALC on InsanelyMac. 
AppleALC is a kernel extension allowing you to enable native apple HD audio without any filesystem modifications. It dynamically injects the necessary modifications to AppleHDA (and other kexts) including the

layouts, and makes your audio work starting from the OS installation.

 

It should be noted that AppleALC starting with version 1.1.0 requires Lilu.kext to be put in the same folder as AppleALC.kext. See this topic for more details.

 

For quite some time we are trying to obtain the necessary information about AppleALC codec compatibility. If you use something, please, consider checking the compatibility table (do not worry, it is in English), and report (here) on your codec. We are also looking for all the possible revisions of the codec, if we do not have the revisions listed for your codec please report as well. Thanks for understanding. 

 

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.

 
All the details including the source code are available on github:
https://github.com/vit9696/AppleALC
Some short wiki articles explaining the usage are included.
 
As for now the project is relatively immature without practically any codec support. But it should be pretty easy to add more of them, I am hoping for the support of the "community" :)
If you have any issues, better report them on github for structural reasons.

请求帮助

我的主板是:GA Z97X-UD3H ver1.1

声卡: Realtek ALC 1150

AppleALC.kext问题,AppleALC.kex 版本1.2.8后,AppleALC.kex 1.3.0版本到1.3.6 AppHDA等组件完美加载,但是系统报告音频 设备 空白

归档.zip

Link to comment
Share on other sites

Hi

 

With AppleALC 1.3.5, I've a issue on my system (Realtek ALC892): no sound at launch :( I restart and the sound is coming back. Same things with layout-id 1 or 3. 

 

With previous versions, no problems with layout-id = 1. (Best choice for my mobo).

 

Some solutions, please.

 

kextstat | grep CodecCommander
  161    0 0xffffff7f866f3000 0x9000     0x9000     org.tw.CodecCommander (2.7.1) 114866EA-9E10-3A75-8084-CEEE9D344D9F <96 13 12 5 3 1>

Sorry for my bad english

Edited by Matgen84
Link to comment
Share on other sites

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

Hello,

This is going to be a support/discussion topic of AppleALC on InsanelyMac. 
AppleALC is a kernel extension allowing you to enable native apple HD audio without any filesystem modifications. It dynamically injects the necessary modifications to AppleHDA (and other kexts) including the

layouts, and makes your audio work starting from the OS installation.

 

It should be noted that AppleALC starting with version 1.1.0 requires Lilu.kext to be put in the same folder as AppleALC.kext. See this topic for more details.

 

For quite some time we are trying to obtain the necessary information about AppleALC codec compatibility. If you use something, please, consider checking the compatibility table (do not worry, it is in English), and report (here) on your codec. We are also looking for all the possible revisions of the codec, if we do not have the revisions listed for your codec please report as well. Thanks for understanding. 

 

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.

 
All the details including the source code are available on github:
https://github.com/vit9696/AppleALC
Some short wiki articles explaining the usage are included.
 
As for now the project is relatively immature without practically any codec support. But it should be pretty easy to add more of them, I am hoping for the support of the "community" :)
If you have any issues, better report them on github for structural reasons.

请求你的帮助

主板:GA Z97X-UD3H ver1.1 声卡: Realtek ALC 1150

AppleALC.kext问题,版本1.2.8_good AUDIO  1.3.0后到1.3.6都不行,在系统报告 功能扩展那查看,NO AUDIO 多加载了AppleHDAHardwareConfigDriver.kext

 

AppleALC.kext 1.2.8 good AUDIO  NO AppleHDAHardwareConfigDriver.kext

 

1.3.6_no_audio.zip

1.2.8_good_audio.zip

Edited by qutongming
Link to comment
Share on other sites

2 hours ago, Matgen84 said:

Hi

 

With AppleALC 1.3.5, I've a issue on my system (Realtek ALC892): no sound at launch :( I restart and the sound is coming back. Same things with layout-id 1 or 3. 

 

With previous versions, no problems with layout-id = 1. (Best choice for my mobo).

 

Some solutions, please.

 


kextstat | grep CodecCommander
  161    0 0xffffff7f866f3000 0x9000     0x9000     org.tw.CodecCommander (2.7.1) 114866EA-9E10-3A75-8084-CEEE9D344D9F <96 13 12 5 3 1>

Sorry for my bad english

 

Hmm.. Does Layout ID 7 work for you?

 

There seem to be some updates with version 1.3.5 meant to fix some things for some codecs (ALC892 included).

 

1381509804_Screenshot2019-02-19at10_51_35.png.3974893f02a5228182d9eb9e582f9eff.png

 

So...either there's something wrong there... Or the issue might be somewhere else. Also, whenever you update AppleALC, make sure you also update Lilu. If you already did that, sorry. :D Just mentioning it since it's kind of important.

 

On ALC1150, everything seems to be working fine with both Layout ID 1 and 7.

Edited by arsradu
  • Like 1
Link to comment
Share on other sites

4 hours ago, arsradu said:

 

Hmm.. Does Layout ID 7 work for you?

 

There seem to be some updates with version 1.3.5 meant to fix some things for some codecs (ALC892 included).

 

1381509804_Screenshot2019-02-19at10_51_35.png.3974893f02a5228182d9eb9e582f9eff.png

 

So...either there's something wrong there... Or the issue might be somewhere else. Also, whenever you update AppleALC, make sure you also update Lilu. If you already did that, sorry. :D Just mentioning it since it's kind of important.

 

On ALC1150, everything seems to be working fine with both Layout ID 1 and 7.

 

I verify: Lilu is up to date :yes: There is a randomly issue with version 1.3.5. The best layout-ID is 1 for my mobo. I don't try 7 for now. Thanks for your reply

Link to comment
Share on other sites

17 minutes ago, Matgen84 said:

 

I verify: Lilu is up to date :yes: There is a randomly issue with version 1.3.5. The best layout-ID is 1 for my mobo. I don't try 7 for now. Thanks for your reply

Are you also using CodecCommander along with AppleALC? If so, could you, please, test without it? It might interfere with AppleALC's functionality.

Edited by arsradu
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...