Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,371 posts in this topic

Recommended Posts

is not in the range comparisons so no null patch for 8A19D411 is needed. (at least can work because does nothing, but it's useless)

 

You have to zeroing <8508ec10> and then replace <8419d411> with <8302ec10> .

this for Sierra.

Can you be more precise ? I actually don't know much about zeroing codec and I'd like to understand this "range comparisons".

What I know is that it worked ... I will dig deeper next week. 

 

 

I have the same NUC, so far been using Toleda's instead of AppleALC on Sierra ( AppleALC sometimes KP my NUC without even doing anything related to audio, and no input/output )

Do you have "hot plug" audio in and no quality drop on audio out after several minutes of silence ? (I stopped using Toleda's files because of this)

 

 

Salut sebinouse, I also have the same NUC you have (followed your excellent guide) with Intel Core i5-4250U and ALC283, still not working.

 

Can you share the 8A19D411 null patch, or what you refer to as injector with zero patch for 8A19D411?

 

Any other solutions and ideas are welcome, guys... Many thanks.

 

Here it is. I still hope to get AppleALC to work with custom codec. For the time being the audio in doesn't work (on 10.11 and 10.12 ... out is OK ... but no Siri !)

NucSierraDP1.zip

Link to comment
Share on other sites

Do you have "hot plug" audio in and no quality drop on audio out after several minutes of silence ? (I stopped using Toleda's files because of this)

You mean on El Capitan or Sierra ? El Capitan no, Sierra havent tested

Link to comment
Share on other sites

Can you be more precise ? I actually don't know much about zeroing codec and I'd like to understand this "range comparisons".

What I know is that it worked ... I will dig deeper next week. 

 

@Micky1979 is right newNull patch is not required for all codec here I already mentioned it post #560

I have the same NUC, so far been using Toleda's instead of AppleALC on Sierra ( AppleALC sometimes KP my NUC without even doing anything related to audio, and no input/output )

AppleALC still has KP in every couple of restarts but for me Audio is working well 

Link to comment
Share on other sites

OK after many tryouts I manage to find out why it worked for me : the problem was in my cache rebuild command which prevented AppleHDA to be cached :surprised: . I might have tried something else to rebuild the caches after adding the zero patch ... 

 

I do confirm that the only patch needed for my ALC283 is 11D4_1984 > 10EC_0283 ...  

 

But how do you know that the zero patch is needed or not : is there a rule ? Or is it experience ?

Edited by sebinouse
Link to comment
Share on other sites

OK after many tryouts I manage to find out why it worked for me : the problem was in my cache rebuild command which prevented AppleHDA to be cached :surprised: . I might have tried something else to rebuild the caches after adding the zero patch ... 

 

I do confirm that the only patch needed for my ALC283 is 11D4_1983 > 10EC_0283 ...  

 

But how do you know that the zero patch is needed or not : is there a rule ? Or is it experience ?

 

Usually no detection even after patching your 11D4_1983 > 10EC_0283

Link to comment
Share on other sites

OK after many tryouts I manage to find out why it worked for me : the problem was in my cache rebuild command which prevented AppleHDA to be cached :surprised: . I might have tried something else to rebuild the caches after adding the zero patch ... 

 

I do confirm that the only patch needed for my ALC283 is 11D4_1983 > 10EC_0283 ...  

 

But how do you know that the zero patch is needed or not : is there a rule ? Or is it experience ?

are you using 1983 for 283 as binPatch , but i patched 283 using 1984 works good 

Link to comment
Share on other sites

are you using 1983 for 283 as binPatch , but i patched 283 using 1984 works good 

Oups ... My bad ... It's 1984 of course (I edited the post above) !

 

1983 is not even present in AppleHDA, or Clover kextpatch doesn't find it in debug mode.

Link to comment
Share on other sites

@vandroiy, might we merge some CA0132 changes, and finally close the issues people name with it?

 

@all ca0132 users. We got lost in a mess you created. There were kexts and tests here, what's the result of them? Does the issue on github contain the most recent and complete variant excluding 10.12 patch? 

  • Like 2
Link to comment
Share on other sites

@vandroiy, might we merge some CA0132 changes, and finally close the issues people name with it?

 

@all ca0132 users. We got lost in a mess you created. There were kexts and tests here, what's the result of them? Does the issue on github contain the most recent and complete variant excluding 10.12 patch? 

There is different result with X99 motherboards. I use GA-Z170 Gaming 7 and Codec + revision are similar. But for old patch, i saw "7419AD15" replaced with "10000211" and with those patch at El Capitan it will make "ngiiiiing" sound (i don't know how to write it at english) and i need to replace it to "00000000" for better sounds (no ngiiing).

 

Layout 9 and 10 is Fake Volume Control, but best sound. I use Logitech Z506 (5.1), maybe different speaker will make different result. Sorry for bad english.

 

Special Note : for bin patch, we need to give credit to Wern Apfel. He is the starter :D

  • Like 1
Link to comment
Share on other sites

We need to Zeroing Codec "8A19D411" to "00000000" too at macOS Sierra :D

 

Here the sample kext for Creative CA0132, please add to resources

I tested it.Its worked thank you.

post-413859-0-99954500-1466514853_thumb.png

Archive.zip

Link to comment
Share on other sites

Sierra random KP 

Panic(CPU 1): Unresponsive processor (this CPU did not acknowledge interrupts) TLB state:0x0
RAX: 0x0000000000000002, RBX: 0x0000000000000001, RCX: 0xffffff8013dd0b48, RDX: 0x0000000000000001
RSP: 0xffffff800ec53bc0, RBP: 0xffffff800ec53bd0, RSI: 0x0000000000000001, RDI: 0x0000000000000001
R8:  0x000000000000ffff, R9:  0x0000000000000001, R10: 0xffffff8011f81150, R11: 0x0000000000000002
R12: 0x0000000000000000, R13: 0xffffff8013c72870, R14: 0xffffff8013dd0b40, R15: 0xffffff8013c72870
RFL: 0x0000000000000046, RIP: 0xffffff800083c169, CS:  0x0000000000000008, SS:  0x0000000000000000
Backtrace (CPU 1), Frame : Return Address
0xffffff8099d9bf80 : 0xffffff800040d581 
0xffffff8099d9bfd0 : 0xffffff80002b5769 
0xffffff800ec53bd0 : 0xffffff800088e0d7 
0xffffff800ec53c00 : 0xffffff7f823724c1 
0xffffff800ec53c70 : 0xffffff7f82367a59 
0xffffff800ec53cb0 : 0xffffff7f8236747c 
0xffffff800ec53cf0 : 0xffffff7f82372e48 
0xffffff800ec53d30 : 0xffffff800084ef60 
0xffffff800ec53db0 : 0xffffff8000846840 
0xffffff800ec53e20 : 0xffffff8000853172 
0xffffff800ec53e70 : 0xffffff80008b6980 
0xffffff800ec53e90 : 0xffffff800089af6e 
0xffffff800ec53f10 : 0xffffff800089abf6 
0xffffff800ec53f60 : 0xffffff800089c60e 
0xffffff800ec53fb0 : 0xffffff80002b2937 
      Kernel Extensions in backtrace:
         as.vit9696.AppleALC(900.0)[6FBEFE8B-6624-36FF-8F7F-340AB4AD853F]@0xffffff7f82366000->0xffffff7f8241afff

BSD process name corresponding to current thread: kernel_task
Boot args: slide=0  

Mac OS version:
16A201w

Ignore if this has no related to AppleALC :)

Link to comment
Share on other sites

Hi vt9696,

 

My laptop is Alienware M17X R4 ( i7-3610qm, HM77, HD4000, 7970M ( shut down in dsdt ), Creative CA0132 audio codec ). I tried AppleALC compiled in 2016,6,5, it make the CA0132 work with layout-id 11 injected in dsdt ( However layout-id 12 did’t work. ) But I’ve come up with some problems.

 

1 Input/Output volume control in “System Pref” - “Sound” is not available.

 

2 External mic jack is not working.

 

3 One of the external headphone jacks is not working. ( This laptop has dual headphone jacks)

 

4 Auto switch between internal speaker and external headphone jack is not working. I have to choose the output device in “System Pref” - “Sound” manually. Also, the name for internal speakers is wrong, it says line out but in fact that’s internal speaker.

 

5 I managed to make the HDMI output work but it appeals that HDMI audio output need layout-id 3 injected. However layout-id 3 will make CA0132 stop to work.( All input/output devices under “System Pref” - “Sound” are gone) Injection of layout-id 11 will get CA0132 back but that will break the HDMI audio output ( No HDMI options under “System Pref” - “Sound” - “Output” when HDMI connected )

 

BTW, I found that layout-id 9 and 10 are added for CA0132 yesterday, the info.plist for CA0132 is updated, too. Is it helpful to use the latest version?

 

I’ll copy&amp;amp;amp;amp;paste the codec files for CA0132 and HD4000 HDMI from Ubuntu in the following.( Sorry for that but I cannot upload attach files due to Chinese Internet block system. )

 

Codec: Creative CA0132

Address: 0

AFG Function Id: 0x1 (unsol 1)

Vendor Id: 0x11020011

Subsystem Id: 0x1028057b

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 0x49d: Stereo Amp-Out

Device: name="CA0132 Analog", type="Audio", device=0

Amp-Out caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1

Amp-Out vals: [0x46 0x46]

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 0x03 [Audio Output] wcaps 0x49d: Stereo Amp-Out

Amp-Out caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1

Amp-Out vals: [0x5a 0x5a]

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 0x04 [Audio Output] wcaps 0x49d: Stereo Amp-Out

Amp-Out caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1

Amp-Out vals: [0x5a 0x5a]

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 0x05 [Audio Output] wcaps 0x691: Stereo Digital

Control: name="IEC958 Playback Con Mask", index=16, device=0

Control: name="IEC958 Playback Pro Mask", index=16, device=0

Control: name="IEC958 Playback Default", index=16, device=0

Control: name="IEC958 Playback Switch", index=16, 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: Enabled

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 0x100591: Stereo

Device: name="CA0132 Analog", type="Audio", device=0

Converter: stream=0, channel=0

SDI-Select: 0

PCM:

rates [0x1ec]: 16000 22050 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

Control: name="Analog-Mic2 Capture Volume", index=0, device=0

ControlAmp: chs=3, dir=In, idx=0, ofs=0

Control: name="Analog-Mic2 Capture Switch", index=0, device=0

ControlAmp: chs=3, dir=In, idx=0, ofs=0

Device: name="CA0132 Analog Mic-In2", type="Audio", device=2

Amp-In caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1

Amp-In vals: [0x5a 0x5a]

Converter: stream=0, channel=0

SDI-Select: 0

PCM:

rates [0x1ec]: 16000 22050 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=0, channel=0

SDI-Select: 0

Digital:

Digital category: 0x0

IEC Coding Type: 0x0

PCM:

rates [0x5f0]: 32000 44100 48000 88200 96000 192000

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 0x10079b: Stereo Digital Amp-In

Control: name="What U Hear Capture Volume", index=0, device=0

ControlAmp: chs=3, dir=In, idx=0, ofs=0

Control: name="What U Hear Capture Switch", index=0, device=0

ControlAmp: chs=3, dir=In, idx=0, ofs=0

Device: name="CA0132 What U Hear", type="Audio", device=4

Amp-In caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1

Amp-In vals: [0x5a 0x5a]

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

Pincap 0x00010014: OUT EAPD Detect

EAPD 0x2: EAPD

Pin Default 0x01014010: [Jack] Line Out at Ext Rear

Conn = 1/8, Color = Green

DefAssociation = 0x1, Sequence = 0x0

Pin-ctls: 0x40: OUT

Unsolicited: tag=05, enabled=1

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Connection: 1

0x02

Node 0x0c [Pin Complex] wcaps 0x400701: Stereo Digital

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

Pincap 0x00000010: OUT

Pin Default 0x014570f0: [Jack] SPDIF Out at Ext Rear

Conn = Optical, Color = Yellow

DefAssociation = 0xf, Sequence = 0x0

Pin-ctls: 0x00:

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Connection: 1

0x06

Node 0x0e [Pin Complex] wcaps 0x400681: Stereo Digital

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 0x0221401f: [Jack] HP Out at Ext Front

Conn = 1/8, Color = Green

DefAssociation = 0x1, Sequence = 0xf

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

Pincap 0x0000001c: OUT HP Detect

Pin Default 0x02216011: [Jack] HP Out at Ext Front

Conn = 1/8, Color = Orange

DefAssociation = 0x1, Sequence = 0x1

Pin-ctls: 0x00:

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

Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0

Amp-In vals: [0x00 0x00]

Pincap 0x00000134: IN OUT Detect

Vref caps: HIZ

Pin Default 0x02012014: [Jack] Line Out at Ext Front

Conn = 1/8, Color = Grey

DefAssociation = 0x1, Sequence = 0x4

Pin-ctls: 0x20: IN VREF_HIZ

Unsolicited: tag=04, enabled=1

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Connection: 1

0x04

Node 0x12 [Pin Complex] wcaps 0x400481: Stereo

Control: name="Mic1-Boost (30dB) Capture Switch", index=0, device=0

ControlAmp: chs=1, dir=In, idx=0, ofs=0

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 0x908700f0: [Fixed] Line In at Int N/A

Conn = Analog, 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=03, enabled=1

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Node 0x17 [Audio Output] wcaps 0x49d: Stereo Amp-Out

Amp-Out caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1

Amp-Out vals: [0x5a 0x5a]

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

 

 

 

Codec: Intel PantherPoint HDMI

Address: 3

AFG Function Id: 0x1 (unsol 0)

Vendor Id: 0x80862806

Subsystem Id: 0x1028057b

Revision Id: 0x100000

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 CLKSTOP EPSS

Power: setting=D0, actual=D0, Clock-stop-OK

GPIO: io=0, o=0, i=0, unsolicited=0, wake=0

Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital

Converter: stream=0, channel=0

Digital: Enabled

Digital category: 0x0

IEC Coding Type: 0x0

PCM:

rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000

bits [0x1e]: 16 20 24 32

formats [0x5]: PCM AC3

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital

Converter: stream=0, channel=0

Digital: Enabled

Digital category: 0x0

IEC Coding Type: 0x0

PCM:

rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000

bits [0x1e]: 16 20 24 32

formats [0x5]: PCM AC3

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital

Converter: stream=0, channel=0

Digital: Enabled

Digital category: 0x0

IEC Coding Type: 0x0

PCM:

rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000

bits [0x1e]: 16 20 24 32

formats [0x5]: PCM AC3

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP

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="ELD", index=0, device=3

Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

Amp-Out vals: [0x00 0x00]

Pincap 0x09000094: OUT Detect HBR HDMI DP

Pin Default 0x18560010: [Jack] Digital Out at Int HDMI

Conn = Digital, Color = Unknown

DefAssociation = 0x1, Sequence = 0x0

Pin-ctls: 0x40: OUT

Unsolicited: tag=01, enabled=1

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Connection: 1

0x02

Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP

Control: name="IEC958 Playback Con Mask", index=1, device=0

Control: name="IEC958 Playback Pro Mask", index=1, device=0

Control: name="IEC958 Playback Default", index=1, device=0

Control: name="IEC958 Playback Switch", index=1, device=0

Control: name="ELD", index=0, device=7

Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

Amp-Out vals: [0x00 0x00]

Pincap 0x09000094: OUT Detect HBR HDMI DP

Pin Default 0x18560020: [Jack] Digital Out at Int HDMI

Conn = Digital, Color = Unknown

DefAssociation = 0x2, Sequence = 0x0

Pin-ctls: 0x40: OUT

Unsolicited: tag=02, enabled=1

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Connection: 1

0x03

Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP

Control: name="IEC958 Playback Con Mask", index=2, device=0

Control: name="IEC958 Playback Pro Mask", index=2, device=0

Control: name="IEC958 Playback Default", index=2, device=0

Control: name="IEC958 Playback Switch", index=2, device=0

Control: name="ELD", index=0, device=8

Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

Amp-Out vals: [0x00 0x00]

Pincap 0x09000094: OUT Detect HBR HDMI DP

Pin Default 0x18560030: [Jack] Digital Out at Int HDMI

Conn = Digital, Color = Unknown

DefAssociation = 0x3, Sequence = 0x0

Pin-ctls: 0x40: OUT

Unsolicited: tag=03, enabled=1

Power states: D0 D3 EPSS

Power: setting=D0, actual=D0

Connection: 1

0x04

Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono

 

Edited by z1326
For long texts, please use Special BBCode > Spoiler
Link to comment
Share on other sites

I‘ve made a mistake in post #642, injection of layout id 3 is no essential for HDMI audio output. I found that if the second heeadphone jack (pathmap NodeID 16 --- NodeID 3 , whicn means it should be node 10 --- node 3 in hex. ) show up in "System-Pref" - "Sound" - "Output" then the HDMI audio won't work. However if the second heeadphone jack is deleted from the system the HDMI audio output will return to normal.

Link to comment
Share on other sites

@vit9696, I don't mind. If somebody provide WORKING resources. Maybe we should wait for @wern apfel. 

Please don't wait for me, i've give it up, since i've uploaded the first patched kext nmano (manor) and Andres are trying to show me that they can do it better (with help from Mirone), instead to give me some feedback they always repatch my kext to layout-id 9 which seems to be a magic number, they do it with AppleHDApatcher which unfortunately can not handle this codec. The reason why they say that it works is: this codec has ram where the values are stored so after they repatch my kext it works until they completely power off the computer and the caps get empty.

Finally Andres gives you the right binary patch, so good luck with this layout-id 9 patchers :hysterical:

I‘ve made a mistake in post #642, injection of layout id 3 is no essential for HDMI audio output. I found that if the second heeadphone jack (pathmap NodeID 16 --- NodeID 3 , whicn means it should be node 10 --- node 3 in hex. ) show up in "System-Pref" - "Sound" - "Output" then the HDMI audio won't work. However if the second heeadphone jack is deleted from the system the HDMI audio output will return to normal.

You can try this kext

Link to comment
Share on other sites

wern apfel, I understand your pain but the audience here did weird things instead of providing the reports. Not only they did not reply which layouts are needed and are reliable they even troubled me on github :/ In the end we merged the last available solution, and decided to forget about this codec forever. Who cares whether it does or does not work :D

 

And as for "magic" layout numbers it is for the rules. If I remember correctly we set a specific range of custom layouts for sanity reasons.

 

I do guess if you eventually manage to line all these people up, and make them send proper reports, so that we end up with one or two layouts, it can be changed upstream. As for now… so be it.

  • Like 1
Link to comment
Share on other sites

@wern apfel

I tried your kext published in #532. I injected layout id 1 as guided and it didn't work for my Alienware M17X R4. In "System Pref" - "Sound", all of the input and output devices are gone.

However I've been working with another guy in the past days and so far we've made an acceptable modification. I'll talk to him and try to publish our work.

Link to comment
Share on other sites

Thats not an issue for me, the issue is that the most CA0132 user do not now that there is a better working kext, i've also seen the layout-id 9 kext at toonymac. 

 

For me it looks like they are only looking for credits.


@wern apfel I tried your kext published in #532. I injected layout id 1 as guided and it didn't work for my Alienware M17X R4. In "System Pref" - "Sound", all of the input and output devices are gone. However I've been working with another guy in the past days and so far we've made an acceptable modification. I'll talk to him and try to publish our work.

Maybe I've made a mistake, you can also try this one, they does not work at Sierra!

Link to comment
Share on other sites

I've already pasted the codec file in #642, and these are the reflection relationship between hardwares and routes.

 

(All the following node numbers are in hex.)

 

This laptop has internal mic above the LCD, internal speakers on the front and four 1/8 jacks on the right side.

 

node 7 - node 12

# internal mic

 

node b - node 2

# internal speakers

 

node d - node 6

# spdif out, 1/8 jack A, the jack beside the USB3.0 port

 

node 8 - node 11 - node 4

# line in and line out combo, 1/8 jack B, the jack beside jack A, in Windows this jack is usually used as external mic in, but when you set 5.1 output and keep jack C and jack D empty, this jack could be used as output and it can output left front, left back, right front and right back channels, however it can’t output the middle channel and woofer channel. However if you link output devices (headphone, speakers, etc) to jack C or D, then this jack could not be used as output.

 

node 10 - node 3

# headphone out, jack C, the jack beside jack B. In order to get the HDMI audio output, this route should be disabled. In fact it might be another input/output combo jack because in Windows this jack is usually used as headphone out, but when jack B is occupied by output device (headphones, external speakers, etc) , this jack could be used as external mic in.

 

node f - node 2

# 1/8 jack D, headphone jack, the jack beside jack C, you can set auto-switch between this jack and internal speakers.

 

node a -node 13

internal recording route called as “what U hear”, in Windows you can record the audio which CA0132 outputs realtime, for example you can record a CD the same time you’re listening to it.

 

node 9 - node e

# seemed to be spdif in, but I can’t find that anywhere, even in Windows.

 

According to my partner biggreat1976 all of the input/output route only have two node and the lack of middle mixer node makes volume control unavailable.

 

So this is what we get finally:

 

internal speaker output

internal mic input

headphone jack D output

auto switch between headphone jack D and internal speakers

headphone jack C disabled ( in order to get HDMI audio output )

Link to comment
Share on other sites

Starting with version 1.0.12 (when it is released) AppleALC will automatically disable itself on unknown systems (at the moment everything except 10.8, 10.9, 10.10, 10.11) unless -alcbeta argument is provided. This is a reasonable decision protecting beta users for now and in the future.

  • Like 6
Link to comment
Share on other sites

So I installed the most recent AppleALC v1.0.12 kext in my /EFI/CLOVER/KEXTS/10.11 a little over 20 hours ago and so far I haven't had a single audible quirk such as sound distortion or buzzing during watching an mkv movie and numerous Youtube vids which is quite remarkable. My system uses ALC887/layout id 11. I'm hoping this isn't a placebo effect and the problems that I used to have won't resurface once I restart my system. My gratitude goes to the devs who have made this kext available which is easy to install and such a streamlined process. \

 

---EDIT---

False positive. I am still receiving sound distortion and/or buzzing during audio/video playback :(

Edited by Frank Nitty
Link to comment
Share on other sites

×
×
  • Create New...