You are not logged in.

#1 2022-03-02 08:57:52

PythonLinux
Member
Registered: 2021-06-25
Posts: 102

Microphone not working

Currently, the sound problem has been resolved but now I have a new issue. The microphone.

I'm assuming it's being detected based on this output of aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC236 Analog [ALC236 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 13: HDMI 7 [HDMI 7]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 14: HDMI 8 [HDMI 8]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 15: HDMI 9 [HDMI 9]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 16: HDMI 10 [HDMI 10]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 17: HDMI 11 [HDMI 11]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[zachary@ZachLinux ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC236 Analog [ALC236 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 13: HDMI 7 [HDMI 7]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 14: HDMI 8 [HDMI 8]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 15: HDMI 9 [HDMI 9]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 16: HDMI 10 [HDMI 10]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 17: HDMI 11 [HDMI 11]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

However, when it's being tested via arecord the result is always a file that has no sound. Does anyone have any pointers?

Offline

#2 2022-03-02 09:20:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: Microphone not working

You solved the sound problem how exactly? Judging by these device names you've set

options snd_intel_dspcfg dsp_driver=1

in a modprobe file which is a hack and expectedly and knowingly breaks mic support assuming it's digital.

You need to be able to fix this with sof-firmware and without that override.

FWIW you posted aplay twice, I assume the second should've been a arecord -l

Offline

#3 2022-03-02 10:12:57

PythonLinux
Member
Registered: 2021-06-25
Posts: 102

Re: Microphone not working

I have two files in my modprobe directory. That line is commented out of both of them. Despite this my internal laptop mic and one I got with a brand new headset (just in this past hour) do not work (and yes, I did reboot after editing.) Here's the contents of both of those files when I send them via cat. Changedspd.conf is blank so I'm not sending that. The content of the other file,sof-dyndbg.conf is as follows:

options snd_sof_intel_byt dyndbg=+p
options snd_sof_intel_bdw dyndbg=+p
options snd_sof_intel_ipc dyndbg=+p
options snd_sof_intel_hda_common dyndbg=+p
options snd_sof_intel_hda dyndbg=+p
options snd_sof dyndbg=+p
options snd_sof_pci dyndbg=+p
options snd_sof_acpi dyndbg=+p
options snd_sof_of dyndbg=+p
options snd_sof_nocodec dyndbg=+p
options soundwire_bus dyndbg=+p
options soundwire_generic_allocation dyndbg=+p
options soundwire_cadence dyndbg=+p
options soundwire_intel_init dyndbg=+p
options soundwire_intel dyndbg=+p
options snd_soc_skl_hda_dsp dyndbg=+p
#options snd_intel_dspcfg dyndbg=+p dsp_driver=1
options snd-hda-codec-realtek dyndbg=+p
options snd-hda-codec-generic dyndbg=+p
options snd-hda-codec-hdmi dyndbg=+p
options snd-hda-intel dyndbg=+p
options snd-hda-codec dyndbg=+p

Basically the audio problem was caused by me trying to load all the modules in the mkinitcpio array.
And no, I posted the actual output of the aplay -l command. Here's a screenshot to prove it https://i.ibb.co/DWH4t5b/test.png (I added arecord -l for debugging purposes)
Edit: Removed oversized image

Last edited by PythonLinux (2022-03-02 11:31:43)

Offline

#4 2022-03-02 11:14:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: Microphone not working

I'm not saying you truncated it, you posted aplay -l twice rather than one aplay -l and one arecord -l. Can't look at the screenshot here and I doubt it contains much of value. For the consideration I mentioned it's irrelevant whether it's the built-in mic or a separate one. If you have a card/driver that's primarily driven by sof-firmware then you can't bend it over to snd_hda_intel without the mic breaking. What would count is adding a completely new card, as in, using a USB headset should work.

In any case, post

arecord -l
sudo dmesg #Maybe post this ungrepped, there should be a lot more info now that you have these debugs enabled
pactl list cards
pactl list sources

Offline

#5 2022-03-02 11:33:52

PythonLinux
Member
Registered: 2021-06-25
Posts: 102

Re: Microphone not working

I removed the oversized image. Sorry about that. I didn't realize it'd mess up the thing when I posted it.
The output for the four commands are as follows:
arecord -l: https://termbin.com/lbj6
sudo dmesg: https://termbin.com/sfsl
pactl list cards: https://termbin.com/ga9j
pactl list sources:https://termbin.com/klfr

Last edited by PythonLinux (2022-03-02 11:34:24)

Offline

#6 2022-03-02 11:53:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: Microphone not working

State: SUSPENDED
	Name: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source
...
	Mute: yes
pactl set-source-mute  alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source off
pactl set-source-volume  alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source 100% 100%

So you have 4 different mic devices, did you try all of them already? Test whether any combination gives you output so

arecord -Dplughw:0,0 test.wav
arecord -Dplughw:0,1 test.wav
arecord -Dplughw:0,6 test.wav
arecord -Dplughw:0,7 test.wav
#For completeness
parecord -d  alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source test.wav
parecord -d alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__source test.wav

run these one after the other and check whether any produce an audible recording

FWIW maybe to check general HW state:

amixer -c0

Offline

#7 2022-03-02 12:02:00

PythonLinux
Member
Registered: 2021-06-25
Posts: 102

Re: Microphone not working

Wow. Big thanks. That fixed it. The

 arecord -Dplughw:0,7 test.wav

worked. How do I make that the default microphone device?

Offline

#8 2022-03-02 12:21:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: Microphone not working

Just that one? 6 didn't work? Since you're probably more generally using pulse the logical correct pulse device should be alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source to make the default from the pulse perspective you'd do

pactl set-default-source alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source

if that one doesn't work either then this gets slightly more annoying for wrapping into pulse logic, because you'd either need to fix the UCM configuration or add as a dirty quick fix to the end of your /etc/pulse/default.pa

.nofail
load-module module-alsa-source source_name="DigitalMicrophone" sink_properties=device.description="Digital Microphone" device=hw:sofhdadsp,7
set-default-source DigitalMicrophone 

or so, maybe post the amixer output so we can check whether you have more than one control

Last edited by V1del (2022-03-02 12:58:01)

Offline

Board footer

Powered by FluxBB