OSDN Git Service

codecs/rt5640: Make headset optional
[android-x86/external-alsa-ucm-conf.git] / ucm2 / codecs / rt5640 / DigitalMics.conf
index 7566f5b..79da8a3 100644 (file)
@@ -1,9 +1,17 @@
 SectionDevice."Mic" {
        Comment "Internal Digital Microphones"
 
-       ConflictingDevice [
-               "Headset"
-       ]
+       If.have-headset {
+               Condition {
+                       Type String
+                       Empty "${var:HaveHeadsetMic}"
+               }
+               False {
+                       ConflictingDevice [
+                               "Headset"
+                       ]
+               }
+       }
 
        EnableSequence [
                cset "name='Mono ADC MIXL ADC2 Switch' on"