You are not logged in.

#1 2020-04-12 05:24:27

tchici
Member
Registered: 2020-03-29
Posts: 21

[SOLVED] Internal Microphone Not Detected/No Input Sound

Hi.

I've been trying to setup my laptop's internal microphone for a couple
of days. In case this is relevant: I had to add the kernel parameter
`snd_nd-intel-dspcfg.dsp_driver=1` for audio output to work.
I tested using `arecord`, then `aplay`.

Here is the output of `alsa-info.sh`:
http://alsa-project.org/db/?f=f4bdfbe0c … 23dcf30d8d

At first I was purely using ALSA. I tried editing
`/etc/modprobe.d/modprobe.conf` with these configurations:

options snd-hda-intel model=hp-laptop
options snd-hda-intel model=hp-laptop-dmic
options snd-hda-intel enable_msi=1
options snd-hda-intel model=laptop-dmic,headset-mic

I rebooted between each change.

The output of `alsamixer` remained the same:

┌────────────────────────────── AlsaMixer v1.2.2 ──────────────────────────────┐
│ Card: HDA Intel PCH                                  F1:  Help               │
│ Chip: Realtek ALC285                                 F2:  System information │
│ View: F3: Playback  F4:[Capture] F5: All             F6:  Select sound card  │
│ Item: Capture [dB gain: 0.00, 0.00]                  Esc: Exit               │
│                                                                              │
│                          ┌──┐       ┌──┐       ┌──┐                          │
│                          │  │       │  │       │  │                          │
│                          │  │       │  │       │  │                          │
│                          │  │       │  │       │  │                          │
│                          │  │       │  │       │  │                          │
│                          │  │       │  │       │  │                          │
│                          │  │       │  │       │  │                          │
│                          │  │       │  │       │  │                          │
│                          │  │       │  │       │  │                          │
│                          │  │       │  │       │  │                          │
│                          │  │       │  │       │▒▒│                          │
│                          │  │       │▒▒│       │▒▒│                          │
│                          │  │       │▒▒│       │▒▒│                          │
│                          └──┘      L└──┘R      └──┘                          │
│                                   CAPTURE                                    │
│                          0<>0      18<>18     24<>24                         │
│                       Mic Boost < Capture  > Digital                         │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────

I tried remapping pins using `hdajackretask` but I just get static that
does not react to external sound (I mean static is constant not changing
when I make a sound). Also, maybe worth noting, `hdajackretask` would hang
my system sometimes.

Also, when I changed the pins, `alsamixer` did show an "internal mic."

Then I installed PulseAudio because I read its simpler. I used
`pavucontrol` to check input devices. There was none. Read the Wiki and
edited `/etc/pulse/default.pa` and added the following:

load-module module-alsa-source device=hw:0,0

After rebooting, I see a "Built-in Audio" as input device, but it does
not capture anything.

I'm now at a dead end. Any clues? Also, maybe my audio chip is not
supported by the Linux kernel because I don't see it here:
https://www.kernel.org/doc/html/latest/ … odels.html

Oh, and the mic does work on Windows 10, so its not damaged.

Last edited by tchici (2020-07-02 10:45:57)

Offline

#2 2020-04-12 09:36:45

tchici
Member
Registered: 2020-03-29
Posts: 21

Re: [SOLVED] Internal Microphone Not Detected/No Input Sound

Maybe worth adding: If I remove the `snd_nd-intel-dspcfg.dsp_driver=1`             
parameter, I get errors from `sof-audio-pci` in `dmsg`:

[    2.914923] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100    
[    2.915231] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver    
[    3.425448] snd_soc_skl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100    
[    3.425942] snd_soc_skl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver    
[    3.650619] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100    
[    3.651119] sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver    
[    3.651137] sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002)           
[    3.651542] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100    
[    4.358548] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])    
[    4.363714] sof-audio-pci 0000:00:1f.3: use msi interrupt mode                   
[    4.447854] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5                 
[    4.447862] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now    
[    4.448809] sof-audio-pci 0000:00:1f.3: Direct firmware load for intel/sof/sof-cnl.ri failed with error -2    
[    4.448817] sof-audio-pci 0000:00:1f.3: error: request firmware intel/sof/sof-cnl.ri failed err: -2    
[    4.448822] sof-audio-pci 0000:00:1f.3: error: failed to load DSP firmware -2    
[    4.574693] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -2

And then no audio at all, and `alsamixer` cannot open mixer.

Offline

#3 2020-04-12 10:22:37

tchici
Member
Registered: 2020-03-29
Posts: 21

Re: [SOLVED] Internal Microphone Not Detected/No Input Sound

Apparently, I needed to install firmware to make snd-audio-pci to work,
so that is what I did. Now audio works fine without
`snd_nd-intel-dspcfg.dsp_driver=1` and I get a lot of microphone input,
but they all provide static.

Since I am using `sof-audio-pci` now, I'm not sure how to troubleshoot it,
as the wiki doesn't mention how.

I am using sof-audio-pci because it is auto-detected...

Here is new output of `alsa-info.sh`:
http://alsa-project.org/db/?f=fdabf5fa3 … 1bc3ac62c4

Offline

#4 2020-04-13 14:06:17

tchici
Member
Registered: 2020-03-29
Posts: 21

Re: [SOLVED] Internal Microphone Not Detected/No Input Sound

Using sof-audio-pci breaks dmix, so I guess I won't use it anymore and
just force `snd-intel-dspcfg.dsp_driver=1`.

I don't know which one I am supposed to use:
`snd-intel-dspcfg.dsp_driver=1` works well, but sof-audio-pci is auto-
detected.

Either way, I still have no luck with internal microphone working.
I've been searching the internet all I can, but still no luck...

Offline

#5 2020-07-02 10:45:34

tchici
Member
Registered: 2020-03-29
Posts: 21

Re: [SOLVED] Internal Microphone Not Detected/No Input Sound

I got this working after installing `sof-firmware`. I feel like I already tried doing this before, but maybe there was an update to `sof-firmware` that added support for my hardware.

Here is a new output of `alsa-info.sh` for those who are curious:
<http://alsa-project.org/db/?f=74665a1af … c755108e69>

Offline

#6 2021-06-21 01:43:22

Drew
Member
Registered: 2014-10-02
Posts: 7

Re: [SOLVED] Internal Microphone Not Detected/No Input Sound

What did you actually need to get this working? Did you keep anything in modprobe.conf? Was it really only these two things?
- install sof-firmware
- boot with snd-intel-dspcfg.dsp_driver=1

How did you know you were using sof-audio-pci and how did you stop using it? Was it a part of your final setup?

I have the same problem and can get some internal mic detected with "options snd-hda-intel model=laptop-dmic" but that's about it.

Last edited by Drew (2021-06-21 02:33:16)

Offline

#7 2021-06-21 07:23:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,547

Re: [SOLVED] Internal Microphone Not Detected/No Input Sound

you'll disable sof-firmware with the snd-intel-dspcfg.dsp_driver=1 parameter. You'd usually need to just have sof-firmware installed without any other kernel parameters, whether or not you are using sof-audio-pci will be shown by dmesg and lsmod with regards to the loaded modules.

Please open a new thread if this is insufficient to help you as this one is marked as solved

Offline

Board footer

Powered by FluxBB