Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

15 minutes ago, MacPeet said:

@arsradu
Do not you have audio with any of the existing LayoutID's?
Some ID's would have to work partially, because the Nodes 20 for speakers are often the same layout.

 

You are correct. Node 20 is very common and it's also what my motherboard is using. I also have audio with Layout 28, for example (and others too). But the layout itself doesn't match my hardware. There is no Digital Out for example in my case. Also, the inputs are a bit tricky, as well. 

 

Cause my motherboard has a Line In and a dedicated Mic (on the back), and there's also a Mic on the front panel. Which I'm not sure if they can be configured like that. Meaning 2 Mics (Front and Back) and a Line In for the back... Any idea?

Edited by arsradu
Link to comment
Share on other sites

23 hours ago, arsradu said:

Cause my motherboard has a Line In and a dedicated Mic (on the back), and there's also a Mic on the front panel. Which I'm not sure if they can be configured like that. Meaning 2 Mics (Front and Back) and a Line In for the back... Any idea?

I do not have a data sheet or your codec, but as far as I know, all Realtek 8xx codecs have only 2 ADCs, which means you can use only 2 input devices at the same time. You can have the two microphones in the switch mode, or one of the microphones with line-in.

You can try layout 10 and 11.

AppleALC.kext.zip

  • Like 1
Link to comment
Share on other sites

15 minutes ago, wern apfel said:

I do not have a data sheet or your codec, but as far as I know, all Realtek 8xx codecs have only 2 ADCs, which means you can use only 2 input devices at the same time. You can have the two microphones in the switch mode, or one of the microphones with line-in.

You can try layout 10 and 11.

AppleALC.kext.zip

 

Thanks. I guess that's why right now I only have two Line-Ins and no Microphone in Inputs. :) Also, it would help enormously if you could share the resource files you used for this build, so I can compare to what I have right now. I can't test this build right now, but I will test it as soon as I get home and let you know.

 

So, if I got this right, you're saying there is no way to have something like in the screenshot below fully functional, right? Right now I've got two inputs, both configured as Line-in. I don't mind it. I just want to configure this to match the ports mapping as well as possible. :D 

So if this is it, then I'm very happy with the result!

 

Untitled.png.11450fc63ba4bddd9cc3fd505980969b.png

 

By the way, thank you very much for the feedback! Yesterday I spent almost all day trying different things. None of them brought the 3rd Input. :))) And now I know why. It just can't be done. I was expecting to be some limitations with this. I'm surprised it works so well for the Outputs (perfect match, no issues).

Edited by arsradu
Link to comment
Share on other sites

On 9/23/2018 at 6:46 AM, insanelyDeepak said:

@jaymonkey Hi try these versions layout 13, if both fails , i request you to come to traditional ways of test cloverHDA or patched AppleHDA 

 

 

Hi IDP,

 

Unfortunately neither of the test versions of AppleALC worked using layout id 13.

No Audio input or output devices shown in System prefs --> Sound, grey speaker icon in menu bar.

 

Have reverted back to the latest public release of AppleALC (Version 1.3.2) and Layout 3, Everything works fine with Layout 3 except for external Mic.

I'm coming to the conclusion that it's simply not possible to make the external Mic work under MacOS due to the combo headphone/microphone jack configuration.

 

I've been thinking about getting a bluetooth headset which should work fine instead of using my wired headset ...

I appreciate all your effort but don't want to take up any more of your valuable time on this issue.

Having said that i'm happy to test a Patched AppleHDA if you think it has a better chance of working

 

Cheers

Jay

Link to comment
Share on other sites

22 hours ago, arsradu said:

So, if I got this right, you're saying there is no way to have something like in the screenshot below fully functional, right? Right now I've got two inputs, both configured as Line-in. I don't mind it. I just want to configure this to match the ports mapping as well as possible. :D 

So if this is it, then I'm very happy with the result!

 

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

  • Like 1
Link to comment
Share on other sites

Hi all.
At first I want to tell thank you for your great job.

 

I'm trying to add my laptop codec and I didn't succeed till now :|

Actually I don't where's the problem, Below I'm describing what I did:

 

  • Dumped codec from latest Ubuntu (18.04).
  • Extracted pin configs and Calculated codec verbs.
  • Created CX8150 Directory under Resources, including: Info.plist, layout3.xml, PlatformsM.xml
  • Edited PinConfigs.kext/Contents/Info.plist and Added pin configs (Item 244).
  • Added Lilu.kext 1.2.5 in project directory. (I also use version 1.2.5 in my CLOVER/kexts/Other)
  • Built using Xcode 9.4.1.
  • Added the generated kext in clover kexts directory.
  • Added Devices/Audio/Inject=3 in clover config.plist.
  • Reboot.

And finally got no sound. no devices. :(

So I don't know where I did wrong, I also tested with 7 and 11 layout-ids with no succeed.

 

My laptop is ASUS VivoBook Pro N580VD-B.

 

I attached AppleALC/Resources/CX8150, log.txt, ioreg. troubleshooting.zip

Any help? Any idea?

 

Thanks again.

Link to comment
Share on other sites

On 9/16/2018 at 3:25 PM, yobro said:

I'm also having some issues with my ALC887 on Mojave with AppleALC.kext (v.1.3.2) and Lilu.kext (v.1.2.7). No sound and no outputs (or inputs) in System Preferences -> Sound. I only see DisplayPort in System Information -> Sound.

 

Same config.plist (layout-id 1) and kext versions work fine on High Sierra. I boot with -lilubeta -alcbeta on Mojave although I don't think -lilubeta is needed. 

 

alc-layout-id is <01 00 00 00>

layout-id is <07 00 00 00>

 

Values are the same between High Sierra and Mojave.

 

Any advice? Please let me know if any additional information is needed.

Still having this issue, no matter which layout id I try the problem is still the same. I only have DisplayPort audio, no speakers/headphone etc. Any advice?

Link to comment
Share on other sites

On 9/24/2018 at 8:30 PM, jaymonkey said:

 

Hi IDP,

 

Unfortunately neither of the test versions of AppleALC worked using layout id 13.

No Audio input or output devices shown in System prefs --> Sound, grey speaker icon in menu bar.

 

Have reverted back to the latest public release of AppleALC (Version 1.3.2) and Layout 3, Everything works fine with Layout 3 except for external Mic.

I'm coming to the conclusion that it's simply not possible to make the external Mic work under MacOS due to the combo headphone/microphone jack configuration.

 

I've been thinking about getting a bluetooth headset which should work fine instead of using my wired headset ...

I appreciate all your effort but don't want to take up any more of your valuable time on this issue.

Having said that i'm happy to test a Patched AppleHDA if you think it has a better chance of working

 

Cheers

Jay

Hi 
i personally never use AppleALC for test version , you can check my repo , i request you to revert to traditional ways if possible , 

 

Quote

I've been thinking about getting a bluetooth headset which should work fine instead of using my wired headset ...

I appreciate all your effort but don't want to take up any more of your valuable time on this issue.

some time it took more time to fix a codec example ALC887 took 2 years to make perfect version for me 

still im not able to boost audio from certain level without using 3rd party app

 

yes we can fix it and let me know Osx version you have so i can make a patched version 

 

 

30 minutes ago, yobro said:

Still having this issue, no matter which layout id I try the problem is still the same. I only have DisplayPort audio, no speakers/headphone etc. Any advice?

there is another layouts too try all of them which suites you best 

Link to comment
Share on other sites

On 9/25/2018 at 7:30 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

Layout11 is mapped according my mobo , back 3 ports and front 2 ports , back line-in (blue port i never used so just ditched it), also layout 13 is fully auto-switch mode and other layout were according new chipset and input/output ports 

 

Edited by insanelyDeepak
Link to comment
Share on other sites

I'm trying to add 2 new codecs, however I'm having difficulties, and I hope they can help me. The first codec is CS4213, which made several changes in platforms.xml and layout, and I could not get audio. In ioreg I see that the alc-layout-id has been injected, however in the system report does not display the audio device. The other codec is the CX20751 / 2, which runs the audio normally through the internalspeaker and the p2 connector, but the Line-in and Microphone does not work. When extracting the verbs by verbit, I receive the warnings:

 

Codec: Conexant CX20751 / 2
Node 0x13: Amp-In vals count is wrong: values found: 3. expected: 1
Node 0x14: Amp-In vals count is wrong: values found: 3. expected: 1

 

I ask community help to fix these two codecs.

 

 

Files ALC CS4213 and debug.zip

Files ALC CX20751_2.zip

Link to comment
Share on other sites

2 hours ago, insanelyDeepak said:

Hi 
i personally never use AppleALC for test version , you can check my repo , i request you to revert to traditional ways if possible , 

 

some time it took more time to fix a codec example ALC887 took 2 years to make perfect version for me 

still im not able to boost audio from certain level without using 3rd party app

 

yes we can fix it and let me know Osx version you have so i can make a patched version 

 

 

there is another layouts too try all of them which suites you best 

So far I tried 1,2,3,7,11,13,50 and no dice with any of them. Zero outputs (except DisplayPort). Could something else be the problem? 

Edited by yobro
Link to comment
Share on other sites

Hi, i Have an APPLEALC ALC269

 

I have tried all the codecs for my portable codec ALC269 but none of them is working properly ie hdmi audio, microphone and audio PC

 

Mojave and applealc 1.3.2 the latest release

 

EFI

 

https://mega.nz/#!tKYxGASY!XmMixiQtxjP7c1W-ySye8yEcBXFFfa09taFieYqAzeg

Edited by Emanuele-1998
Link to comment
Share on other sites

@ Emanuele 1998

 

Again for all:
- If Inject the LayoutID with CloverConfigurator in config.plist with Audio Inject, then FixHDA must be set (CloverConfigurator / ACPI).
- If Inject the LayoutID is set in the DSDT / HDEF, then without FixHDA.

There is no LayoutID in your DSDT / HDEF, only LayoutID 2 in the config, but FixHDA is missing.

Link to comment
Share on other sites

Problem: Audio on mute, symbol on menubar not correct for ALC285 (should be speaker only, w/o brackets), although mute (use Fn) does display mute on-screen. It seems mute key not working for the menu bar symbol, but it did mute sound.

 

Reporting:

1. Laptop model/Motherboard model    : X1 Carbon 6th 
2. Codec name                                 :  ALC285 (Rover Realtek ALC285 for X1C6th)
3. Layout used                                  :  11 
4. OS X versions you tried                  :  10.13.2
5. Autogenerated Info.plist                 :  (attached)

 

Thanks for your support! 

Info.plist

 

@insanelyDeepak, @MacPeet, @jaymonkey

Could anyone help? thank!

Edited by Ravenstein
Could anyone help? thank!
Link to comment
Share on other sites

On 9/26/2018 at 4:54 PM, insanelyDeepak said:

Layout11 is mapped according my mobo , back 3 ports and front 2 ports , back line-in (blue port i never used so just ditched it), also layout 13 is fully auto-switch mode and other layout were according new chipset and input/output ports 

 

Are you talking about ALC892? If so there are no resources for layout 11 or 13. Since all ALC892 resources have a digital output and arsradus mainboard does not have one, he needs new resources.

Link to comment
Share on other sites

On 9/26/2018 at 1:15 PM, maiconjs said:

I'm trying to add 2 new codecs, however I'm having difficulties, and I hope they can help me. The first codec is CS4213, which made several changes in platforms.xml and layout, and I could not get audio. In ioreg I see that the alc-layout-id has been injected, however in the system report does not display the audio device. The other codec is the CX20751 / 2, which runs the audio normally through the internalspeaker and the p2 connector, but the Line-in and Microphone does not work. When extracting the verbs by verbit, I receive the warnings:

 

Codec: Conexant CX20751 / 2
Node 0x13: Amp-In vals count is wrong: values found: 3. expected: 1
Node 0x14: Amp-In vals count is wrong: values found: 3. expected: 1

 

I ask community help to fix these two codecs.

 

 

Files ALC CS4213 and debug.zip

Files ALC CX20751_2.zip

@insanelyDeepak, @MacPeet@jaymonkey  

Can you help me?

It is not necessary to compile the Kext, just tell where to look for is correcting these codecs.

Link to comment
Share on other sites

9 hours ago, maiconjs said:

@insanelyDeepak, @MacPeet@jaymonkey  

Can you help me?

It is not necessary to compile the Kext, just tell where to look for is correcting these codecs.

sure 

1.first of all make AppleALC working for you, don't alter or make any changes until you find its working perfect for you 

2. layout selection there is plenty of layout already there you must try all those to find best working one like  CX20751/2 and CS4213 is already must try those 

1545306491_ScreenShot2018-09-28at11_04_58AM.thumb.png.b0f56859303536cc563de34af353759f.png

 

 

3. if you find none of version is good enough, then you can make one or request for new one , im here 

 

PS: must use AppleALC Release version 

 

On 9/26/2018 at 11:01 PM, yobro said:

So far I tried 1,2,3,7,11,13,50 and no dice with any of them. Zero outputs (except DisplayPort). Could something else be the problem? 

post your codec_dump i will take a look 

Edited by insanelyDeepak
Link to comment
Share on other sites

On 24 сентября 2018 г. at 5:00 PM, jaymonkey said:

 

Have reverted back to the latest public release of AppleALC (Version 1.3.2) and Layout 3, Everything works fine with Layout 3 except for external Mic.

I'm coming to the conclusion that it's simply not possible to make the external Mic work under MacOS due to the combo headphone/microphone jack configuration.

 

You are almost right but it is possible with VoodooHDA due to special algorithms inside.

Link to comment
Share on other sites

@ Emanuele 1998

What is not there to understand?

 

CloverConfigurator1.thumb.png.90de0169d0fa1da9ba57010ac3c01c64.png

 

CloverConfigurator2.thumb.png.f3fcdc65034e64528ed28331642fb6ef.png


ALC269 has the most finished codecs in the AppleALC:
layout 1 to 11, 13 to 16, 18, 19, 20, 27, 28, 29, 30, 32, 33, 35, 40, 45, 58, 66, 76, 93, 99, 127
Try all in a row!

Link to comment
Share on other sites

×
×
  • Create New...