]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: sof-hda-dsp: Update Mic LED settings
authorJaroslav Kysela <perex@perex.cz>
Wed, 7 Dec 2022 09:18:04 +0000 (10:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 7 Dec 2022 09:18:57 +0000 (10:18 +0100)
Users expect to turn the LED on when only internal mic is off, but
it makes sense to turn this LED when all internal inputs are off.

This configuration may be changed when the affected applications
are updated.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=2134824
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf

index e6a8a156d00690206a1ce244934d68118120dc01..9e8591468992b862b1a5ad8165ee6472588fa4fe 100644 (file)
@@ -9,7 +9,17 @@ If.devdmic {
                Haystack "${CardComponents}"
                Needle "cfg-dmics:"
        }
-       True.Define.DeviceDmic "Mic1"
+       True {
+               Define.DeviceDmic "Mic1"
+               FixedBootSequence [
+                       #
+                       # users expect to turn the LED on when only internal
+                       # mic is off, but it makes sense to turn this LED
+                       # when all internal inputs are off
+                       #
+                       sysw "-/class/sound/ctl-led/mic/card${CardNumber}/detach:Capture Switch"
+               ]
+       }
        True.Define.DeviceMic "Mic2"
 }