From: Jaroslav Kysela Date: Mon, 19 Jan 2026 09:01:06 +0000 (+0100) Subject: USB-Audio: ALC4080 - add Headset device X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f3ed8d34e7e8e9e624a481e3ad380848ee95e8a2;p=alsa-ucm-conf.git USB-Audio: ALC4080 - add Headset device Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf b/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf index 6b88111..b061dde 100644 --- a/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf +++ b/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf @@ -38,6 +38,12 @@ Define { Line1Jack "Line - Input Jack" Line1PCM "1" + HeadsetName "" + HeadsetMixer "" + HeadsetMindex "" + HeadsetJack "" + HeadsetPCM "" + SpdifName "S/PDIF Output" SpdifPCM "3" SpdifMixer "PCM" @@ -74,6 +80,20 @@ If.spdif_ctl { } } +If.headset_ctl { + Condition { + Type ControlExists + Control "name='Headset Capture Switch'" + } + True.Define { + HeadsetName "Headset" + HeadsetMixer "Headset" + HeadsetMindex "0" + HeadsetJack "Headset - Input Jack" + HeadsetPCM "1" + } +} + If.spdif_nodev { Condition { Type RegexMatch @@ -336,3 +356,28 @@ If.mic2 { } } } + +If.headset { + Condition { + Type String + Empty "${var:HeadsetName}" + } + False.SectionDevice."Headset" { + Comment "${var:HeadsetName}" + + EnableSequence [ + cset "name='${var:HeadsetMixer} Capture Switch',index=${var:HeadsetMindex} on" + ] + + DisableSequence [ + cset "name='${var:HeadsetMixer} Capture Switch',index=${var:HeadsetMindex} off" + ] + + Value { + CapturePriority 500 + CapturePCM "hw:${CardId},${var:HeadsetPCM}" + JackControl "${var:HeadsetJack}" + CaptureMixerElem "${var:HeadsetMixer},${var:HeadsetMindex}" + } + } +}