HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/alsa/ucm2/codecs/rt5672/HeadsetMic.conf
SectionDevice."Headset" {
	Comment "Headset Microphone"

	ConflictingDevice [
		"Mic1"
		"Mic2"
	]

	EnableSequence [
		cset "name='Headset Mic Switch' on"
        	cset "name='RECMIXL BST1 Switch' on"
		cset "name='RECMIXR BST1 Switch' on"
		cset "name='Sto1 ADC MIXL ADC1 Switch' on"
		cset "name='Sto1 ADC MIXR ADC1 Switch' on"
		# For unknown reasons the headset mic sound is only recorded
		# on the left channel, we tweak the data-stream reception to
		# use the left samples for both slots, so that we get a stereo
		# stream with the mic sound on both channels
		cset "name='codec_in rx deinterleaver codec_in0_1' 1"
	]

	DisableSequence [
		cset "name='Headset Mic Switch' off"
        	cset "name='RECMIXL BST1 Switch' off"
		cset "name='RECMIXR BST1 Switch' off"
		cset "name='Sto1 ADC MIXL ADC1 Switch' off"
		cset "name='Sto1 ADC MIXR ADC1 Switch' off"
		# Undo data-stream reception mono-mix workaround
		cset "name='codec_in rx deinterleaver codec_in0_1' 2"
	]

	Value {
		CapturePriority 300
		CapturePCM "hw:${CardId}"
		JackControl "Headset Mic Jack"
	}
}