]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Qualcomm: x1e80100: T14s: add Microphone Mute LED
authorSebastian Reichel <sre@kernel.org>
Mon, 3 Nov 2025 01:55:29 +0000 (02:55 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 9 Oct 2026 08:27:15 +0000 (10:27 +0200)
Add support for the Microphone Mute LED in the Keyboard's MicMute Key,
which is exposed by the lenovo-thinkpad-t14s EC driver that landed in
the 6.18 kernel and uses the "audio-micmute" trigger by default. This
works by creating a virtual capture switch and binding the LED to it.

Something similar should be done for the speaker mute LED, but I'm
not sure how that is supposed to look like. The Speaker Mute LED
automatically toggles when the Speaker Mute Key is pressed, so it
seems to work without explicit handling. But it can get out-of-sync,
if the mute status is modified in software without using the key.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/822
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Qualcomm/x1e80100/LENOVO-T14s.conf
ucm2/Qualcomm/x1e80100/T14s-HiFi.conf
ucm2/Qualcomm/x1e80100/x1e80100.conf

index b98f8ad453c98bb36745518dd8e4fd655f2b2722..e172623a6eb955043648cacfc38ca834c558e854 100644 (file)
@@ -1,4 +1,4 @@
-Syntax 4
+Syntax 6
 
 SectionUseCase."HiFi" {
        File "/Qualcomm/x1e80100/T14s-HiFi.conf"
@@ -11,6 +11,12 @@ BootSequence [
        cset "name='ADC2 Volume' 10"
 ]
 
+Include.led.File "/common/ctl/led.conf"
+Macro [
+       { CtlNew { Arg="name='Mic LED Capture Switch' type=bool,count=1 off" } }
+       { SetLED { LED="mic" Action="attach" CtlId="Mic LED Capture Switch" } }
+]
+
 Include.card-init.File "/lib/card-init.conf"
 Include.ctl-remap.File "/lib/ctl-remap.conf"
 Include.wcd-init.File "/codecs/wcd938x/init.conf"
index b7be44a4727b5048e513cbe951213472fb853cba..5bfda78bd4b170f5e79fd1139a3f78aecb466063 100644 (file)
@@ -97,6 +97,8 @@ SectionDevice."Mic" {
        Value {
                CapturePriority 100
                CapturePCM "hw:${CardId},3"
+               CaptureMixerElem "Mic LED"
+               CaptureSwitch "Mic LED Capture Switch"
        }
 }
 
index 0812f64f8378595335dfff46669d5ff6e3fe87b3..bdf6afba1b654ff419edc6e4adcda0a054f99e5e 100644 (file)
@@ -1,4 +1,4 @@
-Syntax 4
+Syntax 6
 
 Define.DMI_info "${sys:devices/virtual/dmi/id/board_vendor}-${sys:devices/virtual/dmi/id/product_family}-${sys:devices/virtual/dmi/id/board_name}"