]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: add support to for Qualcomm RB5 Platform
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 20 Nov 2020 12:14:31 +0000 (12:14 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 15 Apr 2021 12:56:52 +0000 (14:56 +0200)
The Qualcomm RB5 Robotics Platform contains HDMI,
2x WSA Smart-Speakers audio outputs along with One
Onboard DMIC audio input.

BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/84
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
[DB: change paths to use case fragments]
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Qualcomm/sm8250/HDMI.conf [new file with mode: 0644]
ucm2/Qualcomm/sm8250/HiFi.conf [new file with mode: 0644]
ucm2/Qualcomm/sm8250/Qualcomm-RB5-WSA8815-Speakers-DMIC0.conf [new file with mode: 0644]

diff --git a/ucm2/Qualcomm/sm8250/HDMI.conf b/ucm2/Qualcomm/sm8250/HDMI.conf
new file mode 100644 (file)
index 0000000..a9594fd
--- /dev/null
@@ -0,0 +1,26 @@
+# Use case configuration for RB5 board.
+# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+SectionVerb {
+       EnableSequence [
+               cset "name='TERT_MI2S_RX Audio Mixer MultiMedia1' 1"
+       ]
+
+       DisableSequence [
+               cset "name='TERT_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/Qualcomm/sm8250/HiFi.conf b/ucm2/Qualcomm/sm8250/HiFi.conf
new file mode 100644 (file)
index 0000000..7beafa2
--- /dev/null
@@ -0,0 +1,46 @@
+# Use case configuration for Qualcomm RB5.
+# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+SectionVerb {
+
+       EnableSequence [
+               cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
+               cset "name='MultiMedia3 Mixer VA_CODEC_DMA_TX_0' 1"
+       ]
+
+       Include.wsae.File "/codecs/wsa881x/DefaultEnableSeq.conf"
+
+       DisableSequence [
+               cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 0"
+               cset "name='MultiMedia3 Mixer VA_CODEC_DMA_TX_0' 0"
+       ]
+
+       Value {
+               TQ "HiFi"
+       }
+}
+
+SectionDevice."Speaker" {
+       Comment "Speaker playback"
+
+       Include.lpasswsae.File "/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf"
+       Include.wsae.File "/codecs/wsa881x/SpeakerEnableSeq.conf"
+       Include.wsad.File "/codecs/wsa881x/SpeakerDisableSeq.conf"
+       Include.lpasswsad.File "/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf"
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},1"
+       }
+}
+
+SectionDevice."Mic" {
+       Comment "Mic"
+       Include.lpassvad.File "/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf"
+       Include.lpassvad.File "/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf"
+
+       Value {
+               CapturePriority 100
+               CapturePCM "hw:${CardId},2"
+       }
+}
diff --git a/ucm2/Qualcomm/sm8250/Qualcomm-RB5-WSA8815-Speakers-DMIC0.conf b/ucm2/Qualcomm/sm8250/Qualcomm-RB5-WSA8815-Speakers-DMIC0.conf
new file mode 100644 (file)
index 0000000..2fbca31
--- /dev/null
@@ -0,0 +1,11 @@
+Syntax 3
+
+SectionUseCase."HiFi" {
+       File "/Qualcomm/sm8250/HiFi.conf"
+       Comment "HiFi quality Music."
+}
+
+SectionUseCase."HDMI" {
+       File "/Qualcomm/sm8250/HDMI.conf"
+       Comment "HDMI output."
+}