Ubuntu 24.04 microphone is not working USB-Audio: ALC4080 Z-590E
My rear microphone is not working on Ubuntu 24.04 (nor on Ubuntu 22), but it can be used normally on Windows 10. Can hear sound After updating the master branch, the microphone still doesn't work, but the response is the same as the sound system Initial feedback on the issue, the following is my hardware information, I am not sure if it is complete http://alsa-project.org/db/?f=2558f03ffd8c55e18f8208a806f3e2336d9fa49c Kernel: k6.8.0-45-generic USB-Audio: ALC4080 ROG STRIX Z590-E
This command can be recorded, but the sound is very low: arecord -D plughw:1,0 -c 1 -r 16000 -f S16_LE output.wav
You can dump UCM mapping using alsaucm -c hw:Audio dump text. It's necessary to check 'Jack' and PCM device name assignents. Also, if the volume can be affected using any mixer controls (use alsamixer / amixer tools using -c Audio switch to access hardware directly without any sound sever).
I have the exact same issue on an MSI X870 Tomahawk that also uses ALC4080. Sound output works, but recording the mic on KDE does not.
When recording from DEV=0 with the following command it actually records the sound output, albeit at a low level:
arecord -D hw:CARD=3,DEV=0 -f dat -vvv a.wav
When recording from DEV=1 it records the mic, but at very low levels:
arecord -D hw:CARD=3,DEV=1 -f dat -vvv a.wav
The problem is I'm using KDE on Arch, and the only input that shows up on KDE for this card is the one that records the output (DEV=0).
@perexg Executing alsaucm -c hw:3 dump text (my card is nr 3) results in the following output:
ALSA lib parser.c:244:(error_node) UCM is not supported for this USB device (Generic USB Audio at usb-0000:0d:00.0-5, high speed @ USB0db0:cd0e)
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import hw:3 use case configuration -6
alsaucm: error failed to open sound card hw:3: No such device or address
Can I help with additional info?
@nfp0 : It looks like a different issue. USB ID 0db0:cd0e is new. Create a new issue and attach output from alsa-info.sh --no-upload, so I can refer it in the fix commit.
alsaucm -c hw:Audio dump text
Verb.HiFi {
Comment "HiFi 2.0 channels"
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,2"
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 "Front 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
}
}
Device.Mic2 {
Comment Microphone
Values {
CaptureCTL "_ucm0001.hw:Audio"
CaptureMixerElem "Analog In,0"
CapturePCM "_ucm0001.hw:Audio"
CapturePriority 400
JackControl "Analog In - Input Jack"
PlaybackCTL "_ucm0001.hw:Audio"
TQ HiFi
}
}
}
Verb."HiFi 5+1" {
Comment "HiFi 5.1 channels"
Device.Speaker {
Comment Speakers
Values {
CaptureCTL "_ucm0001.hw:Audio"
JackControl "Speaker - Output Jack"
PlaybackCTL "_ucm0001.hw:Audio"
PlaybackChannels 6
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,2"
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 "Front 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
}
}
Device.Mic2 {
Comment Microphone
Values {
CaptureCTL "_ucm0001.hw:Audio"
CaptureMixerElem "Analog In,0"
CapturePCM "_ucm0001.hw:Audio"
CapturePriority 400
JackControl "Analog In - Input Jack"
PlaybackCTL "_ucm0001.hw:Audio"
TQ HiFi
}
}
}
Verb."HiFi 7+1" {
Comment "HiFi 7.1 channels"
Device.Speaker {
Comment Speakers
Values {
CaptureCTL "_ucm0001.hw:Audio"
JackControl "Speaker - Output Jack"
PlaybackCTL "_ucm0001.hw:Audio"
PlaybackChannels 8
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,2"
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 "Front 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
}
}
Device.Mic2 {
Comment Microphone
Values {
CaptureCTL "_ucm0001.hw:Audio"
CaptureMixerElem "Analog In,0"
CapturePCM "_ucm0001.hw:Audio"
CapturePriority 400
JackControl "Analog In - Input Jack"
PlaybackCTL "_ucm0001.hw:Audio"
TQ HiFi
}
}
}
amixer -c Audio
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 59 [68%] [-21.00dB] [on]
Front Right: Playback 59 [68%] [-21.00dB] [on]
Rear Left: Playback 60 [69%] [-20.25dB] [on]
Rear Right: Playback 60 [69%] [-20.25dB] [on]
Front Center: Playback 60 [69%] [-20.25dB] [on]
Woofer: Playback 60 [69%] [-20.25dB] [on]
Side Left: Playback 60 [69%] [-20.25dB] [on]
Side Right: Playback 60 [69%] [-20.25dB] [on]
Simple mixer control 'PCM',1
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 73 [84%] [-10.50dB] [off]
Front Right: Playback 73 [84%] [-10.50dB] [off]
Simple mixer control 'PCM',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Line',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 39
Front Left: Capture 23 [59%] [0.00dB] [off]
Front Right: Capture 23 [59%] [0.00dB] [off]
Simple mixer control 'Mic',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 39
Front Left: Capture 29 [74%] [4.50dB] [on]
Front Right: Capture 29 [74%] [4.50dB] [on]
Simple mixer control 'Analog In',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 39
Front Left: Capture 23 [59%] [0.00dB] [on]
Front Right: Capture 23 [59%] [0.00dB] [on]
I have a different Asus motherboard (Asus ROG STRIX B650E-I GAMING WIFI) equipped with the same onboard sound solution (Realtek ALC4080 + Savitech SV3H712 amplifier), and facing the same problem (output works normally but mic input (rear jack) has too little gain -- barely audible with every level maxed out, as shown in the amixer output below):
$ amixer -c Audio
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 60 [69%] [-20.25dB] [on]
Front Right: Playback 60 [69%] [-20.25dB] [on]
Rear Left: Playback 60 [69%] [-20.25dB] [on]
Rear Right: Playback 60 [69%] [-20.25dB] [on]
Front Center: Playback 60 [69%] [-20.25dB] [on]
Woofer: Playback 60 [69%] [-20.25dB] [on]
Side Left: Playback 60 [69%] [-20.25dB] [on]
Side Right: Playback 60 [69%] [-20.25dB] [on]
Simple mixer control 'PCM',1
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 60 [69%] [-20.25dB] [on]
Front Right: Playback 60 [69%] [-20.25dB] [on]
Simple mixer control 'PCM',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Line',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 39
Front Left: Capture 39 [100%] [12.00dB] [on]
Front Right: Capture 39 [100%] [12.00dB] [on]
Simple mixer control 'Mic',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 39
Front Left: Capture 39 [100%] [12.00dB] [on]
Front Right: Capture 39 [100%] [12.00dB] [on]
Simple mixer control 'Analog In',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 39
Front Left: Capture 39 [100%] [12.00dB] [on]
Front Right: Capture 39 [100%] [12.00dB] [on]
The output from alsaucm -c hw:Audio dump text looks slightly different on my end, I think because my computer case lacks front microphone jack (not connected to the board), so I don't have Device.Mic2 for example:
$ alsaucm -c hw:Audio dump text
Verb.HiFi {
Comment "HiFi 2.0 channels"
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,2"
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
}
}
}
Verb."HiFi 5+1" {
Comment "HiFi 5.1 channels"
Device.Speaker {
Comment Speakers
Values {
CaptureCTL "_ucm0001.hw:Audio"
JackControl "Speaker - Output Jack"
PlaybackCTL "_ucm0001.hw:Audio"
PlaybackChannels 6
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,2"
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
}
}
}
Verb."HiFi 7+1" {
Comment "HiFi 7.1 channels"
Device.Speaker {
Comment Speakers
Values {
CaptureCTL "_ucm0001.hw:Audio"
JackControl "Speaker - Output Jack"
PlaybackCTL "_ucm0001.hw:Audio"
PlaybackChannels 8
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,2"
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
}
}
}
How can I help move this issue forward? I'm motivated to have it resolved.
@perexg How can I help move this issue forward? I'm motivated to have it resolved. thanks
The Mic2 device - Microphone in GUI is routed to PCM device 0.
Device.Mic2 {
Comment Microphone
Values {
CaptureCTL "_ucm0001.hw:Audio"
CaptureMixerElem "Analog In,0"
CapturePCM "_ucm0001.hw:Audio"
CapturePriority 400
JackControl "Analog In - Input Jack"
PlaybackCTL "_ucm0001.hw:Audio"
TQ HiFi
}
}
0
You should check if JackControl "Analog In - Input Jack" is correct and if audio mixer Analog In control volume for this input.
See nice report in #528 to provide all findings for an example. I cannot do any testing, the observations should be described to fix the configuration files.