]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: DB845c: Add ucm for DB845c board
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 5 Mar 2020 13:32:22 +0000 (13:32 +0000)
committerJaroslav Kysela <perex@perex.cz>
Fri, 5 Jun 2020 16:24:34 +0000 (18:24 +0200)
DB845c board by default has two WSA881x speakers and HDMI
audio connections.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/DB845c/DB845c.conf [new file with mode: 0644]
ucm2/DB845c/HDMI.conf [new file with mode: 0644]
ucm2/DB845c/HiFi.conf [new file with mode: 0644]

diff --git a/ucm2/DB845c/DB845c.conf b/ucm2/DB845c/DB845c.conf
new file mode 100644 (file)
index 0000000..bfd1ee5
--- /dev/null
@@ -0,0 +1,11 @@
+Syntax 2
+
+SectionUseCase."HiFi" {
+       File "HiFi.conf"
+       Comment "HiFi quality Music."
+}
+
+SectionUseCase."HDMI" {
+       File "HDMI.conf"
+       Comment "HDMI output."
+}
diff --git a/ucm2/DB845c/HDMI.conf b/ucm2/DB845c/HDMI.conf
new file mode 100644 (file)
index 0000000..1497178
--- /dev/null
@@ -0,0 +1,26 @@
+# Use case configuration for DB845c board.
+# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+SectionVerb {
+        EnableSequence [
+               cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 1"
+        ]
+
+        DisableSequence [
+               cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 0"
+       ]
+
+        Value {
+                TQ "HiFi"
+        }
+}
+
+SectionDevice."HDMI" {
+        #Name "HDMI"
+        Comment "HDMI Digital Stereo Output"
+
+        Value {
+               PlaybackPCM "hw:${CardId}"
+               PlaybackPriority 200
+        }
+}
diff --git a/ucm2/DB845c/HiFi.conf b/ucm2/DB845c/HiFi.conf
new file mode 100644 (file)
index 0000000..7b62e37
--- /dev/null
@@ -0,0 +1,40 @@
+# Use case configuration for DB845c.
+# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+SectionVerb {
+
+       EnableSequence [
+               cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia2' 1"
+
+               <codecs/wcd934x/DefaultEnableSeq.conf>
+               <codecs/wsa881x/DefaultEnableSeq.conf>
+       ]
+
+       DisableSequence [
+               <codecs/wcd934x/DefaultDisableSeq.conf>
+               cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia2' 0"
+       ]
+
+       Value {
+               TQ "HiFi"
+       }
+}
+
+SectionDevice."Speaker" {
+       Comment "Speaker playback"
+
+       EnableSequence [
+               <codecs/wcd934x/SpeakerEnableSeq.conf>
+               <codecs/wsa881x/SpeakerEnableSeq.conf>
+       ]
+
+       DisableSequence [
+               <codecs/wsa881x/SpeakerDisableSeq.conf>
+               <codecs/wcd934x/SpeakerDisableSeq.conf>
+       ]
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},1"
+       }
+}