HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: //usr/share/alsa/ucm2/codecs/rt5640/DigitalMics.conf
SectionDevice."Mic" {
	Comment "Internal Digital Microphones"

	If.have-headset {
		Condition {
			Type String
			Empty "${var:HaveHeadsetMic}"
		}
		False {
			ConflictingDevice [
				"Headset"
			]
		}
	}

	EnableSequence [
		cset "name='Stereo ADC2 Mux' ${var:StereoADC2Mux}"
		cset "name='Mono ADC MIXL ADC2 Switch' on"
		cset "name='Mono ADC MIXR ADC2 Switch' on"
		cset "name='Stereo ADC MIXL ADC2 Switch' on"
		cset "name='Stereo ADC MIXR ADC2 Switch' on"

	]

	DisableSequence [
		cset "name='Mono ADC MIXL ADC2 Switch' off"
		cset "name='Mono ADC MIXR ADC2 Switch' off"
		cset "name='Stereo ADC MIXL ADC2 Switch' off"
		cset "name='Stereo ADC MIXR ADC2 Switch' off"

	]

	Value {
		CapturePriority 100
		CapturePCM "hw:${CardId}"
		If.DmicAif1 {
			Condition {
				Type String
				String1 "${var:HaveAif}"
				String2 "1"
			}
			True {
				CaptureMixerElem "ADC"
				CaptureVolume "ADC Capture Volume"
				CaptureSwitch "ADC Capture Switch"
			}
		}
		If.DmicAif2 {
			Condition {
				Type String
				String1 "${var:HaveAif}"
				String2 "2"
			}
			True {
				CaptureMixerElem "Mono ADC"
				CaptureVolume "Mono ADC Capture Volume"
				CaptureSwitch "Mono ADC Capture Switch"
			}
		}
	}
}