Add support for rt711-sdca, rt1316 and rt715-sdca (aka rt714).
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
--- /dev/null
+# RT711-sdca specific volume control settings
+
+BootSequence [
+ cset "name='rt711 FU05 Playback Volume' 87"
+ cset "name='rt711 ADC 22 Mux' 'MIC2'"
+ cset "name='rt711 FU0F Capture Volume' 57"
+ cset "name='rt711 FU0F Capture Switch' 1"
+]
--- /dev/null
++# RT715-sdca (aka RT714) specific volume control settings
+
+BootSequence [
+ cset "name='rt714 FU0A Capture Switch' 0"
+ cset "name='rt714 ADC 22 Mux' 'DMIC3'"
+ cset "name='rt714 ADC 23 Mux' 'DMIC4'"
+ cset "name='rt714 FU02 Capture Switch' 1"
+ cset "name='rt714 FU02 Capture Volume' 124"
+]
--- /dev/null
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Speaker" {
+ Comment "Speaker"
+
+ EnableSequence [
+ cset "name='rt1316-1 DAC L Switch' 1"
+ cset "name='rt1316-1 DAC R Switch' 1"
+ cset "name='Speaker Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='rt1316-1 DAC L Switch' 0"
+ cset "name='rt1316-1 DAC R Switch' 0"
+ cset "name='Speaker Switch' off"
+ ]
+
+ Value {
+ PlaybackPriority 100
+ PlaybackPCM "hw:${CardId},2"
+ }
+}
--- /dev/null
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Speaker" {
+ Comment "Speaker"
+
+ EnableSequence [
+ cset "name='rt1316-1 RX Channel Select' L,L"
+ cset "name='rt1316-2 RX Channel Select' R,R"
+
+ cset "name='rt1316-1 DAC L Switch' 1"
+ cset "name='rt1316-1 DAC R Switch' 1"
+ cset "name='rt1316-2 DAC L Switch' 1"
+ cset "name='rt1316-2 DAC R Switch' 1"
+ cset "name='Speaker Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='rt1316-1 DAC L Switch' 0"
+ cset "name='rt1316-1 DAC R Switch' 0"
+ cset "name='rt1316-2 DAC L Switch' 0"
+ cset "name='rt1316-2 DAC R Switch' 0"
+ cset "name='Speaker Switch' off"
+ ]
+
+ Value {
+ PlaybackPriority 100
+ PlaybackPCM "hw:${CardId},2"
+ }
+}
--- /dev/null
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Headphones" {
+ Comment "Headphones"
+
+ EnableSequence [
+ cset "name='Headphone Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Headphone Switch' off"
+ ]
+
+ Value {
+ PlaybackPriority 200
+ PlaybackPCM "hw:${CardId}"
+ JackControl "Headphone Jack"
+ }
+}
+
+SectionDevice."Headset" {
+ Comment "Headset Microphone"
+
+ EnableSequence [
+ cset "name='PGA2.0 2 Master Capture Switch' 1"
+ ]
+
+ DisableSequence [
+ cset "name='PGA2.0 2 Master Capture Switch' 0"
+ ]
+
+ Value {
+ CapturePriority 200
+ CapturePCM "hw:${CardId},1"
+ JackControl "Headset Mic Jack"
+ CaptureSwitch "PGA2.0 2 Master Capture Switch"
+ CaptureVolume "PGA2.0 2 Master Capture Volume"
+ CaptureMixerElem "PGA2.0 2 Master"
+ }
+}
--- /dev/null
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Mic" {
+ Comment "SoundWire microphones"
+
+ EnableSequence [
+ cset "name='rt714 FU02 Capture Switch' 1"
+ ]
+
+ DisableSequence [
+ cset "name='rt714 FU02 Capture Switch' 0"
+ ]
+
+ Value {
+ CapturePriority 100
+ CapturePCM "hw:${CardId},4"
+ CaptureSwitch "rt714 FU02 Capture Switch"
+ CaptureVolume "rt714 FU02 Capture Volume"
+ CaptureMixerElem "rt714 FU02"
+ }
+}
DefineRegex {
SpeakerCodec {
- Regex " spk:([a-z0-9]+)"
+ Regex " spk:([a-z0-9]+(-sdca)?)"
String "${CardComponents}"
}
SpeakerChannels {
String "${CardComponents}"
}
HeadsetCodec {
- Regex " hs:([a-z0-9]+)"
+ Regex " hs:([a-z0-9]+(-sdca)?)"
String "${CardComponents}"
}
MicCodec {
- Regex " mic:([a-z0-9]+)"
+ Regex " mic:([a-z0-9]+(-sdca)?)"
String "${CardComponents}"
}
Mics {
If.hs_init {
Condition {
Type RegexMatch
- Regex "(rt5682|rt700|rt711)"
+ Regex "(rt5682|rt700|rt711(-sdca)?)"
String "${var:HeadsetCodec1}"
}
True.Include.hs_init.File "/codecs/${var:HeadsetCodec1}/init.conf"
If.mic_init {
Condition {
Type RegexMatch
- Regex "(rt715)"
+ Regex "(rt715(-sdca)?)"
String "${var:MicCodec1}"
}
True.Include.mic_init.File "/codecs/${var:MicCodec1}/init.conf"