]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
HDA-acp: avoid to create 'Mic ACP LED' control for the HDMI card
authorJaroslav Kysela <perex@perex.cz>
Fri, 7 Jan 2022 09:57:48 +0000 (10:57 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 7 Jan 2022 09:57:52 +0000 (10:57 +0100)
BugLink: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1849#note_1210933
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/HDA/HDA.conf

index 003d94199ee2a6924373f2d33caa3fe31ac5c62b..ab80fa51f8be1d59e4396f8a2b9bf51d03af068b 100644 (file)
@@ -43,13 +43,21 @@ If.use {
                        Comment "Play HiFi quality Music"
                }
 
-               Include.init.File "/HDA/init.conf"
+               If.analog {
+                       Condition {
+                               Type ControlExists
+                               Control "name='Master Playback Switch'"
+                       }
+                       True {
+                               Include.init.File "/HDA/init.conf"
 
-               FixedBootSequence [
-                       cset-new "name='Mic ACP LED Capture Switch' type=bool,count=1 off"
-                       exec "-/sbin/modprobe snd_ctl_led"
-                       sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:Mic ACP LED Capture Switch"
-               ]
+                               FixedBootSequence [
+                                       cset-new "name='Mic ACP LED Capture Switch' type=bool,count=1 off"
+                                       exec "-/sbin/modprobe snd_ctl_led"
+                                       sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:Mic ACP LED Capture Switch"
+                               ]
+                       }
+               }
        }
 }