]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: codecs: rt722: add condition to SetLED for mic
authorShuming Fan <shumingf@realtek.com>
Tue, 9 Dec 2025 07:40:49 +0000 (15:40 +0800)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Dec 2025 13:57:38 +0000 (14:57 +0100)
Some SKUs don't have the internal mic, so the patch adds the condition to check
whether the SKU has the internal mic or not.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/657
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt722/init.conf

index c820e55e471197809da54b92573d647d690eadd5..40f245856d43a4c08176476c7381c5f6b14e7a38 100644 (file)
@@ -10,4 +10,11 @@ BootSequence [
        cset "name='rt722 FU0F Capture Volume' 63"
 ]
 
-Macro [{ SetLED { LED="mic" Action="attach" CtlId="rt722 FU1E Capture Switch" } }]
+If.mic_init_rt722 {
+       Condition {
+               Type String
+               Needle "rt722"
+               Haystack "${var:MicCodec1}"
+       }
+       True.Macro [{ SetLED { LED="mic" Action="attach" CtlId="rt722 FU1E Capture Switch" } }]
+}