aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2020-03-05 13:32:22 +0000
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2020-03-05 13:32:22 +0000
commitcf242c2c6509bf24710561537640af0812d9e97a (patch)
tree290aab42e0bb14e370bc771ee57ac26d49a0b96e
parentd8dc5a22bd0e91446f3b48707099006a21e50685 (diff)
ucm2: DB845c: Add ucm for DB845c board
DB845c board by default has two WSA881x speakers and HDMI audio connections. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
-rw-r--r--ucm2/DB845c/DB845c.conf11
-rw-r--r--ucm2/DB845c/HDMI.conf33
-rw-r--r--ucm2/DB845c/HiFi.conf46
3 files changed, 90 insertions, 0 deletions
diff --git a/ucm2/DB845c/DB845c.conf b/ucm2/DB845c/DB845c.conf
new file mode 100644
index 0000000..bfd1ee5
--- /dev/null
+++ b/ucm2/DB845c/DB845c.conf
@@ -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
index 0000000..0a17f68
--- /dev/null
+++ b/ucm2/DB845c/HDMI.conf
@@ -0,0 +1,33 @@
+# Use case configuration for DB845c board.
+# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+SectionVerb {
+ EnableSequence [
+ cdev "hw:DB845c"
+ cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 1"
+ ]
+
+ DisableSequence [
+ cdev "hw:DB845c"
+ cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 0"
+ ]
+ Value {
+ TQ "HiFi"
+ PlaybackPCM "hw:DB845c,0"
+ }
+}
+
+SectionDevice."HDMI-stereo" {
+ #Name "HDMI-stereo"
+ Comment "HDMI Digital Stereo Output"
+
+ EnableSequence [
+ ]
+
+ DisableSequence [
+ ]
+
+ Value {
+ PlaybackChannels "2"
+ }
+}
diff --git a/ucm2/DB845c/HiFi.conf b/ucm2/DB845c/HiFi.conf
new file mode 100644
index 0000000..a169bfd
--- /dev/null
+++ b/ucm2/DB845c/HiFi.conf
@@ -0,0 +1,46 @@
+# Use case configuration for DB845c.
+# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+SectionVerb {
+
+ EnableSequence [
+ cdev "hw:DB845c"
+ cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia2' 1"
+
+ <codecs/wcd934x/DefaultEnableSeq.conf>
+ <codecs/wsa881x/DefaultEnableSeq.conf>
+ ]
+
+ DisableSequence [
+ cdev "hw:DB845c"
+ <codecs/wcd934x/DefaultDisableSeq.conf>
+ cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia2' 0"
+ ]
+
+ Value {
+ TQ "HiFi"
+ }
+}
+
+SectionDevice."Speakers" {
+ Comment "Speakers playback"
+
+ EnableSequence [
+ cdev "hw:DB845c"
+ <codecs/wcd934x/SpeakerEnableSeq.conf>
+ <codecs/wsa881x/SpeakerEnableSeq.conf>
+ ]
+
+ DisableSequence [
+ cdev "hw:DB845c"
+ <codecs/wsa881x/SpeakerDisableSeq.conf>
+ <codecs/wcd934x/SpeakerDisableSeq.conf>
+ ]
+
+ Value {
+ PlaybackPCM "hw:DB845c,1"
+ PlaybackChannels "2"
+ PlaybackVolume "RX1 Digital Volume"
+ PlaybackVolume "RX2 Digital Volume"
+ }
+}