Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,371 posts in this topic

Recommended Posts

Edit: Yup, that's the codec I want to find. I wonder why RM was able to dump it ?

It was not RehabMan who extracted this codec_dump, was @b101, RehabMan helped him with settings in your config file, I forgot to change HDAS to HDEF a silly mistake, but after that AppleHDA work, so RehabMan get CX20724 files that I had patched and added to your Github repository.

 

EDIT: sorry for the Off Topic.

  • Like 1
Link to comment
Share on other sites

Has anyone gotten 887 or any other codec + HD4600 HDMI working?
My codec (887) works but not the HDMI audio of HD4600. Its like, its not seeing codec of the iGPU. That what the log states.

AppleALC: (DEBUG) alc @ found 2u audio controllers
AppleALC: (DEBUG) alc @ validating 0u controller 8086:412:6
AppleALC: (DEBUG) alc @ comparing to 0u mod 8086:8CA0
AppleALC: (DEBUG) alc @ comparing to 1u mod 8086:C0C
AppleALC: (DEBUG) alc @ comparing to 2u mod 8086:8D20
AppleALC: (DEBUG) alc @ comparing to 3u mod 8086:412
AppleALC: (DEBUG) alc @ found mod for 0u controller
AppleALC: (DEBUG) alc @ validating 1u controller 8086:C0C:6
AppleALC: (DEBUG) alc @ comparing to 0u mod 8086:8CA0
AppleALC: (DEBUG) alc @ comparing to 1u mod 8086:C0C
AppleALC: (DEBUG) alc @ found mod for 1u controller
AppleALC: (DEBUG) alc @ applying patches for 2u kext
AppleALC: (DEBUG) alc @ applying 0u patch for 2u kext
AppleALC: (DEBUG) mach @ getRunningPosition <ptr> of memory 69000u size
AppleALC: (DEBUG) alc @ applying patches for 2u kext
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleLPC
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleSMBusPCI
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleOSXWatchdog
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.vecLib.kext
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOAudioFamily
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOHDAFamily
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleHDAController
AppleALC: (DEBUG) patcher @ caught the right kext at <ptr>, invoking handler
AppleALC: (DEBUG) mach @ aslr/load slide is 0x<ptr>
AppleALC: (DEBUG) alc @ failed to find a suitable codec, we have nothing to do
AppleALC: (DEBUG) alc @ applying patches for 1u kext
AppleALC: (DEBUG) alc @ applying patches for 1u kext
AppleALC: (DEBUG) alc @ applying 4u patch for 1u kext
AppleALC: (DEBUG) mach @ getRunningPosition <ptr> of memory 1e000u size
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IONDRVSupport
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOSMBusFamily
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleSMBusController
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleHV
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOSurface
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleIntelHD5000Graphics
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.corecapture
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.CoreCaptureResponder
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.Dont_Steal_Mac_OS_X
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.kext.OSvKernDSPLib
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.DspFuncLib
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleHDA
AppleALC: (DEBUG) patcher @ caught the right kext at <ptr>, invoking handler
AppleALC: (DEBUG) mach @ aslr/load slide is 0x<ptr>
AppleALC: (DEBUG) alc @ found unsupported Intel codec 0x2807 revision 0x100000
AppleALC: (DEBUG) alc @ failed to find a suitable codec, we have nothing to do
AppleALC: (DEBUG) alc @ applying patches for 3u kext
AppleALC: (DEBUG) alc @ applying patches for 3u kext
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.ricky.driver.Disabler
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleMCCSControl
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleUpstreamUserClient
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOBluetoothFamily
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOBluetoothSerialManager
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleHDAHardwareConfigDriver
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleGraphicsControl
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleGraphicsDevicePolicy
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOUserEthernet
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.pmtelemetry
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.kext.triggers
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.filesystems.autofs
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.X86PlatformShim
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.ApplePlatformEnabler
AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AGPM

can you share what you have done in the DSDT please.

Note: Both works with Toleda's method.

Edited by ellaosx
Link to comment
Share on other sites

Important!!

1. Your AppleHDA.kext MUST be clean (vanilla)

2. HDEF section in your DSDT (or clover fix FixHDA_8000->True)

3. Layout-id specified in your DSDT (or clover Audio->Inject) 

4. Remove ALL patches for audio from your config.plist KextsToPatch

5. Remove DummyHDA.kext from S/L/E (if exists)

6. Remove VoodooHDA.kext and AppleHDADisabler.kext (if exists)

7. Intel HDMI Audio on HD4000/HD4600 - use clover key UseIntelHDMI->True 

 

Thanks for mentioning DSDT-alternative options, worked like a charm!

  • Like 1
Link to comment
Share on other sites

I have a Conexant CX20757 card (<"pci8086,8c20">) and couldn't get it to work. There's "failed to find a suitable codec, we have nothing to do" and "missing ControllerModInfo for 0u controller" in the log.

5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) init @ boot arguments disabled 0, debug 1
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) init @ initialising AppleALC with policy mode
5/7/16 6:11:42.000 AM kernel[0]: calling mpo_policy_init for AppleALC
5/7/16 6:11:42.000 AM kernel[0]: Security policy loaded: AppleALC Kernel Module (AppleALC)
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) init @ policy hit
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) init @ initialising enabler
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ MachInfo asKernel 1 object constructed
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Address of interrupt 80 stub is 0x<ptr>
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Found kernel mach-o header address at <ptr>
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Found executable at path: /System/Library/Kernels/kernel
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found TEXT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found LINKEDIT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found SYMTAB
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Address of interrupt 80 stub is 0x<ptr>
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Found kernel mach-o header address at <ptr>
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ aslr/load slide is 0x13800000
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ MachInfo asKernel 0 object constructed
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Found executable at path: /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/MacOS/AppleHDAController
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found TEXT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found LINKEDIT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found SYMTAB
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ loaded kinfo com.apple.driver.AppleHDAController at 1u index
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Found symbol _OSKextLoadedKextSummariesUpdated at 0x<ptr> (non-aslr 0x<ptr>)
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ _OSKextLoadedKextSummariesUpdated address <ptr> value 2E66C35DE5894855
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Found symbol _gLoadedKextSummaries at 0x<ptr> (non-aslr 0x<ptr>)
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ _gLoadedKextSummaries address <ptr>
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ diff <ptr> argument 81D4F77B
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ MachInfo asKernel 0 object constructed
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Found executable at path: /System/Library/Extensions/AppleIntelFramebufferAzul.kext/Contents/MacOS/AppleIntelFramebufferAzul
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found TEXT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found LINKEDIT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found SYMTAB
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ loaded kinfo com.apple.driver.AppleIntelFramebufferAzul at 2u index
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ MachInfo asKernel 0 object constructed
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Found executable at path: /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found TEXT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found LINKEDIT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found SYMTAB
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ loaded kinfo com.apple.driver.AppleHDA at 3u index
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ MachInfo asKernel 0 object constructed
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ Found executable at path: /System/Library/Extensions/AppleIntelFramebufferCapri.kext/Contents/MacOS/AppleIntelFramebufferCapri
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found TEXT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found LINKEDIT
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) mach @ header processing found SYMTAB
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ loaded kinfo com.apple.driver.AppleIntelFramebufferCapri at 4u index
5/7/16 6:11:42.000 AM kernel[0]: AppleALC: (DEBUG) init @ policy hit
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOAcceleratorFamily2
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.AppleGraphicsDeviceControl
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleIntelFramebufferAzul
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ caught the right kext at <ptr>, invoking handler
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) mach @ aslr/load slide is 0x<ptr>
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) ioutil @ failed to find IGPU
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) ioutil @ failed to find HDAU
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) util @ getOSData vendor-id has 8086 value
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) util @ getOSData device-id has 8C20 value
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) util @ getOSData revision-id has 5 value
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) util @ getOSData layout-id has 3 value
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) util @ getOSData AAPL,ig-platform-id was not found
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ found 1u audio controllers
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ validating 0u controller 8086:8C20:5
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ comparing to 0u mod 8086:8CA0
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ comparing to 1u mod 8086:C0C
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ comparing to 2u mod 8086:8D20
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ comparing to 3u mod 8086:412
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ comparing to 4u mod 8086:166
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ comparing to 5u mod 8086:166
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ comparing to 6u mod 8086:166
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ missing ControllerModInfo for 0u controller
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IONDRVSupport
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOSlowAdaptiveClockingFamily
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleIntelSlowAdaptiveClocking
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleHV
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is org.emlydinesh.driver.ApplePS2SmartTouchPad
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.IOPlatformPluginFamily
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleSMC
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.X86PlatformPlugin
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleSMBusPCI
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.vecLib.kext
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOAudioFamily
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.iokit.IOHDAFamily
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ invoked at kext loading/unloading
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ last kext is <ptr> and its name is com.apple.driver.AppleHDAController
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) patcher @ caught the right kext at <ptr>, invoking handler
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) mach @ aslr/load slide is 0x<ptr>
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ failed to find a suitable codec, we have nothing to do
5/7/16 6:11:46.000 AM kernel[0]: AppleALC: (DEBUG) alc @ missing ControllerModInfo for 0u controller

Codec: Conexant CX20757
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x14f15115
Subsystem Id: 0x17aac03f
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3 D3cold S3D3cold CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=3, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x10 [Audio Output] wcaps 0xc1d: Stereo Amp-Out R/L
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="CX20757 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
  Amp-Out vals:  [0x80 0x80]
  Converter: stream=5, channel=0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x11 [Audio Output] wcaps 0xc1d: Stereo Amp-Out R/L
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
  Amp-Out vals:  [0x36 0x36]
  Converter: stream=5, channel=0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x12 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0f, mute=0
  Amp-Out vals:  [0x03]
Node 0x13 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Device: name="CX20757 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
  Amp-In vals:  [0x80 0x80] [0x50 0x50] [0x50 0x50]
  Converter: stream=1, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x18 0x1a* 0x19
Node 0x14 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
  Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
  Amp-In vals:  [0x4a 0x4a] [0x4a 0x4a] [0x4a 0x4a]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x19* 0x1a 0x15
Node 0x15 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
  Amp-In caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x10 0x11
Node 0x16 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x03211040: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x10* 0x11
Node 0x17 [Pin Complex] wcaps 0x400501: Stereo
  Pincap 0x00000010: OUT
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x10 0x11*
Node 0x18 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001124: IN Detect
    Vref caps: HIZ 80
  Pin Default 0x40f001f0: [N/A] Other at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x19 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001124: IN Detect
    Vref caps: HIZ 80
  Pin Default 0x03a11030: [Jack] Mic at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1a [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001120: IN
    Vref caps: HIZ 80
  Pin Default 0x95a70120: [Fixed] Mic at Int Top
    Conn = Analog, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1b [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono

Relevant part of config.plist:

	<key>Devices</key>
	<dict>
		<key>FakeID</key>
		<dict>
			<key>IntelGFX</key>
			<string>0x04128086</string>
		</dict>
		<key>Audio</key>
		<dict>
			<key>Inject</key>
			<string>3</string>
		</dict>
	</dict>
	<key>Graphics</key>
	<dict>
		<key>Inject</key>
		<dict>
			<key>ATI</key>
			<false/>
			<key>Intel</key>
			<true/>
			<key>NVidia</key>
			<false/>
		</dict>
		<key>ig-platform-id</key>
		<string>0x0a260006</string>
	</dict>
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.11.4
BuildVersion:	15E65
Link to comment
Share on other sites

 

I have a Conexant CX20757 card (<"pci8086,8c20">) and couldn't get it to work. There's "failed to find a suitable codec, we have nothing to do" and "missing ControllerModInfo for 0u controller" in the log.

 

 

Important!!

1. Your AppleHDA.kext MUST be clean (vanilla)

2. HDEF section in your DSDT (or clover fix FixHDA_8000->True)

3. Layout-id specified in your DSDT (or clover Audio->Inject) 

4. Remove ALL patches for audio from your config.plist KextsToPatch

5. Remove DummyHDA.kext from S/L/E (if exists)

6. Remove VoodooHDA.kext and AppleHDADisabler.kext (if exists)

7. Intel HDMI Audio on HD4000/HD4600 - use clover key UseIntelHDMI->True 

 

Especially pay attention on paragraph 1 and 2

Then give me info.plist with attached script and terminal output.

Codec-Info.command.zip

 

And DarwinDumper report please.

Link to comment
Share on other sites

Important!!

1. Your AppleHDA.kext MUST be clean (vanilla)

2. HDEF section in your DSDT (or clover fix FixHDA_8000->True)

3. Layout-id specified in your DSDT (or clover Audio->Inject) 

4. Remove ALL patches for audio from your config.plist KextsToPatch

5. Remove DummyHDA.kext from S/L/E (if exists)

6. Remove VoodooHDA.kext and AppleHDADisabler.kext (if exists)

7. Intel HDMI Audio on HD4000/HD4600 - use clover key UseIntelHDMI->True 

 

Especially pay attention on paragraph 1 and 2

Then give me info.plist with attached script and terminal output.

attachicon.gifCodec-Info.command.zip

 

And DarwinDumper report please.

I got bad terminal output:

$ ./Codec-Info.command
HDEF@1B = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Layout, hex: 0x00000003 , dec: 3

PinConfigurations:
00

Codecs Found: 0
HDA:
./Codec-Info.command: line 53: let: CodecID=: syntax error: operand expected (error token is "=")
0 CodecAddress:
VendorID:
RevisionID:
CodecID:
./Codec-Info.command: line 59: let: Revisiond=: syntax error: operand expected (error token is "=")
Revision(dec):=
Id=0x
Id(dec)=0
Vendor=0x
Vendor(dec)=0

File Doesn't Exist, Will Create: /Users/l2dy/Desktop/Info.plist
Merge: Error Reading File: Patch.plist
./Codec-Info.command: line 115: [: !=: unary operator expected
./Codec-Info.command: line 127: ((: < 885 : syntax error: operand expected (error token is "< 885 ")
Merge: Error Reading File: Patch.plist
Merge: Error Reading File: Patch.plist
Merge: Error Reading File: Patch.plist
./Codec-Info.command: line 40: VendorID: bad array subscript
./Codec-Info.command: line 40: VendorID: bad array subscript
./Codec-Info.command: line 40: VendorID: bad array subscript
HDA:
./Codec-Info.command: line 53: VendorID: bad array subscript
./Codec-Info.command: line 53: let: CodecID=: syntax error: operand expected (error token is "=")
./Codec-Info.command: line 54: CodecAddress: bad array subscript
-1 CodecAddress:
./Codec-Info.command: line 55: VendorID: bad array subscript
VendorID:
./Codec-Info.command: line 56: RevisionID: bad array subscript
RevisionID:
CodecID:
./Codec-Info.command: line 58: VendorID: bad array subscript
./Codec-Info.command: line 59: RevisionID: bad array subscript
./Codec-Info.command: line 59: let: Revisiond=: syntax error: operand expected (error token is "=")
Revision(dec):=
Id=0x
Id(dec)=0
Vendor=0x
Vendor(dec)=0

./Codec-Info.command: line 74: VendorID: bad array subscript
./Codec-Info.command: line 75: VendorID: bad array subscript
File Doesn't Exist, Will Create: /Users/l2dy/Desktop/Info.plist
./Codec-Info.command: line 84: VendorID: bad array subscript
./Codec-Info.command: line 84: RevisionID: bad array subscript
Merge: Error Reading File: Patch.plist
./Codec-Info.command: line 115: [: !=: unary operator expected
./Codec-Info.command: line 127: ((: < 885 : syntax error: operand expected (error token is "< 885 ")
Merge: Error Reading File: Patch.plist
Merge: Error Reading File: Patch.plist
Merge: Error Reading File: Patch.plist
Link to comment
Share on other sites

 

I got bad terminal output

You have to resolve problem with HDEF section in DSDT or try to use Clover fix FixHDA_8000.

post-1069282-0-36934700-1462625439_thumb.png

You forgot ACPI->DSDT->Fixes  AddDTGP_0001 and NewWay_8000000. And don't use Clover Configurator. Use PlistEdit Pro or TextEdit.

Link to comment
Share on other sites

You have to resolve problem with HDEF section in DSDT or try to use Clover fix FixHDA_8000.

attachicon.gifСнимок экрана 2016-05-07 в 15.45.54.png

You forgot ACPI->DSDT->Fixes  AddDTGP_0001 and NewWay_8000000. And don't use Clover Configurator. Use PlistEdit Pro or TextEdit.

Didn't notice any difference.

 

Edit: I've been using git and vim for config.plist. Did used a tool to generate SMBIOS though.

Link to comment
Share on other sites

@I2dy:

Use Maciasl to edit your DSDT which you should extract in your Clover-Bootmenu with the use of the F4-Key.

After the usage of F4-Key and reboot to OSX you will find the Original .aml files under /EFI/CLOVER/Acpi/origin.

To later use this DSDT.aml you have to put it in the folder /EFI/CLOVER/Acpi/patched

  • Like 1
Link to comment
Share on other sites

@I2dy:

Use Maciasl to edit your DSDT which you should extract in your Clover-Bootmenu with the use of the F4-Key.

After the usage of F4-Key and reboot to OSX you will find the Original .aml files under /EFI/CLOVER/Acpi/origin.

To later use this DSDT.aml you have to put it in the folder /EFI/CLOVER/Acpi/patched

I do know these. But which patch should I apply and should I remove Audio Inject from Clover?

Link to comment
Share on other sites

You use a laptop...

What vendor and model is this machine?

Do you have any idea which hardware components are assembled in your laptop?

The result of the codec-info.command cannot find anything, since there is no inject for your AudioCodec.

Can you post a screenshot from the "Status"- and "PCI-List"-Window of the app DPCI-Manager?

Link to comment
Share on other sites

You use a laptop...

What vendor and model is this machine?

Do you have any idea which hardware components are assembled in your laptop?

The result of the codec-info.command cannot find anything, since there is no inject for your AudioCodec.

Can you post a screenshot from the "Status"- and "PCI-List"-Window of the app DPCI-Manager?

lspci and codec info.

 

Edit: Lenovo G410AM-IFI (H) it is.

Link to comment
Share on other sites

The Conexant Chip should work if you use the correct layout-id...

In AppleALC the ID for your Conexant 20757 is the number 3.

Did you enter that into Clover like that:

post-638272-0-36173700-1462631509.jpg

and don't forget to activate the FixHDA DSDT-Patch:

post-638272-0-71798300-1462631546_thumb.jpg

Link to comment
Share on other sites

The Conexant Chip should work if you use the correct layout-id...

In AppleALC the ID for your Conexant 20757 is the number 3.

Did you enter that into Clover like that:

attachicon.gifLayoutID3.jpg

and don't forget to activate the FixHDA DSDT-Patch:

attachicon.gifFixHDA.jpg

Didn't use the GUI but yes, I do have those in config.plist.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>ACPI</key>
        <dict>
                <key>DSDT</key>
                <dict>
                        <key>Fixes</key>
                        <dict>
                                <key>FixHDA_8000</key>
                                <true/>
                                <key>AddDTGP_0001</key>
                                <true/>
                                <key>NewWay_80000000</key>
                                <true/>
                        </dict>
...
        <key>Devices</key>
        <dict>
                <key>FakeID</key>
                <dict>
                        <key>IntelGFX</key>
                        <string>0x04128086</string>
                </dict>
                <key>USB</key>
                <dict>
                        <key>FixOwnership</key>
                        <false/>
                        <key>Inject</key>
                        <false/>
                </dict>
                <key>Audio</key>
                <dict>
                        <key>Inject</key>
                        <string>3</string>
                </dict>
                <key>UseIntelHDMI</key>
                <true/>
        </dict>
Link to comment
Share on other sites

In that case the AppleALC with the integrated CX20757 stuff will not work... 

I guess your Lenovo Laptop uses another Layout-ID for the chip...

My Lenovo uses ID 28 on a ALC269 and the HP uses 12 on an IDT-Chip, so everythings possible...

Link to comment
Share on other sites

In that case the AppleALC with the integrated CX20757 stuff will not work... 

I guess your Lenovo Laptop uses another Layout-ID for the chip...

My Lenovo uses ID 28 on a ALC269 and the HP uses 12 on an IDT-Chip, so everythings possible...

How should I test different IDs?

Link to comment
Share on other sites

I just checked if there is another already patched AppleHDA for your codec around but only found Mirone's patch which is already part of the AppleALC...

Let me try something for you... ;)

Link to comment
Share on other sites

×
×
  • Create New...