OSDN Git Service

codecs/rt5640: Move out BayTrail-specific pin switches
[android-x86/external-alsa-ucm-conf.git] / ucm2 / codecs / rt5640 / DigitalMics.conf
1 SectionDevice."Mic" {
2         Comment "Internal Digital Microphones"
3
4         ConflictingDevice [
5                 "Headset"
6         ]
7
8         EnableSequence [
9                 cset "name='Mono ADC MIXL ADC2 Switch' on"
10                 cset "name='Mono ADC MIXR ADC2 Switch' on"
11                 cset "name='Stereo ADC MIXL ADC2 Switch' on"
12                 cset "name='Stereo ADC MIXR ADC2 Switch' on"
13
14         ]
15
16         DisableSequence [
17                 cset "name='Mono ADC MIXL ADC2 Switch' off"
18                 cset "name='Mono ADC MIXR ADC2 Switch' off"
19                 cset "name='Stereo ADC MIXL ADC2 Switch' off"
20                 cset "name='Stereo ADC MIXR ADC2 Switch' off"
21
22         ]
23
24         Value {
25                 CapturePriority 100
26                 CapturePCM "hw:${CardId}"
27                 If.DmicAif1 {
28                         Condition { Type String Empty "${var:HaveAif1}" }
29                         False {
30                                 CaptureMixerElem "ADC"
31                                 CaptureVolume "ADC Capture Volume"
32                                 CaptureSwitch "ADC Capture Switch"
33                         }
34                 }
35                 If.DmicAif2 {
36                         Condition { Type String Empty "${var:HaveAif2}" }
37                         False {
38                                 CaptureMixerElem "Mono ADC"
39                                 CaptureVolume "Mono ADC Capture Volume"
40                                 CaptureSwitch "Mono ADC Capture Switch"
41                         }
42                 }
43         }
44 }