Jump to content
vit9696

AppleALC — dynamic AppleHDA patching

4,711 posts in this topic

Recommended Posts

Advertisement

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

Share this post


Link to post
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

Share this post


Link to post
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 

Share this post


Link to post
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

Share this post


Link to post
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

 

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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 

 

Share this post


Link to post
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

Share this post


Link to post
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 

 

 

Share this post


Link to post
Share on other sites
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 
 
 
Yes, it's from acer swift 3. Dumped from Linux Ubuntu

Sent from my Mi Note 2 using Tapatalk

Share this post


Link to post
Share on other sites
2 hours ago, Andres ZeroCross said:

Yes, it's from acer swift 3. Dumped from Linux Ubuntu

Sent from my Mi Note 2 using Tapatalk
 

you must report a bug at ALSA Driver, so update could fix that , i remember same issue XPS9550 when it released but after few months it fixed 

 

 

Share this post


Link to post
Share on other sites
6 hours ago, Andres ZeroCross said:

@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.

 

Tried 2 different combinations: ALC 1.3.4 + Lilu 1.3.1 and ALC 1.3.4 + Lilu 1.3.3 but same results no sound :( 

 

 

IOReg.ioreg

Share this post


Link to post
Share on other sites
 
Tried 2 different combinations: ALC 1.3.4 + Lilu 1.3.1 and ALC 1.3.4 + Lilu 1.3.3 but same results no sound  
 
 
IOReg.ioreg
It's interesting. Can you send me Whatsapp??? I will help you. Send me private message in +6281398934647 with whatsapp

Sent from my Mi Note 2 using Tapatalk

Share this post


Link to post
Share on other sites
6 hours ago, insanelyDeepak said:

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

 

really we need only the "verbs" that are changed

so

Configdata=01471E10 01871EA0 01871F91 01971E81 01470C02

will work with almost any Realtek ALC :)

Share this post


Link to post
Share on other sites
5 hours ago, insanelyDeepak said:

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

 

 

 

what exactly? maybe we can include these to auto-fix in the future?

Share this post


Link to post
Share on other sites
On 2/8/2019 at 10:51 PM, Andres ZeroCross said:

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

 

I confirm that now the internal mic works! Thank you!

 

Here is new IOREG

 

 

p40yoga_feb10.ioreg.zip

Share this post


Link to post
Share on other sites
55 minutes ago, Rodion2010 said:

really we need only the "verbs" that are changed

so

Configdata=01471E10 01871EA0 01871F91 01971E81 01470C02

will work with almost any Realtek ALC :)

correct but actually it depends few realtek codec needs whole config data to override 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×