]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
Qualcomm: Add SM8650 MTP HiFi config
authorNeil Armstrong <neil.armstrong@linaro.org>
Fri, 26 Jan 2024 10:28:53 +0000 (11:28 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 29 Jan 2024 12:47:09 +0000 (13:47 +0100)
Add UCM2 configs for the Qualcomm SM8650-MTP Board:
- on-board Speakers

Linux devicetree changes:
https://lore.kernel.org/all/20240125-topic-sm8650-upstream-audio-dt-v1-2-c24d23ae5763@linaro.org/

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/390
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Qualcomm/sm8650/MTP/HiFi.conf [new file with mode: 0644]
ucm2/Qualcomm/sm8650/MTP/SM8650-MTP.conf [new file with mode: 0644]
ucm2/conf.d/sm8650/SM8650-MTP.conf [new symlink]

diff --git a/ucm2/Qualcomm/sm8650/MTP/HiFi.conf b/ucm2/Qualcomm/sm8650/MTP/HiFi.conf
new file mode 100644 (file)
index 0000000..86afbad
--- /dev/null
@@ -0,0 +1,26 @@
+SectionVerb {
+       EnableSequence [
+               cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
+       ]
+
+       Include.wsae.File "/codecs/wsa884x/two-speakers/DefaultEnableSeq.conf"
+
+       Value {
+               TQ "HiFi"
+       }
+}
+
+SectionDevice."Speaker" {
+       Comment "Speaker playback"
+
+       Include.wcdspk1e.File "/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf"
+       Include.wcdspk1d.File "/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf"
+       Include.wsaspkd.File "/codecs/wsa884x/two-speakers/SpeakerSeq.conf"
+
+       Value {
+               PlaybackChannels 2
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},1"
+               PlaybackMixer "default:${CardId}"
+       }
+}
diff --git a/ucm2/Qualcomm/sm8650/MTP/SM8650-MTP.conf b/ucm2/Qualcomm/sm8650/MTP/SM8650-MTP.conf
new file mode 100644 (file)
index 0000000..b8077e1
--- /dev/null
@@ -0,0 +1,11 @@
+Syntax 4
+
+SectionUseCase."HiFi" {
+       File "/Qualcomm/sm8650/MTP/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/wsa884x/two-speakers/init.conf"
+Include.codec-init.File "/codecs/qcom-lpass/wsa-macro/init.conf"
diff --git a/ucm2/conf.d/sm8650/SM8650-MTP.conf b/ucm2/conf.d/sm8650/SM8650-MTP.conf
new file mode 120000 (symlink)
index 0000000..418e2a0
--- /dev/null
@@ -0,0 +1 @@
+../../Qualcomm/sm8650/MTP/SM8650-MTP.conf
\ No newline at end of file