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

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