• Become a Premium Member for $25/year with no ads to improve your community experience. Upgrade to Pro Account for faster response and no wait times!

ACL295 - Headphone do not work, trying to fix

hoaugtran

New member
Joined
Jul 26, 2023
Messages
15
Bootloader
  1. OpenCore (UEFI)
Mac
  1. iMac
Mobile Phone
  1. Android
  2. iOS
Hi everybody. Wish everyone have a happy new day

Today I created this Topic to ask for everyone's help in Fixing Headphones with ALC295. I have tried all the layout-ids and I have compiled them all in the following picture:


image.png.a659ff02a40561d3ad0d59c89cab8d01.png

Like the photo above. Currently only layouts 3,11,24 have sound when headphones are plugged in. but lost the Speaker or Mic. I searched a few forums and found the following macOS daemon tool:

ALC295PlugFix.zip27.91 kB · 0 downloads

When using this my Headphones work. I tried diving into the ALC295-Plug-Fix tool and found that it configures Node 0x19 to Param 0x24 using SET_PIN_WIDGET_CONTROL. So I tried converting them to Pinconfig: 01970724 and adding it to Pinconfig in the current AppleALC.kext but it didn't work. I couldn't use the headphones until I used the ALC295-Plug-Fix tool. But I realized that it doesn't sound really good (because I'm a music maker). And I also wanted a more permanent fix, so I learned how to Build Layout-id.

image.png.9c038e7e55a801de8c42f556c68e59fb.png

Then

I tried comparing them with each other and found that Layout-id 11 has the best headphone sound. Therefore, I came up with the idea of combining Layout-id 77 and Layout-id 11 together because Layout-id 77 can use Speaker and Mic, and Layout-id 11 can use Headphones. Here's what I tried:

I followed this page: https://github.com/5T33Z0/AppleALC-Guides/tree/main/AppleALC_Layout-ID to Build Layout-id, to understand the steps to build AppleALC kext and to understand it too. Followed the above guide and I dumped codec_dump.txt containing information about my codec and codec_dump.png a visual representation of the data inside the codec dump:

codec_dump.txt Original codec_dump

Codec-Dump-Dec.txt Version convert Node from Hex to Decimal

And a visual representation of the data inside the codec dump:
image.thumb.png.8e7fd75c79a0ceb94de0471f97d0b3f4.png


I tried reading the above diagram in combination with opening Platform11.xml and Platform77.xml for comparison and realized that:

- Int Speaker is: 20 - 2 ( in 77 )
- Headphones: 33 - 2 ( in 11 )
- Int Mic: 8 - 35 - 18 (in 77)

So I edited Platform11.xml as follows:

Platforms11.xml4.27 kB · 0 downloads

image.thumb.png.cc9d63768d4bf64fbef98629394fb967.png


I then edited Layout 11.xml like this: ( combine Layout-id 11 with Layout-id 77 )


image.png.e5b7c377c83216115e30ce3daac1ab2a.png

Finally, for PinConfig. I use PinConfigurator software to edit PinConfig. Follow the Build AppleALC guide in OCLittle and this Guide: https://osxlatitude.com/forums/topic/1946-complete-applehda-patching-guide/ to know how to understand and fix that PinConfig. After I merged the PinConfig of Layout-id 77 and Layout-id 11 and deleted the duplicate values. I got the following values:

Quote
01271C30 01271D01 01271EA6 01271FB7 01371CF0 01371D00 01371E00 01371F40 01471C10 01471D01 01471E17 01471F90 01470C02 01671CF0 0 1671D00 01671E00 01671F40 01771CF0 01771D00 01771E00 01771F40 01871CF0 01871D00 01871E00 01871F40 01971C70 01971D20 01971EAB 019 71F02 01A71CF0 01A71D00 01A71E00 01A71F40 01B71CF0 01B71B00 01B71E00 01B71F40 01D71CF0 01D71D00 01D71E00 01D71F40 01E71CF0 01E71D 00 01E71E00 01E71F40 02171C30 02171D10 02171E2B 02171F02 02170C02


image.png.d8165c3523d5ef0c38762f8af4ef2fd2.png


But unfortunately even for them. My headphones still don't work. Only Speaker and Mic work. If I want Headphones to work. I still have to use ALC295-Plug-Fix.

I don't know where I went wrong. If you know, please help me. Thank you very much <3.
 
Hi everybody. Wish everyone have a happy new day

Today I created this Topic to ask for everyone's help in Fixing Headphones with ALC295. I have tried all the layout-ids and I have compiled them all in the following picture:


image.png.a659ff02a40561d3ad0d59c89cab8d01.png

Like the photo above. Currently only layouts 3,11,24 have sound when headphones are plugged in. but lost the Speaker or Mic. I searched a few forums and found the following macOS daemon tool:

ALC295PlugFix.zip27.91 kB · 0 downloads

When using this my Headphones work. I tried diving into the ALC295-Plug-Fix tool and found that it configures Node 0x19 to Param 0x24 using SET_PIN_WIDGET_CONTROL. So I tried converting them to Pinconfig: 01970724 and adding it to Pinconfig in the current AppleALC.kext but it didn't work. I couldn't use the headphones until I used the ALC295-Plug-Fix tool. But I realized that it doesn't sound really good (because I'm a music maker). And I also wanted a more permanent fix, so I learned how to Build Layout-id.

image.png.9c038e7e55a801de8c42f556c68e59fb.png

Then

I tried comparing them with each other and found that Layout-id 11 has the best headphone sound. Therefore, I came up with the idea of combining Layout-id 77 and Layout-id 11 together because Layout-id 77 can use Speaker and Mic, and Layout-id 11 can use Headphones. Here's what I tried:

I followed this page: https://github.com/5T33Z0/AppleALC-Guides/tree/main/AppleALC_Layout-ID to Build Layout-id, to understand the steps to build AppleALC kext and to understand it too. Followed the above guide and I dumped codec_dump.txt containing information about my codec and codec_dump.png a visual representation of the data inside the codec dump:

codec_dump.txt Original codec_dump

Codec-Dump-Dec.txt Version convert Node from Hex to Decimal

And a visual representation of the data inside the codec dump:
image.thumb.png.8e7fd75c79a0ceb94de0471f97d0b3f4.png


I tried reading the above diagram in combination with opening Platform11.xml and Platform77.xml for comparison and realized that:



So I edited Platform11.xml as follows:

Platforms11.xml4.27 kB · 0 downloads

image.thumb.png.cc9d63768d4bf64fbef98629394fb967.png


I then edited Layout 11.xml like this: ( combine Layout-id 11 with Layout-id 77 )


image.png.e5b7c377c83216115e30ce3daac1ab2a.png

Finally, for PinConfig. I use PinConfigurator software to edit PinConfig. Follow the Build AppleALC guide in OCLittle and this Guide: https://osxlatitude.com/forums/topic/1946-complete-applehda-patching-guide/ to know how to understand and fix that PinConfig. After I merged the PinConfig of Layout-id 77 and Layout-id 11 and deleted the duplicate values. I got the following values:




image.png.d8165c3523d5ef0c38762f8af4ef2fd2.png


But unfortunately even for them. My headphones still don't work. Only Speaker and Mic work. If I want Headphones to work. I still have to use ALC295-Plug-Fix.

I don't know where I went wrong. If you know, please help me. Thank you very much <3.
What's wrong with using Plug Fix? Its required by several Audio Codecs.
 
What's wrong with using Plug Fix? Its required by several Audio Codecs.
Thanks for reply me. ALC Fix is good. But im trying to find a more permanent solution. Instead of using ALC Fix as a 3rd party, I want to add the fix to AppleALC.kext. I'm slowly learning it but I'm stuck
 
Hi I also have issues with alc295 and the combo jack port on my Acer Nitro 5 laptop, I have tried everything I could including creating my own layout but it didn't worked.

I believe the solution resides in good pinconfigs and/or the correct pin widget controls sent at specific events (plug/unplug).

I made a post sharing what I found so far.

If you find something please share. I hope we'll figure out a solution leading to a functional AppleALC kext layout that works out of the box. If you have any question I'm happy to help as much as I can.
 
The best fix as of now is using JackFix. If either of you two are ready to tests, a new fix can be updated in the original thread.

EDIT:
@hoaugtran and @iwissem the guide has been updated as of today. Please test it and report. Thanks
 
Last edited:
The best fix as of now is using JackFix. If either of you two are ready to tests, a new fix can be updated in the original thread.

EDIT:
@hoaugtran and @iwissem the guide has been updated as of today. Please test it and report. Thanks
Ok ill try it asap and tell you if it works on the right thread

Thread 'Audio Distortion when using Headphones on Laptops [Clover/OpenCore]'
https://elitemacx86.com/threads/aud...ng-headphones-on-laptops-clover-opencore.185/
 

Forum statistics

Threads
1,935
Messages
18,091
Members
27,832
Latest member
klklkllkl