toleda / audio_CloverALC

macOS Realtek ALC onboard audio with Clover

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mic stops working after a while on OSX 10.12.6 (mobo Z170X-UD5)

igordelorenzi opened this issue · comments

I'm trying to fix my mic on Gigabyte Z170X-UD5 and now I'm stuck on this issue. I'm also running OSX 10.12.6. Any tip?

$ ./audio_cloverALC-130_v0.3.command
 
Agreement
The audio_cloverALC script is for personal use only. Do not distribute
the patch, any or all of the files or the resulting patched AppleHDA.kext
for any reason without permission. The audio_cloverALC script is
provided as is and without any kind of warranty.
 
File: audio_cloverALC-130.command_v0.3
Release Mode
Password:
Print: Entry, ":CFBundleShortVersionString", Does Not Exist
Error occurred, AppleHDA.kext/Contents/Info.plist/BundleShortVersionString not found
No system files were changed
To save a Copy of this Terminal session: Terminal/Shell/Export Text As ...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...90 completed.

For some reason the original AppleHDA.kext was deleted. Once I installed it back (from backup) using KextBeat, the output to earphone began to work! But the problem with mic still remains and it's a bit weird: the Line In (Audio line-in port) is redirecting the audio from the speaker to the mic O.o

Anyone experienced this? I'm using this adapter:

cabo-adaptador-p3-p2-combo-para-fone-e-headset-d_nq_np_326905-mlb25090607516_102016-o

apple-earpods-original-imadxyathm6gkhyp

what ports did you connect the adapter to; specific connector, specific port, sysprefs selections?

Hi @toleda, I will give more info:

I'm using the front panel audio connectors like so:
z1z0x
image

$ system_profiler SPAudioDataType output:

Audio:

    Intel High Definition Audio:

      Audio ID: 1

        Speaker:

          Connection: Internal

        Line Output:

          Connection: 1/8-Inch Jack

        Line Output:

          Connection: 1/8-Inch Jack

        Internal Microphone:

          Connection: Internal

        Line Input:

          Connection: 1/8-Inch Jack

        Line Input:

          Connection: 1/8-Inch Jack

        Headphone:

          Connection: 1/8-Inch Jack

        S/PDIF Optical Digital Audio Output:

          Connection: Combination Output

        HDMI / DisplayPort Output:

          Connection: Display

    Devices:

        Built-in Input:

          Input Channels: 2
          Manufacturer: Apple Inc.
          Current SampleRate: 44100
          Transport: Built-in

        Built-in Line Input:

          Default Input Device: Yes
          Input Channels: 2
          Manufacturer: Apple Inc.
          Current SampleRate: 44100
          Transport: Built-in

        Built-in Output:

          Default Output Device: Yes
          Default System Output Device: Yes
          Manufacturer: Apple Inc.
          Output Channels: 2
          Current SampleRate: 44100
          Transport: Built-in

        Built-in Line Output:

          Manufacturer: Apple Inc.
          Output Channels: 2
          Current SampleRate: 44100
          Transport: Built-in

        Built-in Line Output:

          Manufacturer: Apple Inc.
          Output Channels: 2
          Current SampleRate: 44100
          Transport: Built-in

        Built-in Digital Output:

          Manufacturer: Apple Inc.
          Output Channels: 2
          Current SampleRate: 44100
          Transport: Built-in

        DisplayPort:

          Manufacturer: Apple Inc.
          Output Channels: 2
          Current SampleRate: 48000
          Transport: DisplayPort

        Instant On Sound Effects:

          Manufacturer: Rogue Amoeba Software, Inc.
          Output Channels: 2
          Current SampleRate: 44100
          Transport: Virtual

$ ./audio_cloverALC-130_v0.3.command output:

Agreement
The audio_cloverALC script is for personal use only. Do not distribute
the patch, any or all of the files or the resulting patched AppleHDA.kext
for any reason without permission. The audio_cloverALC script is
provided as is and without any kind of warranty.
 
File: audio_cloverALC-130.command_v0.3
Release Mode
Password:
EFI partition is mounted
System Integrity Protection status: disabled.

OK to patch
codec: 8b19d411 is missing
S/L/E/AppleHDA.kext is not native
Install native AppleHDA.kext
No system files were changed
To save a Copy of this Terminal session: Terminal/Shell/Export Text As ...

System prefs selections:
image
image

Anything else I can provide to help in diagnosis?

"the Line In (Audio line-in port) is redirecting the audio from the speaker to the mic"
Not possible. Speaker is not connected, Headphone is connected as screenshot shows. Mic, represented as Line In, is not connected to any output; only possible with 3rd party app.

Hum, I have some important considerations:

  • I've already tried to use the audio jacks direct on the motherboad (even separately) with no success;
  • I've deducted the output of earphones is being redirected to input of mic because I saw (in sys pref panel) the bars of input level varying with the music that was playing at the moment;
  • I've tested on Windows to be sure the adapter is functional :)

Is there anything I can try to figure out where I can change some config?

What audio jack (all 5 ports) equals what Sysprefs selection?
Deduction is not correct, electrically not possible; basis of misunderstanding
Adapter is working correctly, macOS/AppleHDA audio is working correctly.
Input bars moving is not speaker leaking in mic.

@toleda, I finally figured out what was going on. First, the patch had not been 100% applied because the installed AppleHDA was not the original. So I picked it up from the Sierra installation and applied the patch again. Also, my input adapter was possibly defective, suffering from an "electrical crosstalk" (https://en.wikipedia.org/wiki/Crosstalk) or simply a driver issue because it worked perfectly on Windows... Go figure... Right? I observed this after getting a brand new headset (https://www.amazon.com/HyperX-Headset-Nintendo-HX-HSCA-RD-AM/dp/B074NBSF9N) and tested in a call at Discord.

But since everything is not perfect, now I'm going through the following situation: after some time of use (matter of 30 seconds), the microphone emits a very light popping sound on the headphone and stops working in the middle of the call :(
As a palliative, I open the prefs panel and make a quick swap between the two available Line Ins and, voilà, it back to work. Do you know what could be happening?

UPDATE:
I'm running the following kernel extensions:
image
Note: I tried to add the CodecCommander just to give a shot, but it did not solve my problem...

"the microphone emits a very light popping sound on the headphone and stops working in the middle of the call :("
Mic making a sound is a mic problem. As previously stated, it is impossible for the mic to put sound on the headphones in macOS. Noise on an output is a grounding problem (case to motherboard), connector, cable, headset, etc.
Windows audio and macOS audio are not comparable in any dimension or attribute.
CodecCommander sends specific instructions to the codec, in addition to what AppleHDA does. CodecCommander does not address noise noise problems.

@toleda, you're right, it's a ground problem. I tried to plug directly on the motherboard with no issues, no noise, no sudden interruption... Now I have to figure out how to fix it or or simply forget the case connectors. Thank you a lot!