Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

Just now, Andres ZeroCross said:

Thanks for "thing" in my email :D

I will check your codec dump.txt. I have a job to do. Just write your notebook model. 

 

Ok. Don't worry. In fact, I don't need the microphone on MacOS.

 

My notebook is Lenovo P40 Yoga, model number 20GQ-CTO1WW.

Link to comment
Share on other sites

18 minutes ago, zerobokoo said:

 

Ok. Don't worry. In fact, I don't need the microphone on MacOS.

 

My notebook is Lenovo P40 Yoga, model number 20GQ-CTO1WW.

Use this config.plist, replace the old ones.. Then use this AppleALC.kext and replace the old ones. 

Reboot and check your internal mic, and upload your IOREG Output

config.plist

AppleALC.kext.zip

Link to comment
Share on other sites

To get the audio jack work without dsdt, get the latest AppleALC1.3.4, and modify your config.plist for layout-id 17 as follows.

Big Thanks to MacPeet for the new AppleALC.

<Devices>
<key>Audio</key>
<dict>
<key>Inject</key>
<string>No</string>
<key>ResetHDA</key>
<true/>
</dict>

<key>Properties</key>
<dict>
<key>PciRoot(0x0)/Pci(0x1f,0x3)</key>
<dict>
<key>layout-id</key>
<data>
EQAAAA==
</data>
</dict>
</dict>

Link to comment
Share on other sites

10 hours ago, Andres ZeroCross said:

You need CodecCommander.kext in Library/Extensions and use SSDT.aml or custom info.plist of codeccommander to set Pin Widget of your External Mic

 

I have CX8200 chipset, and I have internal speakers and HDMI audio working, but my jack audio is not

 

I'm unsure, what to modify and how. 

 

My codec dumps are the following, using linux. 

cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump0.txt

cat /proc/asound/card0/codec#2 > ~/Desktop/codec_dump2.txt
 

 

codec_dump0.txt

codec_dump2.txt

Edited by sweet
Link to comment
Share on other sites

On 2/8/2019 at 6:48 PM, rottenpants said:

 

Sorry for the delay yesterday I received my wifi/bt card to install on my laptop :) got at least wifi working.

 

So my full specs are:

 

Laptop Toshiba Kira 107 

CPU: intel i7 5500u

GPU: intel hd5500

Ram: 8GB

Sound: Conexant CX 20751_2

 

My clover file is below with all the files you requested

 

Thank you for taking your time to help me :)

CLOVER.zip

IORegistry.ioreg.zip

Did your audio working right now?

 

Link to comment
Share on other sites

Thanks for your work!

some questions and ideas about "Apply Fix"  option

1) Line Output must be renamed to Int Speaker ((014)71E10) to make Headphones Autodetect work correctly

2) First Mic need to have properties (018)71EA0 (018)71F91 internal and unknown to enable DSP Noise Reduction

3) Second Mic - to Line in (019)71E80 because Ext Mic does not work on Hackintoshes

4) AFAIK there is no need to sort groups in order 10 20 30 etc because default G and P numbering work OK

tested with AD1988b, ALC 887, 888, 892, 1150 and several others

 

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

2 hours ago, Rodion2010 said:

Thanks for your work!

some questions and ideas about "Apply Fix"  option

1) Line Output must be renamed to Int Speaker ((014)71E10) to make Headphones Autodetect work correctly

2) First Mic need to have properties (018)71EA0 (018)71F91 internal and unknown to enable DSP Noise Reduction

3) Second mic - to Line in (019)71E80 because Ext Mic does not work on Hackintoshes

4) AFAIK there is no need to sort groups in order 10 20 30 etc because default G and P numbering work OK

tested with AD1988b, ALC 887, 888, 892, 1150 and several others

Thanks for your feedback. Can you please use your sanitize method on the attached file and post back the verbs for me to examine.

 

Here are the current verb sanitize rules (from verbit):

  1. Remove 0x411111f0 / 0x400000f0
  2. Remove CD at INT ATAPI
  3. 71c - Index should always be 0
  4. 71c - Group should be unique
  5. 71d - Set all Misc to 0 (Jack Detect)
  6. 71f - Location for Front Panel change 2 to 1

 

So you're saying number 4 is not necessary? Anything else besides your additions?

 

Rodion2010.txt

Edited by headkaze
Link to comment
Share on other sites

1614620403_2019-02-100_28_45.png.4037079b98f982677cf9a4761ad3aae8.png

here is an example from real Mac layout=10

two speakers can have the same Group G=4 with different P=0 and P=1

i think there is no need to modify these data at all, codec defaults are OK for most cases

 

Color and location (front/back) seem to be "cosmetic" only, they do not modify any functionality 

  • Like 1
Link to comment
Share on other sites

@Rodion2010 thanks again for your feedback. I have changed the verb sanitize rules.

 

Can you please try Pin Configurator v2.0.1 and let me know if it works correctly now?

 

Current verb sanitize rules:

  1. Remove 0x411111f0 / 0x400000f0
  2. Remove CD at INT ATAPI
  3. 71c - Index should always be 0 (No need - Rodion2010)
  4. 71c - Group should be unique (No need - Rodion2010)
  5. 71d - Set all Misc to 0 (Jack Detect)
  6. 71f - Front Panel change Location from 2 to 1 (Cosmetic only - Rodion2010)
  7. 71e - Line Out must be set to Speaker for Headphone autodetect to work correctly (Rodion2010)
  8. 71e / 71f - First Microphone Port set to Internal + Jack / Connector set to Unknown (Enables DSP Noise Reduction - Rodion2010)
  9. 71e - Second Microphone Device set to Line In / Connector set to Unknown (Ext Mic doesn't work on Hackintoshes - Rodion2010)
Edited by headkaze
  • Like 1
Link to comment
Share on other sites

50 minutes ago, headkaze said:

@Rodion2010 thanks again for your feedback. I have changed the verb sanitize rules.

Can you please try Pin Configurator v2.0.1 and let me know if it works correctly now?

it is impossible to check all the data in a short time

but it looks much better now

1716023416_2019-02-102_15_39.png.f1d151c7a29dca326dab489c893be3f3.png

 

  • Like 1
Link to comment
Share on other sites

@vit9696 i can confirm with Lilu.kext 1.3.3 + AppleALC 1.3.5 with all available layoutiD Release version Audio for ALC256 is stop working,, Then i replace with Lilu.kext 1.3.1 + AppleALC.kext 1.3.4 then audio is back. But i can't give you the log. Because i Remote the Notebook with Anydesk, it's so complicated

@rottenpants maybe your case is same like this. Try to use Lilu.kext 1.3.1 + AppleALC.kext 1.3.4. Then upload your IOREG.

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

Update :
Use Lilu.kext 1.3.3 (release version) + AppleALC.kext 1.3.4 (Release version) audio is working but with Lilu.kext 1.3.3 (release version) + AppleALC.kext 1.3.5 (Release version) with all available LayoutID then ALC256 doesn't work. Sorry i can't attach the log. Just for information, because i remote the system. I am not near the device

Link to comment
Share on other sites

10 hours ago, headkaze said:

Pin Configurator v2.0 Released

 

link

Thanks good work 

 

6 hours ago, headkaze said:

@Rodion2010 thanks again for your feedback. I have changed the verb sanitize rules.

 

Can you please try Pin Configurator v2.0.1 and let me know if it works correctly now?

 

Current verb sanitize rules:

  1. Remove 0x411111f0 / 0x400000f0
  2. Remove CD at INT ATAPI
  3. 71c - Index should always be 0 (No need - Rodion2010)
  4. 71c - Group should be unique (No need - Rodion2010)
  5. 71d - Set all Misc to 0 (Jack Detect)
  6. 71f - Front Panel change Location from 2 to 1 (Cosmetic only - Rodion2010)
  7. 71e - Line Out must be set to Speaker for Headphone autodetect to work correctly (Rodion2010)
  8. 71e / 71f - First Microphone Port set to Internal + Jack / Connector set to Unknown (Enables DSP Noise Reduction - Rodion2010)
  9. 71e - Second Microphone Device set to Line In / Connector set to Unknown (Ext Mic doesn't work on Hackintoshes - Rodion2010)

 all works fine tested with ALC887,ALC298,ALC255,ALC256,ALC299,ALC290,ALC294,ALC295,ALC288,ALC235,ALC233 ...

 

 

 

Edited by insanelyDeepak
  • Like 2
Link to comment
Share on other sites

8 hours ago, Rodion2010 said:

Thanks for your work!

some questions and ideas about "Apply Fix"  option

1) Line Output must be renamed to Int Speaker ((014)71E10) to make Headphones Autodetect work correctly

2) First Mic need to have properties (018)71EA0 (018)71F91 internal and unknown to enable DSP Noise Reduction

3) Second Mic - to Line in (019)71E80 because Ext Mic does not work on Hackintoshes

4) AFAIK there is no need to sort groups in order 10 20 30 etc because default G and P numbering work OK

tested with AD1988b, ALC 887, 888, 892, 1150 and several others

 

thank you these changes were neccessary and missing in old pinconfigurator app so i was doing all manually 

 

  • Like 2
Link to comment
Share on other sites

10 minutes ago, insanelyDeepak said:

it's better to use this app now 

You're right,, it will decrease time to make resource for AppleALC :D

This is codec dump ALC256 from Acer Swift 3 (SF314-54G). Yes, if you read the codec Dump, we can't see device Fixed Internal Mic and Jack External mic. And with this app, we can only see Internal Speaker and Headphone. No other device output, i think we can activate internal mic or external mic with try another Node ID

image.png.6a8f5abc10fefb7a8ad87c06741db679.png

codec_dump.txt

Edited by Andres ZeroCross
Link to comment
Share on other sites

52 minutes ago, Andres ZeroCross said:

You're right,, it will decrease time to make resource for AppleALC :D

This is codec dump ALC256 from Acer Swift 3 (SF314-54G). Yes, if you read the codec Dump, we can't see device Fixed Internal Mic and Jack External mic. And with this app, we can only see Internal Speaker and Headphone. No other device output, i think we can activate internal mic or external mic with try another Node ID

image.png.6a8f5abc10fefb7a8ad87c06741db679.png

codec_dump.txt

exactly it could reduce time , but still few things you still have to do manually

 

 old vs new both seems fine 

1629821599_ScreenShot2019-02-10at12_42_51PM.thumb.png.dbc8a4f73f42844702b9627c912573d9.png

 

 

 

your codec_dump is strange no mic nodes there 

 

 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...