From de217e094dd1003b6aae057f273d7ae9f46c6803 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 13 Apr 2022 21:58:18 +0200 Subject: [PATCH] USB-Audio/Realtek/ALC4080: Fix microphone on MSI boards after ASUS changes. Signed-off-by: Johannes Schickel . Signed-off-by: Jaroslav Kysela --- ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf | 30 ++++++++++++++---------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf b/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf index 52f6564..7793119 100644 --- a/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf +++ b/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf @@ -1,4 +1,5 @@ Define.SPDIFIndex "3" +Define.Mic1Name "Microphone" If.asus-rog-usb { Condition { @@ -6,7 +7,21 @@ If.asus-rog-usb { String "${CardComponents}" Regex "USB(0b05:1996)" } - True.Define.SPDIFIndex "2" + True { + Define.SPDIFIndex "2" + Define.Mic1Name "Front Microphone" + + SectionDevice."Mic2" { + # On ASUS ROG Maximus XIII and others, back microphone + Comment "Microphone" + Value { + CapturePriority 300 + CapturePCM "hw:${CardId}" + JackControl "Mic - Input Jack" + CaptureMixerElem "Mic" + } + } + } } SectionDevice."Speaker" { @@ -53,25 +68,16 @@ SectionDevice."Line" { } } -SectionDevice."Mic" { +SectionDevice."Mic1" { EnableSequence [ cset "name='Mic Capture Switch' on" ] - Comment "Front Microphone" + Comment "${var:Mic1Name}" Value { CapturePriority 200 CapturePCM "hw:${CardId},2" JackControl "Mic - Input Jack" CaptureMixerElem "Mic" } - - # On ASUS ROG Maximus XIII and others, back microphone - Comment "Microphone" - Value { - CapturePriority 300 - CapturePCM "hw:${CardId}" - JackControl "Mic - Input Jack" - CaptureMixerElem "Mic" - } } -- 2.47.1