OSDN Git Service

rt5640 / bytcr-rt5640: cleanups
[android-x86/external-alsa-ucm-conf.git] / ucm2 / codecs / rt5640 / DigitalMics.conf
index 79da8a3..b4d01ae 100644 (file)
@@ -33,16 +33,24 @@ SectionDevice."Mic" {
                CapturePriority 100
                CapturePCM "hw:${CardId}"
                If.DmicAif1 {
-                       Condition { Type String Empty "${var:HaveAif1}" }
-                       False {
+                       Condition {
+                               Type String
+                               String1 "${var:HaveAif}"
+                               String2 "1"
+                       }
+                       True {
                                CaptureMixerElem "ADC"
                                CaptureVolume "ADC Capture Volume"
                                CaptureSwitch "ADC Capture Switch"
                        }
                }
                If.DmicAif2 {
-                       Condition { Type String Empty "${var:HaveAif2}" }
-                       False {
+                       Condition {
+                               Type String
+                               String1 "${var:HaveAif}"
+                               String2 "2"
+                       }
+                       True {
                                CaptureMixerElem "Mono ADC"
                                CaptureVolume "Mono ADC Capture Volume"
                                CaptureSwitch "Mono ADC Capture Switch"