Bug 215988

Summary: 0414:a00d No input for Mic/Line-In
Product: Drivers Reporter: Brock Szuszczewicz (13r0ck)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: RESOLVED CODE_FIX    
Severity: normal CC: tiwai
Priority: P1    
Hardware: AMD   
OS: Linux   
Kernel Version: 5.17.5 Subsystem:
Regression: No Bisected commit-id:
Attachments: output from lsbusb -v
alsa-info output
correct alsa info
Kernel Patch

Description Brock Szuszczewicz 2022-05-16 19:48:27 UTC
Created attachment 300979 [details]
output from lsbusb -v

"ID 0414:a00d Giga-Byte Technology Co., Ltd USB Audio" is the built in motherboard analog jacks on some gigabyte b(450/550) motherboards.

The symptom is the headphones create output, but the input (both microphone and line-in) do not work in most applications. This issue occurs in both pulseaudio and pipewire.

Trying to solve the issue in wireplumber was [redirected](https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/268#note_1385274) to ALSA.

Disableing using ACP via wireplumber seemed to almost fix the mic-in issue, but completely broke headphones. 

Attached is the output of lsusb -v
Comment 1 Brock Szuszczewicz 2022-05-16 20:02:01 UTC
Might be related to https://bugzilla.kernel.org/show_bug.cgi?id=206873
Comment 2 Brock Szuszczewicz 2022-05-17 00:10:32 UTC
Probably very similar to https://lore.kernel.org/all/20200408140449.22319-1-tiwai@suse.de/
From my naive modifications to that, I have not gotten mic/line-in to work though.
Comment 3 Brock Szuszczewicz 2022-05-19 00:26:36 UTC
Probably a dupe of https://bugzilla.kernel.org/show_bug.cgi?id=206543, but leaving this open as the thread there has been derailed with off topic issues
Comment 4 Brock Szuszczewicz 2022-05-19 01:10:25 UTC
My apologies, my link in comment 3 is wrong, this might be a dupe of https://bugzilla.kernel.org/show_bug.cgi?id=206873
Comment 5 Brock Szuszczewicz 2022-05-19 01:51:18 UTC
Created attachment 300991 [details]
alsa-info output
Comment 6 Brock Szuszczewicz 2022-05-19 20:46:46 UTC
Created attachment 301000 [details]
correct alsa info

The last attached `alsa-info` was from a modified kernel, this is from a clean install.
Comment 7 Brock Szuszczewicz 2022-05-25 00:37:18 UTC
Created attachment 301036 [details]
Kernel Patch

Thi kernel patch is provided by Takashi Iwai
Thank you so much for the help!

To completely fix the mic another patch is required in userspace here:
https://github.com/alsa-project/alsa-ucm-conf/pull/156
Comment 8 Takashi Iwai 2022-05-25 14:22:33 UTC
The patch was merged to sound git tree, likely included in 5.19-rc1 (via the second pull request).