Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

3 hours ago, DoZe said:

@jonny33

 

Ok, Thanks for this additional info. For my part, i'm using Clvoer, custom DSDT made my MaLD0n on Zbook 15uG4 and using Rehabman Kext for battery management, no other thing like SSDT*.aml, never had a restart :

 

https://bitbucket.org/RehabMan/os-x-acpi-battery-driver/downloads/

 

 

Thanks, I'm using the same kext as well, however it's from the hotpatch probook guide, I don't have anything custom made for my specific machine

Link to comment
Share on other sites

8 hours ago, DoZe said:

 

@MacPeet

When back to Home, i'll inform you if Mic Boost is ok and if external Mic work or not : No prob, Stay tuned.

 

 

@MacPeet

 

I Just try it now : When i plug the Mic (i try 2 different Mic, one with headset and a good old Creative) , the Master volume go to 100%, but nothing.

I unplug it, the Master volume come back to his nominal value.

 

The new flavor Kext is perfect for Mic Boost, not too much, not too low.

 

 

Edited by DoZe
Link to comment
Share on other sites

@AGluk

I add the 29

"I think Microphone should stay Microphone" does not work that way, ext.Mic as LineIn is necessary.

I do not have a guide for you.


@DoZe and @jonny33

ID21 is different. ID21 has HP on Node 22. ID15 has HP on Node 29. The Nodes for Speakers and Mic's are the same.

try this with the mic's:

trial3_CX8200_layoutID_15.zip

  • Thanks 1
Link to comment
Share on other sites

4 minutes ago, MacPeet said:

does not work that way, ext.Mic as LineIn is necessary.

 

But when Microphone is connected to the back - it shows as Microphone, not Line-In.
So only in the front jack it should be detected as Line-In, am I right?

Link to comment
Share on other sites

5 hours ago, MacPeet said:

 

@DoZe and @jonny33

ID21 is different. ID21 has HP on Node 22. ID15 has HP on Node 29. The Nodes for Speakers and Mic's are the same.

try this with the mic's:

trial3_CX8200_layoutID_15.zip

 

@MacPeet

With this one, same reaction as before : Master volume go to the max, no Mic in, via jack connector.

4 hours ago, MacPeet said:

CodecDump from ASUS R503V shows only one internal mic and one external mic.
external mic is configured as LineIn in ManualMode, no SwitchMode

 

this is SwitchMode Mic/ext.Mic(LineIn):

trial4_CX8200_layoutID_15.zip

@MacPeet

 

With trial4, the volume Don't go to the max, when i plug the Headset/mic. And internal Mic shut off automatically, but no sound.

Perhaps it can help you, The Zbook 15uG4 havec 2 internal Mic installed (Each side of webcam)

 

Edited by DoZe
Link to comment
Share on other sites

On 5/29/2019 at 12:54 PM, MacPeet said:

@ammoune78

 

try this, trial1 with ID15 (also try alcid=15 with Mojave!):

 

trial1_IDT_92HD75B3X5_HP_Pavilion_DV6_layoutID15.zip

 

Thank you @MacPeet,

But the given kext didn't worked with layout id 15 with alcid=15 or even 15 on Devices Inject Audio. Here's my codec_dump from linux. I've followed the thread on your website, but all the commands returned errors, couldn't figure out how to go to second step without error. I hope if you can help for that codec to work on Sierra High Sierra and Mojave, but maybe I can't install Mojave, because of the ATI Mobility Radeon HD 4650, so High Sierra is the only OS that I'll keep in this old laptop. If there's something I can try, please let me know, also if you have any suggestion about the DSDT patch that is supposed to work!

 

  

CodecDump.zip

Link to comment
Share on other sites

@ammoune78


You have already posted your codec dump.

 

Dump.zip

 

My guide patch AppleHDA is old. The steps CodecDump, PinConfig, xml's are also needed for AppleALC codec, but nowadays you no longer patch the AppleHDA.
I hope your AppleHDA in S/L/E is still native.
AppleALC works only with native AppleHDA.

 

LayoutId 15 is almost identical to ID3. You reported that the ID3 already worked for you, right?

 

Inject variants:

Inject ID 3 or 15 either ...
... with Clover 3 or 15 + FixHDA
or
bootflag alcid = 3 or alcid = 15
or
... with DSDT/HDEF 03 or (HEX) 0F without FixHDA in the Clover
or
... with DSDT/HDEF without FixHDA in the Clover ...
"Alc-layout-id"
Buffer (0x04)
{
0x03, 0x00, 0x00, 0x00
},
"Layout-id"
Buffer (0x04)
{
0x07, 0x00, 0x00, 0x00
},
...

try this with 3 and 15:

trial2_IDT_92HD75B3X5_HP_Pavilion_DV6_layoutID15.zip

 

post your DSDT.aml for me!

 

@DoZe
currently no further ideas for ext.Mic
@jonny33 has another device, which does not help for your codec.
I think trial2 was good, right? Is this enough for the release?
Maybe we will find a solution later.

  • Like 1
Link to comment
Share on other sites

7 hours ago, MacPeet said:

@AGluk

I add the 29

"I think Microphone should stay Microphone" does not work that way, ext.Mic as LineIn is necessary.

I do not have a guide for you.


@DoZe and @jonny33

ID21 is different. ID21 has HP on Node 22. ID15 has HP on Node 29. The Nodes for Speakers and Mic's are the same.

try this with the mic's:

trial3_CX8200_layoutID_15.zip

I tried this with id 15 the headphones are not getting recognised at all (internal audio ok internal mic ok)

Link to comment
Share on other sites

@jonny33
You have a device other than @DoZe
Your information does not help here.
I viewed and converted your codec_dump.
Your Headphone has Node 22, so the LayoutID 21 by Andres ZeroCross is actually perfect.
The CodecDump from @DoZe has Headphone on Node 29.
LayoutID 15 can thus work with you no HP.

Link to comment
Share on other sites

7 hours ago, MacPeet said:

 

@DoZe
currently no further ideas for ext.Mic
I think trial2 was good, right? Is this enough for the release?
Maybe we will find a solution later.

@MacPeet

 

Yep, Trial2 is Ok for the release. :D

 

PS : a little precision for the Mic problem : When i plug it, in audio preferences, the output section change from "Mic internal" to "Line in" , not "Mic external"

Edited by DoZe
Link to comment
Share on other sites

13 hours ago, MacPeet said:

@ammoune78


You have already posted your codec dump.

 

Dump.zip

 

My guide patch AppleHDA is old. The steps CodecDump, PinConfig, xml's are also needed for AppleALC codec, but nowadays you no longer patch the AppleHDA.
I hope your AppleHDA in S/L/E is still native.
AppleALC works only with native AppleHDA.

 

LayoutId 15 is almost identical to ID3. You reported that the ID3 already worked for you, right?

 

Inject variants:

Inject ID 3 or 15 either ...
... with Clover 3 or 15 + FixHDA
or
bootflag alcid = 3 or alcid = 15
or
... with DSDT/HDEF 03 or (HEX) 0F without FixHDA in the Clover
or
... with DSDT/HDEF without FixHDA in the Clover ...
"Alc-layout-id"
Buffer (0x04)
{
0x03, 0x00, 0x00, 0x00
},
"Layout-id"
Buffer (0x04)
{
0x07, 0x00, 0x00, 0x00
},
...

try this with 3 and 15:

trial2_IDT_92HD75B3X5_HP_Pavilion_DV6_layoutID15.zip

 

post your DSDT.aml for me!

 

 

@MacPeet

No it wasn't my CodecDump, but @polyzargone one.

Yes the AppleHDA is native.

Yep, the ID3 was working on Mountain Lion, Mavericks, Yosemite and El Capitan only, but not working anymore on Sierra or High Sierra.

I've tested them all without any success.

I use @toleda HDEF-SSDT+1.aml, because the DSDT doesn't have a HDEF or AZAL Device, or even Name (_ADR, 0x001B0000), and here attached one!

The DPCIManager shows 2 codecs:

- IDT 92HD75BX                                 0x111D7603

- Lucent/Agere Systems (Unknown)      0x11C11040

But the Linux codec dump shows IDT 92HD75B3X5 

SSDT-HDEF+-1.aml

Link to comment
Share on other sites

@ammoune78

 

With Mountain Lion, Mavericks, Yosemite and El Capitan also with AppleALC or patched AppleHDA?
SSDT is ok, 0F or 03 is ok.
Try without SSDT and Inject only in Clover with FixHDA and/or flag alcid=
Always look in the ioreg after booting and check.

 

Edit:

I have seen, the patch in AppleALC is still on the old device:
8419D411 to 03761D11

I have changed now:

8B19D411 to 03761D11

Maybe this is the mistake.
try this with 3, 11 and 15

 

trial3_IDT_92HD75B3X5_HP_Pavilion_DV6_layoutID3_11_15.zip

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

Hoping I can get some help.  Have Conexant CX20722 audio, i set it to layout 3.  Mic is working, headphones are working, but audio from the internal speakers on my laptop (Dell Inspiron 11 3153) does not work.  I uploaded my problem reporting files to help diagnose what im doing wrong.

debug_1470.zip

 

grabbed the codec dump and tried modifying, but no change from the regular AppleALC.kext results.

 

Looks like Headphone and Internal Speaker have EAPD on 0x2

 

I came up with 

<01771c00 01771d00 01771e16 01771f91 01770c02 01a71c10 01a71d00 01a71ea6 01a71f99 01971c20 01971d10 01971e81 01971f01 01671c30 01671d10 01671e21 01671f01 01670c02>

like i said no sound from internal speakers, audio device does show up as IntSpeakers in Sound preferences 

codec_dump.txt

verbs.txt

Edited by thesuffering
Link to comment
Share on other sites

@thesuffering

 

too many mistakes with you
I stop at this point once.

 

nogo

 

1475478250_.png.ce23ec7ea1a0f503cab909cf61376190.png

 

VoodooHDA + HDADisabler in the system!?
Lilu 1.3.5 in the system. Lilu from my trial is 1.3.7.
Where is AppleALC?
You do not use my trial !!!
Inject 15 in Clover, but FixHDA not set!
Your DSDT.aml in Clover / ACPI / patched / has errors. I can not open it with MaciASL.

Link to comment
Share on other sites

29 minutes ago, MacPeet said:

@thesuffering

 

too many mistakes with you
I stop at this point once.

 

nogo

 

1475478250_.png.ce23ec7ea1a0f503cab909cf61376190.png

 

VoodooHDA + HDADisabler in the system!?
Lilu 1.3.5 in the system. Lilu from my trial is 1.3.7.
Where is AppleALC?
You do not use my trial !!!
Inject 15 in Clover, but FixHDA not set!
Your DSDT.aml in Clover / ACPI / patched / has errors. I can not open it with MaciASL.

I didnt realize VoodooHDA stuck itself all over like that.  Ill get rid of those.

 

I install all my Kexts to L/E, not clover, but have backups of essentials in Clover.  From what i understand since they are in the kext cache they should load from L/E and not Clover, should AppleALC be moved to Clover?

 

DSDT opens fine and compiles fine for me in MaciASL.  Im using version RM-1.31 (252.4).  Its compiling ACPI 6.2a.  I believe its rehabmans fork.

 

Ill set FixHDA, i wasnt aware i was supposed to, sorry!

 

EDIT-I made the changes: got rid of all instances of VoodooHDA, put your Lilu and AppleALC kexts in EFI/Clover/Kexts/Other just to try, added FixHDA_8000 and set to yes/true.  I uploaded new PR files now.

 

debug_20572.zip

Edited by thesuffering
adding new PR files
Link to comment
Share on other sites

AppleALC Lilu works from clover/kexts/other

 

delete AppleALC and Lilu from L/E
delete all VoodooHDA in Clover and L/E and S/L/E
delete HDADisabler or AppleHDADisabler from Voodoo from L/E and S/L/E
rebuilt cache !!!
copy trial AppleALC and Lilu to Clover/kexts/other
AppleHDA in S/L/E must be original

config.plist:
CloverConfigurator/System parameters - Kext Inject on "YES", not "Detect"
Injext layoutID via Clover - 15 + set FixHDA
maybe bootflag alcid=15 (try this)
Inject via DSDT/HDEF set ID in HEX without FixHDA in Clover

Link to comment
Share on other sites

4 minutes ago, MacPeet said:

AppleALC Lilu works from clover/kexts/other

 

delete AppleALC and Lilu from L/E
delete all VoodooHDA in Clover and L/E and S/L/E
delete HDADisabler or AppleHDADisabler from Voodoo from L/E and S/L/E
rebuilt cache !!!
copy trial AppleALC and Lilu to Clover/kexts/other
AppleHDA in S/L/E must be original

config.plist:
CloverConfigurator/System parameters - Kext Inject on "YES", not "Detect"
Injext layoutID via Clover - 15 + set FixHDA
maybe bootflag alcid=15 (try this)
Inject via DSDT/HDEF set ID in HEX without FixHDA in Clover

delete AppleALC and Lilu from L/E .  -DONE
delete all VoodooHDA in Clover and L/E and S/L/E . -DONE
delete HDADisabler or AppleHDADisabler from Voodoo from L/E and S/L/E -I couldnt find any instances of these?
rebuilt cache !!!  -DONE
copy trial AppleALC and Lilu to Clover/kexts/other -Done
AppleHDA in S/L/E must be original -This is original, i backed it up before i ever messed with VoodooHDA and reinstalled it to S/L/E

config.plist:
CloverConfigurator/System parameters - Kext Inject on "YES", not "Detect" -DONE
Injext layoutID via Clover - 15 + set FixHDA -DONE
maybe bootflag alcid=15 (try this) -DONE
Inject via DSDT/HDEF set ID in HEX without FixHDA in Clover -Unsure how to do this?

 

Restarting now and will report on findings and new files shortly

Link to comment
Share on other sites

21 minutes ago, MacPeet said:

AppleALC Lilu works from clover/kexts/other

 

delete AppleALC and Lilu from L/E
delete all VoodooHDA in Clover and L/E and S/L/E
delete HDADisabler or AppleHDADisabler from Voodoo from L/E and S/L/E
rebuilt cache !!!
copy trial AppleALC and Lilu to Clover/kexts/other
AppleHDA in S/L/E must be original

config.plist:
CloverConfigurator/System parameters - Kext Inject on "YES", not "Detect"
Injext layoutID via Clover - 15 + set FixHDA
maybe bootflag alcid=15 (try this)
Inject via DSDT/HDEF set ID in HEX without FixHDA in Clover

all changes made with exception of 

 

delete HDADisabler or AppleHDADisabler from Voodoo from L/E and S/L/E .  -I cant find any instances of these

Inject via DSDT/HDEF set ID in HEX without FixHDA in Clover -Not sure how to do this?  Can you help?

 

Still no audio from external speakers, mute option is also greyed out.

 

new files uploaded.

debug_2576.zip

Edited by thesuffering
Link to comment
Share on other sites

hello @vandroiy2012

 

I have a bit more for the next release this time.

 

ALC1220 - LayoutID 29 (1D) for Z390 Aorus Ultra - Output SP/HP Switchmode

 

new_Resources_alc1220_id29.zip

 

CX8070 (CX11880) - LayoutID 15 (0F) for Lenovo ThinkPad E590

 

new_Device_CX8070_id15.zip

 

CX8200 - LayoutID 15 (0F) for HP ZbooK 15UG4

 

new_Resources_CX8200_id15.zip


I have a Update.

AD1984 - LayoutID 11 (0B) for IBM Lenovo ThinkPad T61/T61p

(Mic's are all working now. Internal Mic, External Mic (as LineIn) and Dock Mic (as LineIn))

 

update_Resources_AD1984_id11.zip

 

can you please added the new codec´s?
 
many thanks
 

  • Like 3
Link to comment
Share on other sites

21 hours ago, thesuffering said:

No sir, still no audio from internal speakers.   I appreciate your help!

 

19 hours ago, thesuffering said:

Still no audio from external speakers, mute option is also greyed out.

 

What exactly?
Internal or external?
What exactly works until now or can be seen in System Preferences / Sound?

 

internal speaker Yes / No
Headphones Yes / No
Internal Mic Yes / No
ext.Mic (LineIn) YES / No

 

Show pictures of system settings / sound here!

Edited by MacPeet
Link to comment
Share on other sites

8 minutes ago, MacPeet said:

 

 

What exactly?
Internal or external?
What exactly works until now or can be seen in System Preferences / Sound?

 

internal speaker Yes / No
Headphones Yes / No
Internal Mic Yes / No
ext.Mic (LineIn) YES / No

 

Show pictures of system settings / sound here!

Sorry, worded that wrong.  I meant internal speakers.  No sound from the speakers inside my laptop.

 

Internal Speaker-No sound, though it shows up below, no sound is made from the speakers.

 

2039199292_ScreenShot2019-06-03at6_07_30AM.png.42f1b5c1db5429b39cf68bd27190a474.png

 

 

Headphones-Yes, I can hear sound and this works

 

912310468_ScreenShot2019-06-03at6_13_29AM.png.c85ebd9bafb33c85ef9844d023421a6a.png

 

 

Internal Mic-Yes, works, tested with Siri

 

796950693_ScreenShot2019-06-03at6_07_38AM.png.377414d812e6e7e8d3af99c481469b51.png

 

 

ext. Mic (LineIn)-No (Vu meter bounces like its working, but it bounces even in a silent room, and no sound picked up from external mic)

 

1023655067_ScreenShot2019-06-03at6_13_41AM.png.04284d2d49453d4dad6d00ed6f088330.png

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...