]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
HDA/HiFi-analog.conf: skip Line2 ConflictingDevice when loctl is empty (Line1 not...
authorAli Alaei <ali.alaei.tabatabaei@gmail.com>
Sun, 24 May 2026 14:06:57 +0000 (16:06 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 27 May 2026 11:05:10 +0000 (13:05 +0200)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/764
Signed-off-by: Ali Alaei <ali.alaei.tabatabaei@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/HDA/HiFi-analog.conf

index 06db24e41fcc0aab6eeeef393c7f48ee6df31030..9e44ea893f67871c566ea25de1328abd3f0df4d9 100644 (file)
@@ -283,9 +283,15 @@ If.linefront {
        True.SectionDevice."Line2" {
                Comment "Second Line Output"
 
-               ConflictingDevice [
-                       "Line${var:LineDevice}"
-               ]
+               If.line1exists {
+                       Condition {
+                               Type String
+                               Empty "${var:loctl}"
+                       }
+                       False.ConflictingDevice [
+                               "Line${var:LineDevice}"
+                       ]
+               }
 
                EnableSequence [
                        cset "name='Front Playback Switch' on"