r/hackintosh • u/ubm_redds • 1h ago
SUCCESS [Tool] TGLDmicJK – internal digital mic working on HP EliteBook 840 G6 (Whiskey Lake, cAVS 1.8 DSP) on macOS Tahoe
github.comWorking mic array for a PDM digital mic wired to the Intel audio DSP (cAVS). I got mine working on an HP EliteBook 840 G6 running macOS Tahoe 26.7.3: a clear internal mic that shows up as a normal "Internal Microphone" and has been stable over many hours and through sleep/wake. It's a fork of TGLDmicEx (itself a fork of TGLDmic) with three fixes I needed, so I'm calling it TGLDmicJK.
How it works
The kext boots Intel's SOF firmware on the audio DSP, captures the PDM mic through it, and feeds the samples into AppleHDA's own Internal Microphone input through a Lilu hook. macOS just sees a normal built-in mic. No virtual device or aggregate device needed.
What I changed vs. upstream
Mic detection under alcid=18**.** The kext looked for an engine named DevShortNameIMic, which doesn't exist with this layout. It now identifies the mic engine by its selector (InternalMic). DSP wouldn't power up. ADSPCS stayed frozen at 0x001c003c and the log said FAIL core0 power up (CPA). The DSP window was returning HDA registers. Setting PPCTL.GPROCEN (bit 30) before touching the DSP fixed it, and the cores now power up in the same order as Linux's SOF driver. Mic died after hours of uptime. The kext allocated 544 KB of contiguous low memory every time the mic started, and after a few hours macOS couldn't find any (FAIL DMA alloc (<4GB contiguous)). It now reserves the buffers once and keeps them.
Tested on (only this machine)
| Laptop | HP EliteBook 840 G6, Core i5-8365U, 12 GB RAM |
|---|---|
| Audio | Realtek ALC215 codec, Intel 8086:9DC8 controller (cAVS 1.8), PCI class 0x040100 |
| macOS | Tahoe 26.7.3 (25G342) |
| OpenCore / Lilu / AppleALC | 1.0.8 / 1.7.2 / 1.9.8 with alcid=18 |
| Speakers | legacy AppleHDA restored with a MyKextInstaller root patch |
It also matches the Comet Lake / Coffee Lake IDs (02C8, A348, 06C8) and Tiger Lake IDs (A0C8, 43C8, 34C8), but I've only tested 9DC8. If you try it on something else, please report back. |
Requirements
- AppleHDA present and working (on Tahoe that means a root patch) with AppleALC giving you an "Internal Microphone"
- Lilu 1.7.2
- Audio DSP enabled in BIOS (check
ioreg -rn HDAS -w0 | grep class-code, you want<00010400>)
Install
Back up your EFI. Put TGLDmicJK.kext in EFI/OC/Kexts/ and remove any existing TGLDmic / TGLDmicEx entry. They share a class name, so they can't load together. In config.plist → Kernel → Add: BundlePath TGLDmicJK.kext, ExecutablePath Contents/MacOS/TGLDmicJK, PlistPath Contents/Info.plist, MinKernel 19.0.0, after Lilu and AppleALC. Add boot arg -tgldmiclilu (and -lilubetaall on a beta macOS). Reboot. Wait about 4 minutes, because a root-patched AppleHDA attaches late. Check it while recording:
ioreg -l -w0 -c TGLDmic | grep -E '"(BootState|HookFills|InjectState|Streaming)"'Healthy: BootState 1, InjectState 2, Streaming Yes, and HookFills climbing. Optional gain: tgldmicgain=<0-400>.
Download
- Source + build script + README: https://github.com/Jeffrey-tech14/TGLDmicJK
- Prebuilt kext: https://github.com/Jeffrey-tech14/TGLDmicJK/releases/tag/0.6.5
- Patch against upstream 0.6.4: Build it yourself with
./build.sh(needs Xcode CLT). The kext is unsigned and boots firmware on your audio DSP, so back up your EFI and use it at your own risk.
Credits
labrouss (TGLDmic), qqaoshi888 (TGLDmicEx), Intel (SOF firmware), Acidanthera (Lilu, MacKernelSDK). Same BSD-3 license as upstream. Test reports on other laptops welcome.
Disclaimer
Made possible using Claude. Good enough for me lol


