Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mic not working on 14,3 #12

Closed
treymerkley opened this issue May 19, 2020 · 11 comments
Closed

Mic not working on 14,3 #12

treymerkley opened this issue May 19, 2020 · 11 comments

Comments

@treymerkley
Copy link

I'm using Leifliddy's fork. Speakers work great, but the internal microphone still only gives static on the other end. What should I do to fix?

@davidjo
Copy link
Owner

davidjo commented May 28, 2020

Mikes (internal and headset) now working partially.
The sound volume is very low but this seems to be the value returned by OSX kernel driver.
Further amplication at eg the pulse audio level is needed but dont know how to do this yet although PulseEffects seems to be the appropriate feature to be using.

@treymerkley
Copy link
Author

Is it disabled by default, or is there a way to see that the mic is on via CLI? I'm playing with PulseEffects and Pavucontrol but I'm not getting any internal mic activity.

@davidjo
Copy link
Owner

davidjo commented May 31, 2020

arecord -L should show the 2 capture streams

@davidjo
Copy link
Owner

davidjo commented May 31, 2020

I tested using arecord in raw mode with 2 channels, 44100 freq then imported into audacity and used the normalize effect to get audible output

@treymerkley
Copy link
Author

I don't think I see it here, is this what it's supposed to look like?

[trey@citron ~]$ arecord -L
surround21
    2.1 Surround output to Front and Subwoofer speakers
surround40
    4.0 Surround output to Front and Rear speakers
surround41
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50
    5.0 Surround output to Front, Center and Rear speakers
surround51
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
    Discard all samples (playback) or generate zero samples (capture)
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PulseAudio Sound Server)
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
usbstream:CARD=HDMI
    HDA ATI HDMI
    USB Stream Output

@davidjo
Copy link
Owner

davidjo commented Jun 5, 2020

Sorry - it should be arecord -l (ie lower case L)

@andyholst
Copy link

I can confirm the internal microphone is working with kernel v.5.5.19 on MacBookPro13,3

@davidjo
Copy link
Owner

davidjo commented Jun 10, 2020

Glad its "working" for you - dont know why OSX has such a low volume - having looked at the raw dump file Im suspicious Apple has a 16 bit ADC (usual for HDA chips) that is swapped into the low 16 bits of the 24 bit stream format hence the low volume (multiply by 127 gives reasonable volume).
The gain can be set on the intmike widget (0x22) using cs_8409_intmike_volume_setup but havent yet felt comfortable changing this value but you could experiment with it.

@treymerkley
Copy link
Author

treymerkley commented Jun 27, 2020

Here's the output of arecord -l:

[trey@citron ~]$ arecord -l
**** List of CAPTURE Hardware Devices ****

I'm on kernel 5.4.44-1, so let me try on 5.6.16 and see if that makes the difference.

EDIT:

on 5.6 I get

[trey@citron ~]$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: Generic Alt Analog [Generic Alt Analog]
  Subdevices: 7/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6

But still no audio input in Pulse.

@andyholst
Copy link

andyholst commented Jun 28, 2020

@treymerkley if your internal audio input is having 'hiccups', then try by switching between the built-in audio profiles and see if its recognizing the background sound with help of the pavucontrol command, I had that problem with MBP 13,3 model on kernel version 5.5.

@treymerkley
Copy link
Author

That fixed it! Looks like for most users it's just a matter of their distro releasing a stable of a 5.5+ kernel. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants