seven-of-eleven / Lenovo-ThinkPad-X1C7-OC-Hackintosh

OpenCore configuration for Lenovo ThinkPad X1C7 for MacOS
29 stars 6 forks source link

Making a new ALC285 layout for 7th gen #10

Open penholderu opened 1 year ago

penholderu commented 1 year ago

I finally had the time and the balls to go ahead and make a new layout! yay?

I had some problems with the layout 71, mainly, i) headphone sometimes goes all weird, sleeps solves it for a while. ii) in-line mic doesnt work. iii) internal mic doesnt work

with layout 88, I had a better success with in-line mic and headphone consistency but there were no double speakers in it.

So, I followed this particular guide: https://github.com/5T33Z0/AppleALC-Guides/tree/main/AppleALC_Layout-ID

Platform71.xml is absolutely correct for our codec. All nodes are correctly configured.

So it seems that the magic will be in pin configuration. Screenshot 2022-10-31 at 16 15 33 This is the default configuration from codec dump. (After removing disabled devices and using predefined fixes.) This config works pretty good, removes first two problems. Although we still have two speaker outputs and no luck with the internal microphone. Screenshot 2022-10-31 at 16 57 01 Screenshot 2022-10-31 at 16 57 19 For making a 4 channel speaker setup, I tried to put speakers into same group(G) with same number. There were still 2 speakers and they didnt work together. Also sound was distorted somehow.

For adding internal microphone to pin configurator, I used the values from layout 71 and added a second input. It had the correct nodes, also didnt work.

Strange part is, there is only one input when I use the codec_dump.txt. I created another dump with opencore debug and it is still the same image But as you can see from the schematic, there are 3 inputs(red circles). Other notes regarding the schematic, Node 20 is top speakers and they work together with jack detection. Node 23 is bottom speakers. Screenshot 2022-10-31 at 17 26 24 Maybe they can work to make two speakers in 4 channel.

So I am out of ideas, our schematic looks very different than the one in the guide and I have no deep knowledge about any of it.

Yet I believe this version that I compiled works better than layout 71. Here is the kext if you want to try it AppleALC-1.7.6-RELEASE.zip

Layout ID is 77

Let me know if you have any ideas

not-nullptr commented 1 year ago

this was the exact issue i was having while attempting to make an alc285 layout for the x1c7, so at least you're not alone?