Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

I was thinking that just selecting the output device would be enough to switch between 5.1 and Headphones. Since they use the same pin complexes, you would tell the user to not attempt to output audio to both at the same time.

 

If that's not possible, it seems to me we need a feature to dynamically switch layouts... I guess that's what the Sound Blaster control panel does when you switch between Speakers and Headphones.

I have tried to separate Line-out and the rear Headphones, but only one of them works. I will disassemble that Sound Blaster panel, maybe I find something out.

 

I don't have permission to view the attachment?

Hmm, here it is again, also as code.codec#2_generic.txt.zip

Codec: Creative CA0132
Address: 2
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x11020011
Subsystem Id: 0x1458a016
Revision Id: 0x100918
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D3 D3cold S3D3cold CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=0, o=0, i=0, unsolicited=1, wake=1
Node 0x02 [Audio Output] wcaps 0x491: Stereo
  Device: name="CA0132 Analog", type="Audio", device=0
  Converter: stream=8, channel=0
  PCM:
    rates [0x5e4]: 16000 44100 48000 88200 96000 192000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x491: Stereo
  Converter: stream=8, channel=0
  PCM:
    rates [0x5e4]: 16000 44100 48000 88200 96000 192000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x491: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x5e4]: 16000 44100 48000 88200 96000 192000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x05 [Audio Output] wcaps 0x691: Stereo Digital
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
  Device: name="CA0132 Digital", type="SPDIF", device=1
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x06 [Audio Output] wcaps 0x691: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x07 [Audio Input] wcaps 0x10059b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="CA0132 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x00, nsteps=0x17, stepsize=0x03, mute=0
  Amp-In vals:  [0x09 0x09]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1e4]: 16000 44100 48000 88200 96000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x12
Node 0x08 [Audio Input] wcaps 0x10059b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x17, stepsize=0x03, mute=0
  Amp-In vals:  [0x09 0x09]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1e4]: 16000 44100 48000 88200 96000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x11
Node 0x09 [Audio Input] wcaps 0x100791: Stereo Digital
  Control: name="IEC958 Capture Switch", index=0, device=0
  Control: name="IEC958 Capture Default", index=0, device=0
  Device: name="CA0132 Digital", type="SPDIF", device=1
  Converter: stream=4, channel=0
  SDI-Select: 0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x1f0]: 32000 44100 48000 88200 96000
    bits [0x1a]: 16 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x0e
Node 0x0a [Audio Input] wcaps 0x100791: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x1ec]: 16000 22050 44100 48000 88200 96000
    bits [0x1b]: 8 16 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x13
Node 0x0b [Pin Complex] wcaps 0x400581: Stereo
  Control: name="Line Out Jack", index=0, device=0
  Pincap 0x00010014: OUT EAPD Detect
  EAPD 0x0:
  Pin Default 0x010140f0: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=04, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x0c [Pin Complex] wcaps 0x400701: Stereo Digital
  Control: name="SPDIF Phantom Jack", index=0, device=0
  Pincap 0x00000010: OUT
  Pin Default 0x014580f0: [Jack] SPDIF Out at Ext Rear
    Conn = Optical, Color = Purple
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x05
Node 0x0d [Pin Complex] wcaps 0x400701: Stereo Digital
  Control: name="SPDIF Phantom Jack", index=1, device=0
  Pincap 0x00000010: OUT
  Pin Default 0x014570f0: [Jack] SPDIF Out at Ext Rear
    Conn = Optical, Color = Yellow
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x06
Node 0x0e [Pin Complex] wcaps 0x400681: Stereo Digital
  Control: name="SPDIF In Phantom Jack", index=0, device=0
  Pincap 0x00000020: IN
  Pin Default 0x01c530f0: [Jack] SPDIF In at Ext Rear
    Conn = Optical, Color = Blue
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x0f [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x422000f0: [N/A] HP Out at Ext Front
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x10 [Pin Complex] wcaps 0x400581: Stereo
  Control: name="Front Headphone Jack", index=0, device=0
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x022160f0: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Orange
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x03
Node 0x11 [Pin Complex] wcaps 0x40058b: Stereo Amp-In
  Control: name="Line Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Line Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00003734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x028120f0: [Jack] Line In at Ext Front
    Conn = 1/8, Color = Grey
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=03, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x04
Node 0x12 [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
  Control: name="Mic Phantom Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x37a791f0: [Jack] Mic at Oth Mobile-In
    Conn = Analog, Color = Pink
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x13 [Pin Complex] wcaps 0x400681: Stereo Digital
  Pincap 0x00000020: IN
  Pin Default 0x50d000f0: [N/A] Digital In at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x14 [Beep Generator Widget] wcaps 0x70040c: Mono Amp-Out
  Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-Out vals:  [0x1c]
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x15 [Vendor Defined Widget] wcaps 0xf00600: Mono Digital
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x16 [Vendor Defined Widget] wcaps 0xf00680: Mono Digital
  Unsolicited: tag=16, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x17 [Audio Output] wcaps 0x491: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x5ec]: 16000 22050 44100 48000 88200 96000 192000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x18 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000010: OUT
  Pin Default 0x500000f0: [N/A] Line Out at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x17

Maybe it's not a feature of Lilu yet? My idea would be a method in AppleALC, and Lilu would patch AppleHDA to call the method, maybe using some assembly for any required context switching to get globals, etc.

 

Here we have something to choose, but no front Headphones.

<?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>DevShortNameAuxi</key>
	<string>Built-in Aux Input</string>
	<key>DevShortNameDP</key>
	<string>DisplayPort</string>
	<key>DevShortNameEMic</key>
	<string>Built-in External Microphone</string>
	<key>DevShortNameHdmi</key>
	<string>HDMI</string>
	<key>DevShortNameHdpn</key>
	<string>Built-in Headphone</string>
	<key>DevShortNameIMic</key>
	<string>Built-in Microphone</string>
	<key>DevShortNameIn</key>
	<string>Built-in Input</string>
	<key>DevShortNameLini</key>
	<string>Built-in Line Input</string>
	<key>DevShortNameLino</key>
	<string>Built-in Line Output</string>
	<key>DevShortNameOut</key>
	<string>Built-in Output</string>
	<key>DevShortNameSpdi</key>
	<string>Built-in Digital Input</string>
	<key>DevShortNameSpdo</key>
	<string>Built-in Digital Output</string>
	<key>DevShortNameSpkr</key>
	<string>Built-in Speaker</string>
	<key>DeviceName</key>
	<string>Built-in Audio</string>
	<key>DeviceNameAuxIn</key>
	<string>Built-in Audio Auxilliary Input</string>
	<key>DeviceNameDigitalIn</key>
	<string>Built-in Audio Digital Input</string>
	<key>DeviceNameDigitalOut</key>
	<string>Built-in Audio Digital Output</string>
	<key>DeviceNameDisplayPort</key>
	<string>DisplayPort Output</string>
	<key>DeviceNameExtMic</key>
	<string>Built-in Audio External Microphone</string>
	<key>DeviceNameHdmi</key>
	<string>HDMI Output</string>
	<key>DeviceNameHeadphone</key>
	<string>Built-in Audio Headphone</string>
	<key>DeviceNameLineIn</key>
	<string>Built-in Audio Line Input</string>
	<key>DeviceNameLineOut</key>
	<string>Built-in Audio Line Output</string>
	<key>DeviceNameMic</key>
	<string>Built-in Audio Microphone</string>
	<key>DeviceNameSpeaker</key>
	<string>Built-in Audio Speaker</string>
	<key>DeviceShortName</key>
	<string>Built-in</string>
	<key>DigitalIn</key>
	<string>Digital In</string>
	<key>DigitalOut</key>
	<string>Digital Out</string>
	<key>DisplayPort</key>
	<string>DisplayPort</string>
	<key>DisplayPort1</key>
	<string>DisplayPort 1</string>
	<key>DisplayPort2</key>
	<string>DisplayPort 2</string>
	<key>DisplayPort3</key>
	<string>DisplayPort 3</string>
	<key>DisplayPort4</key>
	<string>DisplayPort 4</string>
	<key>ExternalMic</key>
	<string>External Microphone</string>
	<key>ExternalMicB</key>
	<string>External Microphone B</string>
	<key>HDMI</key>
	<string>HDMI</string>
	<key>HDMI1</key>
	<string>HDMI 1</string>
	<key>HDMI2</key>
	<string>HDMI 2</string>
	<key>HDMI3</key>
	<string>HDMI 3</string>
	<key>HDMI4</key>
	<string>HDMI 4</string>
	<key>Headphones</key>
	<string>Headphones</string>
	<key>HeadphonesB</key>
	<string>Headphones B</string>
	<key>HwSrcAutomatic</key>
	<string>Automatic</string>
	<key>HwSrcDisable</key>
	<string>Disable</string>
	<key>HwSrcEnable</key>
	<string>Enable</string>
	<key>InputNone</key>
	<string>None</string>
	<key>IntSpeakers</key>
	<string>Internal Speakers</string>
	<key>InternalMic</key>
	<string>Internal Microphone</string>
	<key>LEDCinemaDisplay</key>
	<string>LED Cinema Display</string>
	<key>LineIn</key>
	<string>Line In</string>
	<key>LineOut</key>
	<string>Line Out</string>
	<key>LockedClock</key>
	<string>Locked</string>
	<key>ManufacturerName</key>
	<string>Apple Inc.</string>
	<key>UnlockedClock</key>
	<string>Unlocked</string>
</dict>
</plist>

 

Screen_Shot_2017_03_22_at_9_59_10_AM.png

Volume 100% via Sierra. Audio is very distorted. If I decrease volume in Sierra from 100% to 50-70% distortion disappear, but...sound is not good I think. With voodoohda is better (no volume control). I'm not familiar with these mods, but definitely sound is not as I expect. I tried this method before almost year (el capitan) and result was the same.

 

I would try a sound editing program, generate a sine wave, output it to another computer, view the waveform and see when the wave gets distorted. I remember doing stuff like that on old Macs (Power Mac). Guess I should try to find a modern sound editing program.

 

I don't think it's distorted, only higher output gain.

 

@gerrard000, try line-out with layout-id 3 if it's still distorted try using the rear speaker output (black jack). Caution, you cannot control the volume, it should have the same output gain as with the VoodooHDA.AppleALC1.1.1_gerrard.zip

Link to comment
Share on other sites

 

 
Which Application are you using to run these tests?
Have you tried another app?
 
Let me know the following:
 
Internal Mic Working Y/N?
External MIc Working Y/N?
Speakers Working Y/N?
Headphones Working Y/N?

 

I am using iTunes. I only have music to listen to.

 

Internal MIc Working Yes (I can see that it registers noise and my voice in Settings->Sound->In)

External Mic Working Unknown (I have none to try)

Speakers Working Yes, but with distortions

Headphones Working Yes, but with the same type of distortions.

Link to comment
Share on other sites

first, 

 

I am using iTunes. I only have music to listen to.

 

Internal MIc Working Yes (I can see that it registers noise and my voice in Settings->Sound->In)

External Mic Working Unknown (I have none to try)

Speakers Working Yes, but with distortions

Headphones Working Yes, but with the same type of distortions.

First of all try to use another App.

Link to comment
Share on other sites

I have tried to separate Line-out and the rear Headphones, but only one of them works. I will disassemble that Sound Blaster panel, maybe I find something out.

If it's not possible from the Sound preferences panel, then a solution would be to make a new preference panel (like the one VoodooHDA has) that let's you choose a different layout. Maybe it could just change the layout-id property, unload AppleHDA, and reload it to use the new layout-id?

 

Hmm, here it is again, also as code.

Thanks. The download worked this time. I'll look at it on the weekend maybe.

 

Here we have something to choose, but no front Headphones.

I think we would want to be able to replace the method that chooses from a fixed array of names to some other method that can use any arbitrary name, like how the HDMI audio uses the display name.
Link to comment
Share on other sites


I don't think it's distorted, only higher output gain.

 

@gerrard000, try line-out with layout-id 3 if it's still distorted try using the rear speaker output (black jack). Caution, you cannot control the volume, it should have the same output gain as with the VoodooHDA.attachicon.gifAppleALC1.1.1_gerrard.zip

In .zip two kexts - lilu and applealc. I install them change layout id 3 and after restart my pc speakers reproduced some strange...shrill sound. Can;t explain better. I even not ran any audio or video file. This sound was terrible. 

 

About distortion. Try to run some video file with VLC. Increase volume via VLC to 200% and 100% via Sierra. Sound is distorted with voodoohda and apple alc (from page 68). Test with itunes. Volume 100% via Sierra - audio is distorted too. Under Windows 7 - 0 problem. No distortion when increase sound to 100% via Windows or to 200% via VLC. Can't explain better. My english is very bad :)

 

EDIT:  It's my fault. I made mistake and connected pc speakers in wrong port  :blush:  :blush: . Now reinstalled OS and connected speakers in rear headphones port and works perfect. In rear 2.0 port work perfect too. You said that volmue control not work, but volume control work. No distortion. SOUND IS PERFECT. 

 

 

Link to comment
Share on other sites

first, 

 

First of all try to use another App.

It is the same distortions with MPlayerX. Hearable on 50% volume level, external speakers and internal. Same kind of distortions.

 

I tried using my speaker monitors now through audio jack instead of my headphones and I can report that the bass is terrible. Leading me to the question, is it the codec in itself being bad? Booted windows, tried same track. Normal bass, no distortions through speaker monitors. No distortions through external speakers.

Link to comment
Share on other sites

In .zip two kexts - lilu and applealc. I install them change layout id 3 and after restart my pc speakers reproduced some strange...shrill sound. Can;t explain better. I even not ran any audio or video file. This sound was terrible. 

 

About distortion. Try to run some video file with VLC. Increase volume via VLC to 200% and 100% via Sierra. Sound is distorted with voodoohda and apple alc (from page 68). Test with itunes. Volume 100% via Sierra - audio is distorted too. Under Windows 7 - 0 problem. No distortion when increase sound to 100% via Windows or to 200% via VLC. Can't explain better. My english is very bad :)

Use the CodecCommander.kext from the previous AppleALC.kext archive i've uploaded, install it to /S/L/E.

Link to comment
Share on other sites

If it's not possible from the Sound preferences panel, then a solution would be to make a new preference panel (like the one VoodooHDA has) that let's you choose a different layout. Maybe it could just change the layout-id property, unload AppleHDA, and reload it to use the new layout-id?

We are able to change a few things with hda-verb, I have already build a simple GUI for it, but can't access the drive where it was stored. When I have time I make a new one.

Link to comment
Share on other sites

Please test this file with layout 28, also install Lilu.kext as I don't put it in AppleALC.kext's Plugins folder

Thanks for the kext File. The Microphone shows now responding in the Sound Settings. Then I think it should work now. Thank you.

Link to comment
Share on other sites

AppleALC does not seem to work with Kabylake/200-series-chipset.

I have HDA Controller device ID 0x0xa2f08086

On this controller 2 codecs

codec 0 is Realtek ALC887 0x10ec0887 Rev 3, Stepping 2.

codec 2 is Intel Kabylake HDMI 0x8086280b Rev 0, Stepping 0 connected to the Intel HD Graphics 630 HDMI port.

 

The ACPI name of HDA controller is HDEF

Intel HD 630 ACPI name is patched to IGPU using Clover DSDT patch.

 

OS 10.12.4.

Combination AppleHDA + Lilu + AppleALC does not work.  No output devices show up.

 

When I patch AppleIntelSKLGraphicsFramebuffer.kext for DP->HDMI port (using Clover), I can use HDMI audio with VoodooHDA.kext 2.8.9.  ALC887 also appears to work, but I haven't tried the analog connectors.

Link to comment
Share on other sites

AppleALC does not seem to work with Kabylake/200-series-chipset.

I have HDA Controller device ID 0x0xa2f08086

On this controller 2 codecs

codec 0 is Realtek ALC887 0x10ec0887 Rev 3, Stepping 2.

codec 0 is Intel Kabylake HDMI 0x8086280b Rev 0, Stepping 0 connected to the Intel HD Graphics 630 HDMI port.

 

The ACPI name of HDA controller is HDEF

Intel HD 630 ACPI name is patched to IGPU using Clover DSDT patch.

 

OS 10.12.4.

Combination AppleHDA + Lily + AppleALC does not work.  No output devices show up.

 

When I patch AppleIntelSKLGraphicsFramebuffer.kext for DP->HDMI port (using Clover), I can use HDMI audio with VoodooHDA.kext 2.8.9.  ALC887 also appears to work, but I haven't tried the analog connectors.

 

Hello. AppleALC is confirmed working on Kabylake/200 series. Was tested on Asus Prime Z270-P. Works pretty well. As for Kabylake HDMI - it device-id 0x8086280b differs from Skylake 0x80862809. Maybe this is the clue. And also AppleALC can patch only three platform-id's 0x19160000, 0x191B0000 and 0x19120000. If you use another ig-platform-id patch it with Clover for HDMI audio support...

  • Like 2
Link to comment
Share on other sites

Hello. AppleALC is confirmed working on Kabylake/200 series. Was tested on Asus Prime Z270-P. Works pretty well. As for Kabylake HDMI - it device-id 0x8086280b differs from Skylake 0x80862809. Maybe this is the clue. And also AppleALC can patch only three platform-id's 0x19160000, 0x191B0000 and 0x19120000. If you use another ig-platform-id patch it with Clover for HDMI audio support...

I use 0x19120000, so it must be something else.  I'll try again today.  Maybe I need to edit Info.plist.

Update 

Using VoodooHDA, I have only Headphone output work, Mic is very noisy and low.

Using Rehabman Lenovo U430 repo, I have  Headphone and Speaker but no internal Mic, no external Mic

For the Mic you probably need to enable Mic boost.

For the other output, open Utilties/Audio-MIDI setup, find the input and output channels, and set formats to 44.1 or 48 KHz, 16 bit.  Sometimes defaults are set differently by VooodooHDA and don't work.

  • Like 3
Link to comment
Share on other sites

I have tried both HDAPatcher and AppleALC all layout 3, 11, 66 but it not work with KabyLake 200 series 

I use Rehabman Lenovo U430, but don't have MIc, I have changed pathmap and boost in Layout.xml, Platform.xml, also codec verbs in Info.plist but still no Mic

Pls help

 

codec_dump.txt.zip

layout3.xml.zip

Platforms.xml.zip

Info.plist.zip

AppleHDA_ALC283.kext.zip

Link to comment
Share on other sites

Wern Apfel, I made mistake and was connected speakers in wrong port (explained here:blush:  :blush:  :blush: . Your kext works perfect. No distortion, sound is perfect and volume control work. Thank you very much.

One more question - what exactly do lilu.kext? In El Capitan not used. 

edit: can't believe that finally have 100% working audio. 

Link to comment
Share on other sites

EDIT:  It's my fault. I made mistake and connected pc speakers in wrong port  :blush:  :blush: . Now reinstalled OS and connected speakers in rear headphones port and works perfect. In rear 2.0 port work perfect too. You said that volmue control not work, but volume control work. No distortion. SOUND IS PERFECT. 

Just at the rear black jack with layout 3 you have no volume control, but the same volume as Windows. But good that it works now.

 

Wern Apfel, I made mistake and was connected speakers in wrong port (explained here:blush:  :blush:  :blush: . Your kext works perfect. No distortion, sound is perfect and volume control work. Thank you very much.

One more question - what exactly do lilu.kext? In El Capitan not used. 

 

edit: can't believe that finally have 100% working audio. 

 

The Lilu.kext is needed since ApppleALC ver.1.1.0 to work properly, see here

post-448675-0-40137200-1491058387_thumb.gif

Link to comment
Share on other sites

Hi wern,

 

does applealc 1.1.1 work with Sierra 10.12.4? I have the CA0132 Codec.

 

THX

Hunk

Yes, it works with 10.12.4 and 10.12.5 Beta. But don't forget that the Lilu.kext is mandatory for ver. 1.1.1, also the provided CodecCommander.kext from this package. Add CodecCommander.kext to /S/L/E, AppleALC.kext and Lilu.kext to clover/kexts/other.

Link to comment
Share on other sites

×
×
  • Create New...