]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
bytcr-rt5640: fix the execution order
authorJaroslav Kysela <perex@perex.cz>
Thu, 14 Jan 2021 17:31:24 +0000 (18:31 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 Jan 2021 17:32:06 +0000 (18:32 +0100)
The includes must be run _after_ defines. The Include directives
have precedence. Put everything to If compound.

Fixes: bdd05ac339 ("bytcr-rt5640: Add support for devices without speakers and/or an internal mic")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/bytcr-rt5640/HiFi-Components.conf
ucm2/bytcr-rt5640/HiFi-LongName.conf

index a76b42d0b41483fc2843ad2991162ce2fe76bd22..19997178a9346085c5aeaa3fda6f1cd314fd0cbe 100644 (file)
@@ -25,7 +25,10 @@ If.mono {
        }
 }
 
-Include.hs.File "/codecs/rt5640/HeadPhones.conf"
+If.hp {
+       Condition { Type String Empty "" }
+       True.Include.hs.File "/codecs/rt5640/HeadPhones.conf"
+}
 
 If.dmic1 {
        Condition {
@@ -63,4 +66,7 @@ If.in3 {
        }
 }
 
-Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"
+If.hsmic {
+       Condition { Type String Empty "" }
+       True.Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"
+}
index 6cb55565baecf88de4718aa1c970cd1c8466b517..34acef8142f0b7f42f9eeffbabdb99225440f0d4 100644 (file)
@@ -25,7 +25,10 @@ If.mono {
        }
 }
 
-Include.hs.File "/codecs/rt5640/HeadPhones.conf"
+If.hp {
+       Condition { Type String Empty "" }
+       True.Include.hs.File "/codecs/rt5640/HeadPhones.conf"
+}
 
 If.dmic1 {
        Condition {
@@ -63,4 +66,7 @@ If.in3 {
        }
 }
 
-Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"
+If.hsmic {
+       Condition { Type String Empty "" }
+       True.Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"
+}