aboutsummaryrefslogtreecommitdiff
path: root/ucm2/sof-soundwire/RT700.conf
diff options
context:
space:
mode:
Diffstat (limited to 'ucm2/sof-soundwire/RT700.conf')
-rw-r--r--ucm2/sof-soundwire/RT700.conf75
1 files changed, 75 insertions, 0 deletions
diff --git a/ucm2/sof-soundwire/RT700.conf b/ucm2/sof-soundwire/RT700.conf
new file mode 100644
index 0000000..9fe532c
--- /dev/null
+++ b/ucm2/sof-soundwire/RT700.conf
@@ -0,0 +1,75 @@
+# Use case Configuration for sof-soundwire card
+
+If.RT700 {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "hs:rt700"
+ }
+ True {
+
+ SectionDevice."Headphones" {
+ Comment "Headphones"
+
+ ConflictingDevice [
+ "Speaker"
+ ]
+
+ EnableSequence [
+ cset "name='Headphones Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Headphones Switch' off"
+ ]
+
+ Value {
+ PlaybackPriority 200
+ PlaybackPCM "hw:${CardId},0"
+ PlaybackChannels "2"
+ JackControl "Headphone Jack"
+ }
+ }
+
+ SectionDevice."Speaker" {
+ Comment "Speaker"
+
+ ConflictingDevice [
+ "Headphones"
+ ]
+
+ EnableSequence [
+ cset "name='Speaker Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Speaker Switch' off"
+ ]
+
+ Value {
+ PlaybackPriority 100
+ PlaybackPCM "hw:${CardId},0"
+ PlaybackChannels "2"
+ }
+ }
+
+ SectionDevice."Headset" {
+ Comment "Headset Microphone"
+
+ EnableSequence [
+ cset "name='ADC 09 Capture Switch' 1"
+ ]
+
+ DisableSequence [
+ cset "name='ADC 09 Capture Switch' 0"
+ ]
+
+ Value {
+ CapturePriority 200
+ CapturePCM "hw:${CardId},1"
+ CaptureChannels "2"
+ JackControl "Headset Mic Jack"
+ }
+ }
+ }
+}