Microphone no more detected by KDE

This week microphone just stopped been detected by Manjaro.
I tried both linux54 and linux-latest (linux58 as of writing).

Here some debug info:
$ sudo dmesg | grep snd | xclip -selection clipboard

[    2.859579] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    3.627119] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    3.877630] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3254: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    3.877632] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.877634] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    3.877635] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    3.877635] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    3.877637] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    3.877638] snd_hda_codec_realtek hdaudioC0D0:      Headphone Mic=0x1a
[    3.877639] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12

sudo alsa-info.sh output is HERE

Just to have an idea, here Audio Volume Settings screenshot:

Thanks in advance for hints or solutions! :wink:

ALSA data for kernel v5.4 is showing not showing details for audio device correctly

00:1f.3 Audio device [0403]: Intel Corporation Cannon Point-LP High Definition Audio Controller [8086:9dc8] (rev 30) (prog-if 80)
	DeviceName: Onboard - Sound

this system has an 8th generation Intel CPU and probably has an internal digital microphone array (DMIC) that is not supported by kernel v5.4

you need to use kernel v5.8 and install package sof-firmware to get the new driver for the internal DMIC

System also requires a later version of Pulseaudio (v13.99) that includes patches to support the new firmware
the simplest way to get that at the moment is to change to Manjaro testing branch

Problems with audio on laptop

sudo pacman-mirrors --api --set-branch

and then refresh-mirrors and get updates

sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu

With kernel 5.4 mic worked great until a week ago, however!
What is changed?
I’m not sure I want to ride the crest of the testing wave! :wink:

edit: I’m running:
sudo pacman-mirrors --api --set-branch testing

I updated as stated above, but I can’t get rid of problems:

$ uname -a
Linux dell 5.8.16-2-MANJARO #1 SMP PREEMPT Mon Oct 19 11:33:03 UTC 2020 x86_64 GNU/Linux
 $ yay -Qs sof-firmware
local/sof-firmware 1.6-1
    Sound Open Firmware
$ pulseaudio --version 
pulseaudio 13.99.2-13-g7f4d7

$ sudo dmesg | grep snd 

[    2.852613] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[    2.852632] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    2.973399] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    3.137123] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3254: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    3.137126] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.137128] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    3.137129] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    3.137130] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    3.137132] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    3.137133] snd_hda_codec_realtek hdaudioC0D0:      Headphone Mic=0x1a
[    3.137135] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12

Any other idea? Thanks in advance!!!

inputs and outputs appear to be detected ok in dmesg

suggest you check alsa-info.sh again to see if device is recognised
and if one of the snd_sof drivers is loaded as well as snd_hda_Intel driver

but it may be a problem in PulseAudio, so check if audio device is detected there with:

pacmd list-cards

New sudo alsa-info.sh output is HERE
It says:


!!Loaded ALSA modules
!!-------------------

snd_hda_intel

but no snd_sof ALSA module…

pacmd list-cards seems to detect it:

1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_1f.3>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xa5418000 irq 150"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "9dc8"
		device.product.name = "Cannon Point-LP High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-headphone-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-headset-mic: Headset Microphone (priority 8800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"

Still, thank you for you support!

I started Manjaro from USB and mic works well, damn!

I runned sudo alsa-info.sh there: output HERE

I runned even:

[manjaro@manjaro ~]$  sudo dmesg | grep snd 
[   12.846945] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[   12.846961] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[   12.847183] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   13.090309] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3254: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[   13.090310] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   13.090311] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[   13.090312] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[   13.090312] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[   13.090313] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[   13.090314] snd_hda_codec_realtek hdaudioC0D0:      Headphone Mic=0x1a
[   13.090314] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12




[manjaro@manjaro ~]$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3254 Analog [ALC3254 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

The Profile for the card is set for output only

active profile: <output:analog-stereo>

use this command to change the Profile to ‘Analog Stereo Duplex’ (output + input)

pacmd set-card-profile alsa_card.pci-0000_00_1f.3 output:analog-stereo+input:analog-stereo

But I do not expect that to get everything working again. An external microphone might work but the internal microphone is not likely to work with only the snd_hda_intel driver

The pci device detected name still looks wrong

00:1f.3 Audio device [0403]: Intel Corporation Cannon Point-LP High Definition Audio Controller [8086:9dc8] (rev 30) (prog-if 80)
	DeviceName: Onboard - Sound

I would expect the 2nd line to show the Dell device ID number

    Subsystem: [1028:08a6]

but the ID code is detected in the !!HDA-Intel Codec information section :confused:

Subsystem Id: 0x102808a6

I find a solution from this thread, which reference to The Arch Wiki:

  1. I determined the card and device number of my mic with arecord -l
  2. I edited /etc/pulse/default.pa and insert a load-module line: load-module module-alsa-source device=hw:0,0
  3. Restarted

And now it works correctly.
I don’t think this is a problem solution but a workaround… But it works for now!

Thanks @nikgnomic … The mistery remains unsolved, for now, but I have a solution!

2 Likes

That is a good and simple solution

The only thing that might be a problem in future is if the snd_hda_intel driver is replaced by the new firmware driver, but I would not expect it to stop audio working

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.