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/Intel/chtnau8824/HiFi.conf
Define.Speaker "Speaker"
Define.Mic "InternalMic"
Define.SST "yes"
Define.RightOutputChannel 1

If.Controls {
	Condition {
		Type ControlExists
		Control "name='media0_in Gain 0 Switch'"
	}
	False {
		Define.SST ""
		Define.RightOutputChannel 0
	}
}

If.cfg-mspk {
	Condition {
		Type RegexMatch
		String "${CardLongName}"
		Regex "(cube-i1_TF|PIPO-W2S)"
	}
	True {
		Define.Speaker "MonoSpeaker"
	}
}

If.cfg-mic {
	Condition {
		Type RegexMatch
		String "${CardLongName}"
		# Medion E22??T models put DMIC in their product version
		# when using DMICs
		Regex "(MEDION-E22..T.*-DMIC-)"
	}
	True {
		Define.Mic "DMIC1_2"
	}
}

SectionVerb {

	Value {
		TQ "HiFi"
	}

	Include.e.File "/codecs/nau8824/EnableSeq.conf"

	If.SST {
		Condition {
			Type String
			Empty "${var:SST}"
		}
		False {
			Include.pe {
				File "/platforms/bytcr/PlatformEnableSeq.conf"
				Before.EnableSequence "0"
			}
			Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
		}
	}
}

# The includes using $vars in there path must be conditional otherwise the
# $var gets expanded before the other If-s above can change the vars.
If.cfg-includes {
	Condition { Type String Empty "" }
	True {
		Include.spk.File "/codecs/nau8824/${var:Speaker}.conf"
		Include.hp.File "/codecs/nau8824/HeadPhones.conf"

		Include.mic.File "/codecs/nau8824/${var:Mic}.conf"
		Include.hsmic.File "/codecs/nau8824/HeadsetMic.conf"
	}
}