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>
}
}
-Include.hs.File "/codecs/rt5640/HeadPhones.conf"
+If.hp {
+ Condition { Type String Empty "" }
+ True.Include.hs.File "/codecs/rt5640/HeadPhones.conf"
+}
If.dmic1 {
Condition {
}
}
-Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"
+If.hsmic {
+ Condition { Type String Empty "" }
+ True.Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"
+}
}
}
-Include.hs.File "/codecs/rt5640/HeadPhones.conf"
+If.hp {
+ Condition { Type String Empty "" }
+ True.Include.hs.File "/codecs/rt5640/HeadPhones.conf"
+}
If.dmic1 {
Condition {
}
}
-Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"
+If.hsmic {
+ Condition { Type String Empty "" }
+ True.Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"
+}