--- /dev/null
+# RT766 specific volume control settings
+
+BootSequence [
+ cset "name='rt766 FU41 Playback Volume' 127"
+ cset "name='rt766 FU21 Playback Volume' 87"
+ cset "name='rt766 FU36 Capture Volume' 57"
+ cset "name='rt766 FU36 Capture Switch' 1"
+ cset "name='rt766 FU113 Capture Switch' 1"
+ cset "name='rt766 FU113 Capture Volume' 63"
+]
+
+Macro [
+ { SetLED { LED="mic" Action="attach" CtlId="rt766 FU113 Capture Switch" } }
+ { SetLED { LED="speaker" Action="attach" CtlId="rt766 FU21 Playback Switch" } }
+]
+
--- /dev/null
+# Use case Configuration for sof-soundwire card
+
+If.codecspk {
+ Condition {
+ Type RegexMatch
+ Regex "rt766"
+ String "${var:SpeakerCodec1}"
+ }
+ True {
+ SectionDevice."Speaker" {
+ Comment "Speaker"
+
+ EnableSequence [
+ cset "name='Speaker Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Speaker Switch' off"
+ ]
+
+ Value {
+ PlaybackPriority 100
+ PlaybackPCM "hw:${CardId},2"
+ PlaybackMixerElem "rt766 FU21"
+ PlaybackSwitch "rt766 FU21 Playback Switch"
+ }
+ }
+ }
+}
+
+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='rt766 FU36 Capture Switch' 1"
+ ]
+
+ DisableSequence [
+ cset "name='rt766 FU36 Capture Switch' 0"
+ ]
+
+ If.hsmicsw {
+ Condition {
+ Type ControlExists
+ Control "name='Headset Mic Switch'"
+ }
+ True {
+ EnableSequence [
+ cset "name='Headset Mic Switch' on"
+ ]
+ DisableSequence [
+ cset "name='Headset Mic Switch' off"
+ ]
+ }
+ }
+
+ Value {
+ CapturePriority 300
+ CapturePCM "hw:${CardId},1"
+ CaptureSwitch "rt766 FU36 Capture Switch"
+ CaptureVolume "rt766 FU36 Capture Volume"
+ CaptureMixerElem "rt766 FU36"
+ JackControl "Headset Mic Jack"
+ }
+}
+
+If.codecmic {
+ Condition {
+ Type RegexMatch
+ Regex "rt766"
+ String "${var:MicCodec1}"
+ }
+ True {
+ SectionDevice."Mic" {
+ Comment "SoundWire Microphones"
+
+ EnableSequence [
+ cset "name='rt766 FU113 Capture Switch' 1"
+ ]
+
+ DisableSequence [
+ cset "name='rt766 FU113 Capture Switch' 0"
+ ]
+
+ Value {
+ CapturePriority 100
+ CapturePCM "hw:${CardId},4"
+ CaptureSwitch "rt766 FU113 Capture Switch"
+ CaptureVolume "rt766 FU113 Capture Volume"
+ CaptureMixerElem "rt766 FU113"
+ }
+ }
+ }
+}
Mics1 "0"
Iec61937Pcms1 ""
MultiCodec1 ""
- MultiCodecRegex "rt712|rt713|rt721|rt722|rt1320|es9356|tac5572"
+ MultiCodecRegex "rt712|rt713|rt721|rt722|rt766|rt1320|es9356|tac5572"
}
DefineRegex {
Macro.rt713.MultiCodecInit "CodecId=rt713"
Macro.rt721.MultiCodecInit "CodecId=rt721"
Macro.rt722.MultiCodecInit "CodecId=rt722"
+ Macro.rt766.MultiCodecInit "CodecId=rt766"
Macro.rt1320.MultiCodecInit "CodecId=rt1320"
Macro.es9356.MultiCodecInit "CodecId=es9356"
Macro.tac5572.MultiCodecInit "CodecId=tac5572"