Blame SOURCES/sof-hda-dsp-HiFi.conf

b64678
# Use case Configuration for sof-hda-dsp
b64678
b64678
SectionVerb {
b64678
	EnableSequence [
b64678
		cset "name='Auto-Mute Mode' 'Disabled'"
b64678
		cset "name='Master Playback Volume' 100"
b64678
		cset "name='Speaker Playback Volume' 100"
b64678
		cset "name='Headphone Playback Volume' 100"
b64678
		cset "name='Capture Volume' 50"
b64678
		cset "name='Mic Boost Volume' 100"
b64678
		cset "name='Dmic0 Capture Volume' 100"
b64678
	]
b64678
}
b64678
b64678
SectionDevice."Headphones1" {
b64678
	Comment "Headphones"
b64678
b64678
	EnableSequence [
b64678
		cset "name='Headphone Playback Switch' on"
b64678
	]
b64678
b64678
	DisableSequence [
b64678
		cset "name='Headphone Playback Switch' off"
b64678
	]
b64678
b64678
	Value {
b64678
		PlaybackPriority 200
b64678
		PlaybackPCM "hw:${CardId},0"
b64678
		PlaybackMixerElem "Headphone"
b64678
		PlaybackMixerMaster "Master"
b64678
		PlaybackVolume "Headphone Playback Volume"
b64678
		PlaybackSwitch "Headphone Playback Switch"
b64678
		PlaybackChannels "2"
b64678
		If.jack {
b64678
			Condition {
b64678
				Type ControlExists
b64678
				Control "iface=CARD,name='Headphone Mic Jack'"
b64678
			}
b64678
			True {
b64678
				JackControl "Headphone Mic Jack"
b64678
			}
b64678
			False {
b64678
				JackControl "Headphone Jack"
b64678
			}
b64678
		}
b64678
	}
b64678
}
b64678
b64678
SectionDevice."Speaker" {
b64678
	Comment "Speaker"
b64678
b64678
	If.seq {
b64678
		Condition {
b64678
			Type ControlExists
b64678
			Control "name='Bass Speaker Playback Switch'"
b64678
		}
b64678
		True {
b64678
			EnableSequence [
b64678
				cset "name='Speaker Playback Switch' on"
b64678
				cset "name='Bass Speaker Playback Switch' on"
b64678
			]
b64678
b64678
			DisableSequence [
b64678
				cset "name='Speaker Playback Switch' off"
b64678
				cset "name='Bass Speaker Playback Switch' off"
b64678
			]
b64678
		}
b64678
		False {
b64678
			EnableSequence [
b64678
				cset "name='Speaker Playback Switch' on"
b64678
			]
b64678
b64678
			DisableSequence [
b64678
				cset "name='Speaker Playback Switch' off"
b64678
			]
b64678
		}
b64678
	}
b64678
b64678
	Value {
b64678
		PlaybackPriority 100
b64678
		PlaybackPCM "hw:${CardId},0"
b64678
		PlaybackMixerElem "Speaker"
b64678
		PlaybackMasterElem "Master"
b64678
		PlaybackVolume "Speaker Playback Volume"
b64678
		PlaybackSwitch "Speaker Playback Switch"
b64678
		PlaybackChannels "2"
b64678
	}
b64678
}
b64678
b64678
If.monomic {
b64678
	Condition {
b64678
		Type ControlExists
b64678
		Control "name='Input Source'"
b64678
		ControlEnum "Headphone Mic"
b64678
	}
b64678
	After.SectionDevice "Mic"
b64678
	True {
b64678
		SectionDevice."Headphones2" {
b64678
			Comment "Headphones Stereo Microphone"
b64678
b64678
			ConflictingDevice [
b64678
				"HeadsetMic"
b64678
			]
b64678
b64678
			EnableSequence [
b64678
				cset "name='Input Source' 'Headphone Mic'"
b64678
			]
b64678
b64678
			Value {
b64678
				CapturePriority 200
b64678
				<sof-hda-dsp/HDA-Capture-value.conf>
b64678
				JackControl "Headphone Mic Jack"
b64678
			}
b64678
		}
b64678
b64678
		SectionDevice."Headset" {
b64678
			Comment "Headset Mono Microphone"
b64678
b64678
			EnableSequence [
b64678
				cset "name='Input Source' Headset Mic"
b64678
			]
b64678
b64678
			Value {
b64678
				CapturePriority 300
b64678
				<sof-hda-dsp/HDA-Capture-value.conf>
b64678
				JackControl "Headphone Mic Jack"
b64678
			}
b64678
		}
b64678
	}
b64678
	False {
b64678
		SectionDevice."Headphones2" {
b64678
			Comment "Headphones Stereo Microphone"
b64678
b64678
			Value {
b64678
				CapturePriority 200
b64678
				<sof-hda-dsp/HDA-Capture-value.conf>
b64678
				JackControl "Mic Jack"
b64678
			}
b64678
		}
b64678
	}
b64678
}
b64678
b64678
SectionDevice."Mic" {
b64678
	Comment "Digital Microphone"
b64678
b64678
	Value {
b64678
		CapturePriority 100
b64678
		CapturePCM "hw:${CardId},6"
b64678
		CaptureChannels 4
b64678
		If.vol {
b64678
			Condition {
b64678
				Type ControlExists
b64678
				Control "name='Dmic0 Capture Switch'"
b64678
			}
b64678
			True {
b64678
				CaptureMixerElem "Dmic0"
b64678
				CaptureVolume "Dmic0 Capture Volume"
b64678
				CaptureSwitch "Dmic0 Capture Switch"
b64678
			}
b64678
			False {
b64678
				# v1.3 SOF firmware
b64678
				CaptureMixerElem "PGA10.0 10 Master"
b64678
				CaptureVolume "PGA10.0 10 Master Capture Volume"
b64678
			}
b64678
		}
b64678
	}
b64678
}
b64678
b64678
<sof-hda-dsp/Hdmi.conf>