]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Qualcomm: x1e80100: add Qualcomm X1E80100 CRD
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 27 Oct 2023 15:28:44 +0000 (17:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Jan 2024 14:48:08 +0000 (15:48 +0100)
Add support to Qualcomm X1E80100 CRD with four smart speakers and a
headset connector.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/369
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Qualcomm/x1e80100/HiFi.conf [new file with mode: 0644]
ucm2/Qualcomm/x1e80100/X1E80100-CRD.conf [new file with mode: 0644]
ucm2/conf.d/x1e80100/X1E80100-CRD.conf [new symlink]

diff --git a/ucm2/Qualcomm/x1e80100/HiFi.conf b/ucm2/Qualcomm/x1e80100/HiFi.conf
new file mode 100644 (file)
index 0000000..1a4f73f
--- /dev/null
@@ -0,0 +1,55 @@
+# Use case configuration for X1E80100.
+# Author: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
+
+SectionVerb {
+       EnableSequence [
+               cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
+               cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
+               cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1"
+               cset "name='MultiMedia4 Mixer VA_CODEC_DMA_TX_0' 1"
+       ]
+
+       Include.wcde.File "/codecs/wcd938x/DefaultEnableSeq.conf"
+       Include.wsae.File "/codecs/wsa884x/four-speakers/DefaultEnableSeq.conf"
+       Include.wsm1e.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerEnableSeq.conf"
+       Include.wsm2e.File "/codecs/qcom-lpass/wsa-macro/Wsa2SpeakerEnableSeq.conf"
+
+       Value {
+               TQ "HiFi"
+       }
+}
+
+SectionDevice."Speaker" {
+       Comment "Speaker playback"
+
+       Include.wsmspk1e.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerEnableSeq.conf"
+       Include.wsmspk2e.File "/codecs/qcom-lpass/wsa-macro/Wsa2SpeakerEnableSeq.conf"
+       Include.wsmspk1d.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerDisableSeq.conf"
+       Include.wsmspk2d.File "/codecs/qcom-lpass/wsa-macro/Wsa2SpeakerDisableSeq.conf"
+       Include.wsaspk.File "/codecs/wsa884x/four-speakers/SpeakerSeq.conf"
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},1"
+               PlaybackMixer "default:${CardId}"
+               PlaybackMixerElem "Speakers"
+       }
+}
+
+SectionDevice."Headphones" {
+       Comment "Headphones playback"
+
+       Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
+       Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
+       Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
+       Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId},0"
+               PlaybackMixer "default:${CardId}"
+               PlaybackMixerElem "HP Digital"
+               JackControl "Headphone Jack"
+               JackHWMute "Speaker"
+       }
+}
diff --git a/ucm2/Qualcomm/x1e80100/X1E80100-CRD.conf b/ucm2/Qualcomm/x1e80100/X1E80100-CRD.conf
new file mode 100644 (file)
index 0000000..5604df3
--- /dev/null
@@ -0,0 +1,13 @@
+Syntax 4
+
+SectionUseCase."HiFi" {
+       File "/Qualcomm/x1e80100/HiFi.conf"
+       Comment "HiFi quality Music."
+}
+
+Include.card-init.File "/lib/card-init.conf"
+Include.ctl-remap.File "/lib/ctl-remap.conf"
+Include.codec-init.File "/codecs/wcd938x/init.conf"
+Include.codec-init.File "/codecs/wsa884x/four-speakers/init.conf"
+Include.codec-init.File "/codecs/qcom-lpass/wsa-macro/four-speakers/init.conf"
+Include.codec-init.File "/codecs/qcom-lpass/rx-macro/init.conf"
diff --git a/ucm2/conf.d/x1e80100/X1E80100-CRD.conf b/ucm2/conf.d/x1e80100/X1E80100-CRD.conf
new file mode 120000 (symlink)
index 0000000..0013403
--- /dev/null
@@ -0,0 +1 @@
+../../Qualcomm/x1e80100/X1E80100-CRD.conf
\ No newline at end of file