Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

One of the main reasons it does not work as it should 

is that it has not been patched for the Laptop in question.

and even if it were there would be a difference according to 

the revision of the codec. an example is ALC269, well I already talked about this a few times.

I thought that you patched for the same laptop, which is the only one has the IDT 76E7 afaik. Please include it in your AppleHDAPatcher

Link to comment
Share on other sites

AppleALC for Conexant CX20590 + HDMI sound works perfect! 1f609.png

 

attachicon.gifScreen Shot 2016-04-11 at 14.18.47.png

 

Added in Clover/kexts, and in config.plist i use Audio Layout = 3

 

Thanks @vit9696 for your great work!! 1f60b.png

 

i wonder you have volume sync issue in menubar.

 

i have always volume max in menubar when booting or wakeup.

 

my codec is Conexant CX20753/4. 

Link to comment
Share on other sites

@vit9696 just wanted to thank you for AppleALC.kext  :thumbsup_anim:

 

I know I am way late to the party but I now have it running under El Capitan and Sierra PB (Using hardware in Signature).

 

I compiled my own builds (One in 10.11, one in 10.12) using an edited PlatformsT.xml.zlib for ALC898 with a layout of 3 added to my Clover Config.plist (I edited it to separate the Speakers and Headphones a while ago to prevent a weird auto-detect issue).

 

Initially when I added -alcbeta to 10.12 I got a panic, this stopped after a couple of reboots (Kext then loaded into cache?) but from reading GitHub this is possibly already known about.

Link to comment
Share on other sites

I have some trouble adding my own codec : when I use LayoutID=1 it works and when use LayoutID=12 it doesn't (it even messes up my HDMI audio enabled by a frame buffer patch ...)

 

I attached my files below and here is what I did to add Layout12 :

- Realtek ALC283 already existe so I went directly to Ressources/ALC283/ and added my files

- layout1.xml renamed in layout12.xml, open and modified (LayoutID=12), compressed to layout12.xml.zlib

- Platforms1.xml renamed in Platforms12.xml, compressed to Platforms12.xml.zlib

- info.plist modified under my custom entry (Layouts : Id=12,path=layout12.xml.zlib & Platforms : Id=12, path=Platforms12.xml.zlib)

- PinConfig.kext/Info.plist modified under my custom entry (LayoutID=12)

- HDEF layout via SSDT injection modified ("01 00 00 00" to "0C 00 00 00")

 

LayoutID=12 injection is correct in "IOReg" & "About this Mac", but no device detected.

 

Any advise is welcome, I really don't see what is wrong !

 

 

I have another question : How do you see boot log in 10.12 ? Console doesn't display it by default on my build anymore  !!!

AppleALC283-01&12.zip

Link to comment
Share on other sites

From what I know about it (Not much!), did you compile the kext in debug mode and also add -alcdbg to the boot arguments?

kext in debug mode = Yes

-alcdbg boot arg = Yes

 

I even added -alcbeta for 10.12 ... when I boot verbose I see a lot of ALC: (DEBUG) lines but I can't find them in the log ...

Link to comment
Share on other sites

Just updated to 10.11.6 final and had audio without any input from me  :thumbsup_anim:

 

 

In theory, could it also be used to patch the Info.plist of AppleUSBXHCIPCI.kext (Present in IOUSBHostFamily.kext)?

 

I have to change XHC1 to XHC to get all my USB 3.0 ports to show up and could never figure out if Clover could do this for me.

 

From reading the FAQ I guess this isn't possible as it's a USB kext.

Link to comment
Share on other sites

I have another question : How do you see boot log in 10.12 ? Console doesn't display it by default on my build anymore !!!

Hello there,

 

In order to access the boot log in MacOS Sierra follow the steps below.

 

1) Open the terminal application.

 

2) Type in, sudo log show.

 

Best regards.

  • Like 1
Link to comment
Share on other sites

Thanks !!!

 

And here it come : a 15 days long log !!!

 

I miss the old Console ! 

 

EDIT : 1 GB of plain text 

 

Anyone knows how to keep only the "kernel" entries ?  for ALC DEBUG entries :

log show --predicate 'eventMessage contains "AppleALC: (DEBUG)"'
Link to comment
Share on other sites

I have some trouble adding my own codec : when I use LayoutID=1 it works and when use LayoutID=12 it doesn't (it even messes up my HDMI audio enabled by a frame buffer patch ...)

Platforms12.xml.zlib does not load ... I don't know why ... 

2016-07-19 11:12:19.575528+0200 0x176      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) config @ policy hit

2016-07-19 11:12:24.797763+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived layout
2016-07-19 11:12:24.807966+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:283:100003
2016-07-19 11:12:24.817943+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ selecting from 3 files
2016-07-19 11:12:24.827661+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 3/1
2016-07-19 11:12:24.837239+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout B/1
2016-07-19 11:12:24.846633+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 1/1
2016-07-19 11:12:24.855676+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) Found layout at 2 index
2016-07-19 11:12:24.894545+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived paltform
2016-07-19 11:12:24.904016+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:283:100003
2016-07-19 11:12:24.913306+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ selecting from 3 files
2016-07-19 11:12:24.922601+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 3/1
2016-07-19 11:12:24.931915+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout B/1
2016-07-19 11:12:24.941193+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 1/1
2016-07-19 11:12:24.950304+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) Found platform at 2 index
2016-07-19 11:12:26.091969+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived layout
2016-07-19 11:12:26.091974+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:283:100003
2016-07-19 11:12:26.091976+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ selecting from 3 files
2016-07-19 11:12:26.091978+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 3/1
2016-07-19 11:12:26.091980+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout B/1
2016-07-19 11:12:26.091981+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 1/1
2016-07-19 11:12:26.091984+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) Found layout at 2 index
2016-07-19 11:12:26.111153+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived paltform
2016-07-19 11:12:26.111158+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:283:100003
2016-07-19 11:12:26.111160+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ selecting from 3 files
2016-07-19 11:12:26.111162+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 3/1
2016-07-19 11:12:26.111164+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout B/1
2016-07-19 11:12:26.111165+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 1/1
2016-07-19 11:12:26.111168+0200 0x1a9      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) Found platform at 2 index
2016-07-19 11:15:41.334152+0200 0x72       Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) config @ boot arguments disabled 0, debug 1
2016-07-19 11:15:44.408018+0200 0x174      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) config @ policy hit

2016-07-19 11:15:49.639000+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived layout
2016-07-19 11:15:49.648688+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:283:100003
2016-07-19 11:15:49.658171+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ selecting from 3 files
2016-07-19 11:15:49.669530+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 3/C
2016-07-19 11:15:49.679061+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout B/C
2016-07-19 11:15:49.688463+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 1/C
2016-07-19 11:15:50.856180+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived layout
2016-07-19 11:15:50.856186+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:283:100003
2016-07-19 11:15:50.856189+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ selecting from 3 files
2016-07-19 11:15:50.856192+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 3/C
2016-07-19 11:15:50.856195+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout B/C
2016-07-19 11:15:50.856198+0200 0x1a6      Default     0x0                  0      kernel: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 1/C
Link to comment
Share on other sites

i wonder you have volume sync issue in menubar.

 

i have always volume max in menubar when booting or wakeup.

 

my codec is Conexant CX20753/4. 

What ressources do you use ?, I had a similar issue on my E6400

Link to comment
Share on other sites

Did you solved issue?

 

I use resource.xml that is created by mirone

 

나의 LG-F410S 의 Tapatalk에서 보냄

Yes, i've solved that issue, i thought you are using AppleALC resources because you post here, no idea about mirone resources.

  • Like 1
Link to comment
Share on other sites

Yes, i've solved that issue, i thought you are using AppleALC resources, no idea about mirone resources.

I want your codec name and xml file.

 

I reach my limit about this issue. I dont have no idea.

 

나의 LG-F410S 의 Tapatalk에서 보냄

Yes, i've solved that issue, i thought you are using AppleALC resources because you post here, no idea about mirone resources.

 

 

http://www.insanelymac.com/forum/topic/290167-patched-applehda-for-idt92hd87b13/

 

this codec?

Link to comment
Share on other sites

No ,it was the IDT 92HD71B7 codec, see here

 

thank you.

 

 

hello

i have patched couple of Connexant Codecs but never have this kind of issue 

 

can you post resources ??

 

i send you message now. because this codec needs more develop. and maybe need many post.

 

thank you.

Link to comment
Share on other sites

I want your codec name and xml file.

 

I reach my limit about this issue. I dont have no idea.

I had a script to patch my codec, but i can't find it. If you upload working resources i will try to make a test sample for you.

Link to comment
Share on other sites

Try it without the dummy kext only clovers on the fly patch, we have to figure it out if it 's the same issue, i hope i did it right

attachicon.gifAppleHDA.kext_CX20753:4.zip

You want to know that only use clover fly bin patch without dummy? Maybe we cant get sound. You just want to check sound icon is max?

 

나의 LG-F410S 의 Tapatalk에서 보냄

Link to comment
Share on other sites

I'm not sure what you mean, i guess you use the dummy kext and the binary patch for the codec, so remove the dummy kext and put the kext i've uploaded @/S/L/E and see if it works as it should.

 

no lucky. also i saw your patched kext. layout, platform.xml. i already tested source xml. :sick: .

Link to comment
Share on other sites

×
×
  • Create New...