diff mbox series

[3/4] ucm2: DB845c: Add ucm for DB845c board

Message ID 20200305134404.7690-4-srinivas.kandagatla@linaro.org
State New
Headers show
Series ucm2: Add support to SDM845 based platforms | expand

Commit Message

Srinivas Kandagatla March 5, 2020, 1:44 p.m. UTC
DB845c board by default has two WSA881x speakers and HDMI
audio connections.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
 ucm2/DB845c/DB845c.conf | 11 ++++++++++
 ucm2/DB845c/HDMI.conf   | 33 +++++++++++++++++++++++++++++
 ucm2/DB845c/HiFi.conf   | 46 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 90 insertions(+)
 create mode 100644 ucm2/DB845c/DB845c.conf
 create mode 100644 ucm2/DB845c/HDMI.conf
 create mode 100644 ucm2/DB845c/HiFi.conf
diff mbox series

Patch

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"
+	}
+}