If.spk {
	Condition {
		Type String
		Haystack "${CardComponents}"
		Needle "cfg-spk:2"
	}
	True.Define.HaveSpeaker "2"
}

If.mono {
	Condition {
		Type String
		Haystack "${CardComponents}"
		Needle "cfg-spk:1"
	}
	True.Define.HaveSpeaker "1"
}

If.hp2 {
	Condition {
		Type String
		Haystack "${CardComponents}"
		Needle "cfg-hp2:lineout"
	}
	True.Define.HaveHeadPhones2 "yes"
}

If.dmic1 {
	Condition {
		Type String
		Haystack "${CardComponents}"
		Needle "cfg-mic:dmic1"
	}
	True {
		Define.HaveInternalMic "dmic"
		Define.StereoADC2Mux "DMIC1"
	}
}

If.dmic2 {
	Condition {
		Type String
		Haystack "${CardComponents}"
		Needle "cfg-mic:dmic2"
	}
	True {
		Define.HaveInternalMic "dmic"
		Define.StereoADC2Mux "DMIC2"
	}
}

If.in1 {
	Condition {
		Type String
		Haystack "${CardComponents}"
		Needle "cfg-mic:in1"
	}
	True.Define.HaveInternalMic "in1"
}

If.in3 {
	Condition {
		Type String
		Haystack "${CardComponents}"
		Needle "cfg-mic:in3"
	}
	True.Define.HaveInternalMic "in3"
}

If.hs2 {
	Condition {
		Type String
		Haystack "${CardComponents}"
		Needle "cfg-hs2:in1"
	}
	True.Define.HaveHeadsetMic2 "in1"
}
