Internal Mic not Working For AMD

Hello, I'm using Zorin 16.2 with kernel version 5.15.0-58-generic. I'm using Lenovo Yoga Slim 7 Pro 14ARH7 Ryzen9 6900HS model 82UU002BID. After I install Zorin OS (dual boot with Windows 11), my internal mic are not detected in Zorin but detected in Windows. Configuring pulseaudio and alsamixer doesn't work since alsamixer seems to not detect the internal mic itself. Here are the output for the commands:

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_32_00.6
	Driver: module-alsa-card.c
	Owner Module: 23
	Properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0x987c0000 irq 93"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:32:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:32:00.6/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "15e3"
		device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
		device.string = "1"
		device.description = "Family 17h (Models 10h-1fh) HD Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: no)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 39268, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
		analog-output-headphones: Headphones (priority: 9900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo

Card #1
	Name: alsa_card.pci-0000_32_00.1
	Driver: module-alsa-card.c
	Owner Module: 24
	Properties:
		alsa.card = "0"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0x987c8000 irq 92"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:32:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:32:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "1640"
		device.string = "0"
		device.description = "HD-Audio Generic"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1

$ lspci | grep Audio
32:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1640
32:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 60)
32:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller

$ inxi -SMA
System:    Host: teresa-Yoga-Slim-7-Pro-14ARH7 Kernel: 5.15.0-58-generic x86_64 bits: 64 Desktop: Gnome 3.38.4 
           Distro: Zorin OS 16.2 
Machine:   Type: Laptop System: LENOVO product: 82UU v: Yoga Slim 7 Pro 14ARH7 serial: <superuser/root required> 
           Mobo: LENOVO model: LNVNB161216 v: SDK0T76493 WIN serial: <superuser/root required> UEFI: LENOVO v: KHCN21WW 
           date: 08/10/2022 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel 
           Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor driver: snd_pci_acp6x 
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio driver: snd_hda_intel 
           Sound Server: ALSA v: k5.15.0-58-generic 

$ lspci -v | grep Audio
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
32:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1640
32:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 60)
	Subsystem: Lenovo Raven/Raven2/FireFlight/Renoir Audio Processor
32:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
	Subsystem: Lenovo Family 17h (Models 10h-1fh) HD Audio Controller

$ amixer -c 1
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 43 [49%] [-33.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 254 [100%] [-0.20dB]
  Front Right: Playback 254 [100%] [-0.20dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 1 [33%] [10.00dB]
  Front Right: 1 [33%] [10.00dB]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [30.00dB] [on]
  Front Right: Capture 63 [100%] [30.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'

I found this thread that seems to suggest that the ALC257 doesn't handle acp6x DMIC device and need to reconfigure the kernel in order for the internal mic to be detected. Is there a workaround to detect the internal mic other that recompiling the kernel? Thank you.

See if the terminal command in this thread to kill pulseaudio and force ALSA to load helps:

What is the output from the terminal command:

arecord -l

?

The output is still the same

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Looks like Intel has screwed things up (I wonder why? Hmmm!)

https://forums.linuxmint.com/viewtopic.php?p=1576319&sid=afd845a4fa2b7822726343faaf40aa8c#p1576319

So looks like you will either need to get an external usb microphone or get a set of these. Work great on Devuan.

1 Like

Gee, okay. Thank you so much!

Okay, guess I'll stick with my headphone for now. Thanks!