Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ucm2: soundwire: add basic settings for SDCA devices
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>
- Loading branch information
Showing
7 changed files
with
134 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# 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" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
+# 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" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters