Define.HaveHeadPhones2 ""
Define.HaveInternalMic ""
Define.HaveHeadsetMic "yes"
+Define.HaveHeadsetMic2 ""
Define.StereoADC2Mux "DMIC1"
If.DefineAif1 {
}
}
}
+
+If.hsmic2 {
+ Condition {
+ Type String
+ Haystack "${var:HaveHeadsetMic2}"
+ Needle "in1"
+ }
+ True {
+ Include.hsmic.File "/codecs/rt5640/HeadsetMic2-IN1.conf"
+
+ SectionDevice."Headset2" {
+ EnableSequence [
+ cset "name='Headset Mic 2 Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Headset Mic 2 Switch' off"
+ ]
+ }
+ }
+}
--- /dev/null
+SectionDevice."Headset2" {
+ Comment "Headset Microphone 2"
+
+ ConflictingDevice [
+ "Mic"
+ "Headset"
+ ]
+
+ EnableSequence [
+ cset "name='RECMIXL BST1 Switch' on"
+ cset "name='RECMIXR BST1 Switch' on"
+
+ cset "name='Stereo ADC MIXL ADC1 Switch' on"
+ cset "name='Stereo ADC MIXR ADC1 Switch' on"
+ cset "name='Mono ADC MIXL ADC1 Switch' on"
+ cset "name='Mono ADC MIXR ADC1 Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Stereo ADC MIXL ADC1 Switch' off"
+ cset "name='Stereo ADC MIXR ADC1 Switch' off"
+ cset "name='Mono ADC MIXL ADC1 Switch' off"
+ cset "name='Mono ADC MIXR ADC1 Switch' off"
+
+ cset "name='RECMIXL BST1 Switch' off"
+ cset "name='RECMIXR BST1 Switch' off"
+ ]
+
+ Value {
+ CapturePriority 300
+ CapturePCM "hw:${CardId}"
+ JackControl "Headset Mic 2 Jack"
+ CaptureMixerElem "IN1 Boost"
+ CaptureVolume "IN1 Boost"
+ If.In1Aif1 {
+ Condition {
+ Type String
+ String1 "${var:HaveAif}"
+ String2 "1"
+ }
+ True.CaptureMasterElem "ADC"
+ }
+ If.In1Aif2 {
+ Condition {
+ Type String
+ String1 "${var:HaveAif}"
+ String2 "2"
+ }
+ True.CaptureMasterElem "Mono ADC"
+ }
+ }
+}