HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
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"
		}
	}
}