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/HeadPhones2.conf
# The 2nd headset jack uses lineout with an external HP-amp

SectionDevice."Headphones2" {
	Comment "Headphones 2"

	ConflictingDevice [
		"Speaker"
		"Headphones"
	]

	EnableSequence [
		cset "name='LOUT MIX OUTVOL L Switch' on"
		cset "name='LOUT MIX OUTVOL R Switch' on"
		cset "name='OUT Channel Switch' on"
	]

	DisableSequence [
		cset "name='LOUT MIX OUTVOL L Switch' off"
		cset "name='LOUT MIX OUTVOL R Switch' off"
		cset "name='OUT Channel Switch' off"
	]

	Value {
		PlaybackPriority 400
		PlaybackPCM "hw:${CardId}"
		JackControl "Line Out Jack"
		PlaybackMixerElem "OUT"
		PlaybackVolume "OUT Playback Volume"
		If.HpAif1 {
			Condition {
				Type String
				String1 "${var:HaveAif}"
				String2 "1"
			}
			True.PlaybackMasterElem "DAC1"
		}
		If.HpAif2 {
			Condition {
				Type String
				String1 "${var:HaveAif}"
				String2 "2"
			}
			True.PlaybackMasterElem "DAC2"
		}
	}
}