[Solved] Mint 21.1 on Z790 chipset - no sound from microphone

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
azz
Level 1
Level 1
Posts: 17
Joined: Sun Feb 13, 2022 4:24 pm

[Solved] Mint 21.1 on Z790 chipset - no sound from microphone

Post by azz »

Hi all. I have just upgraded my PC - completely new motherboard and cpu, I mean its not fresh Mint install. All work fine except external microphone. It works fine, I have checked under Windows.

inxi -Fxxxrz

Code: Select all

System:
  Kernel: 6.0.0-1015-oem x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 5.6.8 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: Micro-Star model: MAG Z790 TOMAHAWK WIFI (MS-7D91)
    v: 4.0 serial: <superuser required> UEFI-[Legacy]: American Megatrends LLC.
    v: H.50 date: 04/18/2023
CPU:
  Info: 10-core (6-mt/4-st) model: 13th Gen Intel Core i5-13400F bits: 64
    type: MST AMCP smt: enabled arch: N/A rev: 2 cache: L1: 864 KiB L2: 9.5 MiB
    L3: 20 MiB
  Speed (MHz): avg: 2287 high: 2500 min/max: 800/4600:3300 cores: 1: 2500
    2: 2500 3: 2500 4: 2500 5: 2500 6: 800 7: 2500 8: 2500 9: 2500 10: 2500
    11: 2500 12: 2500 13: 800 14: 2500 15: 2500 16: 2500 bogomips: 79872
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] vendor: Micro-Star MSI
    driver: amdgpu v: kernel pcie: speed: 16 GT/s lanes: 16 ports:
    active: DP-1,DP-3 empty: DP-2,HDMI-A-1 bus-ID: 03:00.0 chip-ID: 1002:73ff
    class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.0x11.2")
    s-diag: 1055mm (41.5")
  Monitor-1: DisplayPort-0 mapped: DP-1 pos: primary,left
    model: Dell P2419H serial: <filter> res: 1920x1080 hz: 60 dpi: 93
    size: 527x296mm (20.7x11.7") diag: 604mm (23.8") modes: max: 1920x1080
    min: 720x400
  Monitor-2: DisplayPort-2 mapped: DP-3 pos: right model: Dell P2419H
    serial: <filter> res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7")
    diag: 604mm (23.8") modes: max: 1920x1080 min: 720x400
  OpenGL:
    renderer: AMD Radeon RX 6600 XT (navi23 LLVM 15.0.6 DRM 3.48 6.0.0-1015-oem)
    v: 4.6 Mesa 22.2.5 direct render: Yes
Audio:
  Device-1: Intel vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:7a50 class-ID: 0403
  Device-2: AMD Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT]
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 03:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-3: Micro Star USB Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-11:6 chip-ID: 0db0:a74b
    class-ID: 0300
  Sound Server-1: ALSA v: k6.0.0-1015-oem running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel driver: iwlwifi v: kernel port: N/A bus-ID: 00:14.3
    chip-ID: 8086:7a70 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Intel vendor: Micro-Star MSI driver: igc v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: N/A bus-ID: 04:00.0 chip-ID: 8086:125c
    class-ID: 0200
  IF: enp4s0 state: down mac: <filter>
  IF-ID-1: br-85d0c3200870 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-2: br-f1bba0499bed state: down mac: <filter>
  IF-ID-3: docker0 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-4: veth114e22c state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-5: veth2bfc5b8 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-6: veth94aa203 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-7: vethd11f46f state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-8: vethe96cab5 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-14:9
    chip-ID: 8087:0033 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 2.5 TiB used: 1.67 TiB (66.7%)
  ID-1: /dev/sda vendor: Seagate model: ST2000DM001-1CH164 size: 1.82 TiB
    speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: CC27 scheme: MBR
  ID-2: /dev/sdb vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 4B6Q scheme: MBR
  ID-3: /dev/sdc vendor: Samsung model: SSD 860 EVO 250GB size: 232.89 GiB
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 4B6Q scheme: GPT
Partition:
  ID-1: / size: 439.04 GiB used: 270.8 GiB (61.7%) fs: ext4 dev: /dev/sdb1
Swap:
  ID-1: swap-1 type: partition size: 18.62 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sdb5
aplay -l

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 3: USB Audio [USB Audio #3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
In the sound settings there is signal level meter that is not changed:
Image
If I disconnect microphone from jack "Microphone USB Audio" disappears, so system can recognize it.

pavucontrol, seems all ok
Image

one strange thing - "no codecs found" in sudo dmesg | grep snd

Code: Select all

[    1.469944] ata9.00: Features: Trust Dev-Sleep NCQ-sndrcv
[    1.955014] ata10.00: Features: Trust Dev-Sleep NCQ-sndrcv
[    6.592789] snd_hda_intel 0000:03:00.1: Force to non-snoop mode
[    6.596597] snd_hda_intel 0000:00:1f.3: no codecs found!
[    6.610136] snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[   10.103263] usbcore: registered new interface driver snd-usb-audio
I don't know is it problem or not...

What I done: installed 6.0 kernel; add "options snd-hda-intel model=headset-mic" into alsa-base.conf; tried to set mic volume separately on left-right channels via pavucontrol.

Nothing changes. Can anyone help me with this trouble?
Last edited by LockBot on Wed Nov 15, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Mint 21.1 on Z790 chipset - no sound from microphone

Post by deepakdeshp »

If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Mint 21.1 on Z790 chipset - no sound from microphone

Post by SMG »

azz wrote: Mon May 15, 2023 11:05 am Hi all. I have just upgraded my PC - completely new motherboard and cpu, I mean its not fresh Mint install. All work fine except external microphone. It works fine, I have checked under Windows.
With a 13th-gen Intel CPU, I recommend going to the newest available kernel which is the 6.1-oem. You can install the latest 6.1-oem kernel with

Code: Select all

sudo apt-get install linux-oem-22.04c
and reboot.

Do you know if the microphone is meant to only work with usb-2 or usb-3 ports? The specs I found for your motherboard indicate there are both types on it. Have you tried connecting the microphone into different ports to see if that makes a difference?

After installing the newer kernel, run

Code: Select all

journalctl -k | grep -Ei "ALSA|HDA|sof[-]|HDMI|snd[_-]|sound|hda.codec|hda.intel"
Edited to add:
The audio information for the board seems to be:
Realtek® ALC4080 Codec
7.1-Channel USB High Performance Audio
Supports S/PDIF output
Supports up to 32-Bit/384 kHz playback on front panel
Image
A woman typing on a laptop with LM20.3 Cinnamon.
azz
Level 1
Level 1
Posts: 17
Joined: Sun Feb 13, 2022 4:24 pm

Re: Mint 21.1 on Z790 chipset - no sound from microphone

Post by azz »

SMG wrote: Thu May 18, 2023 9:48 pm With a 13th-gen Intel CPU, I recommend going to the newest available kernel which is the 6.1-oem.
I have done it, nothing changed :(

Code: Select all

azz@l-mint:~$ uname -r
6.1.0-1012-oem
SMG wrote: Thu May 18, 2023 9:48 pm Do you know if the microphone is meant to only work with usb-2 or usb-3 ports? The specs I found for your motherboard indicate there are both types on it. Have you tried connecting the microphone into different ports to see if that makes a difference?
I have been using simple 3.5mm microphone connected to "MIC-IN" jack, not usb. The reason you see "Microphone USB Audio" on the screenshot is the ALC4080 codec connects to the chipset via internal motherboard usb. Instead of that ALC1220 for example use direct connection.
SMG wrote: Thu May 18, 2023 9:48 pm After installing the newer kernel, run

Code: Select all

journalctl -k | grep -Ei "ALSA|HDA|sof[-]|HDMI|snd[_-]|sound|hda.codec|hda.intel"

Code: Select all

azz@l-mint:~$ journalctl -k | grep -Ei "ALSA|HDA|sof[-]|HDMI|snd[_-]|sound|hda.codec|hda.intel"
тра 23 22:59:43 l-mint kernel: snd_hda_intel 0000:03:00.1: Force to non-snoop mode
тра 23 22:59:43 l-mint kernel: snd_hda_intel 0000:00:1f.3: no codecs found!
тра 23 22:59:43 l-mint kernel: snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
тра 23 22:59:43 l-mint kernel: input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card2/input11
тра 23 22:59:43 l-mint kernel: input: HDA ATI HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card2/input12
тра 23 22:59:43 l-mint kernel: input: HDA ATI HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card2/input13
тра 23 22:59:43 l-mint kernel: input: HDA ATI HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card2/input14
тра 23 22:59:43 l-mint kernel: input: HDA ATI HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card2/input15
тра 23 22:59:47 l-mint kernel: usbcore: registered new interface driver snd-usb-audio
тра 23 22:59:54 l-mint kernel: eth0: renamed from vethda17ae6
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Mint 21.1 on Z790 chipset - no sound from microphone

Post by SMG »

azz wrote: Tue May 23, 2023 4:21 pmI have been using simple 3.5mm microphone connected to "MIC-IN" jack, not usb.
I've helped people with usb external microphones and that was what I thought you had. (I usually think of an external microphone as one of the big tabletop ones.)

What I have found is there are apparently ALSA-UCM issues with the ALC4080 Codec. The necessary info for the MSI Z590 was not merged until this past March, but I do not know which package contains it or if it would work on an MSI Z790.

I did find information saying the microphone worked with the 5.19 kernel, but that kernel will not properly support your CPU.

I'm sorry, but I do not yet know enough about the differences between MSI boards to know which might be the closest to yours to know what would help. Maybe if you check some of the closed issues you will understand the discussion better than me.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
azz
Level 1
Level 1
Posts: 17
Joined: Sun Feb 13, 2022 4:24 pm

Re: Mint 21.1 on Z790 chipset - no sound from microphone

Post by azz »

Seems I have resolved my problem. I have updated alsa ucm config. May be it will useful to anyone.
azz
Level 1
Level 1
Posts: 17
Joined: Sun Feb 13, 2022 4:24 pm

Re: [Solved] Mint 21.1 on Z790 chipset - no sound from microphone

Post by azz »

Some advices to post above.

1. Linux does update sometimes so folders /usr/share/alsa/ucm and /usr/share/alsa/ucm2 can be revert to their original "not working" state. If it happens you should copy them back.

2. At the moment ubuntu 22 can't reading configuration in version 6, but new files use it. So, nothing will work. You should open file /usr/share/alsa/ucm2/USB-Audio/USB-Audio.conf and change the first line from

Code: Select all

Syntax 6
to

Code: Select all

Syntax 4
After that you can check if config ok via command

Code: Select all

alsaucm -c hw:0 dump text
(replace 0 with the proper alsa card number - aplay -l may help)

You should see something like this:

Code: Select all

azz@l-mint:~$ alsaucm -c hw:3 dump text
ALSA lib parser.c:1866:(parse_master_section) unknown field 07y\d in master section
ALSA lib parser.c:937:(parse_sequence) error: sequence command 'disdevall' is ignored
Verb.HiFi {
	Device.Speaker {
		Comment Speakers
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			JackControl "Speaker - Output Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackChannels 2
			PlaybackMixerElem PCM,0
			PlaybackPCM "_ucm0001.hw:Audio"
			PlaybackPriority 200
			TQ HiFi
		}
	}
	Device.Headphones {
		Comment "Front Headphones"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			JackControl "Headphone - Output Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackMixerElem PCM,1
			PlaybackPCM "_ucm0001.hw:Audio,1"
			PlaybackPriority 300
			TQ HiFi
		}
	}
	Device.SPDIF {
		Comment "S/PDIF Output"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackMixerElem PCM,2
			PlaybackPCM "_ucm0001.hw:Audio,3"
			PlaybackPriority 100
			TQ HiFi
		}
	}
	Device.Line1 {
		Comment "Line Input"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			CaptureMixerElem Line,0
			CapturePCM "_ucm0001.hw:Audio,1"
			CapturePriority 100
			JackControl "Line - Input Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			TQ HiFi
		}
	}
	Device.Mic1 {
		Comment Microphone
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			CaptureMixerElem Mic,0
			CapturePCM "_ucm0001.hw:Audio,2"
			CapturePriority 300
			JackControl "Mic - Input Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			TQ HiFi
		}
	}
}
It's ok about two errors in first lines :)
After this you can run command

Code: Select all

pulseaudio -k && sudo alsa force-reload
to restart alsa with out restarting all computer. In my case microphone starts work immediately.
Locked

Return to “Sound”