]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Qualcomm: Add Microsoft Surface Pro 12in config
authorharrisonvanderbyl <harrison.vanderbyl@gmail.com>
Fri, 22 Aug 2025 12:12:48 +0000 (22:12 +1000)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Sep 2025 10:31:20 +0000 (12:31 +0200)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/603
Signed-off-by: harrisonvanderbyl <harrison.vanderbyl@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Qualcomm/x1e80100/MICROSOFT-Surface-Pro-12in.conf [new file with mode: 0644]
ucm2/Qualcomm/x1e80100/Surface12in-HiFi.conf [new file with mode: 0644]
ucm2/Qualcomm/x1e80100/x1e80100.conf

diff --git a/ucm2/Qualcomm/x1e80100/MICROSOFT-Surface-Pro-12in.conf b/ucm2/Qualcomm/x1e80100/MICROSOFT-Surface-Pro-12in.conf
new file mode 100644 (file)
index 0000000..37001b7
--- /dev/null
@@ -0,0 +1,11 @@
+Syntax 4
+
+SectionUseCase."HiFi" {
+       File "/Qualcomm/x1e80100/Surface12in-HiFi.conf"
+       Comment "HiFi quality Music."
+}
+
+Include.card-init.File "/lib/card-init.conf"
+Include.ctl-remap.File "/lib/ctl-remap.conf"
+Include.wsa-init.File "/codecs/wsa884x/two-speakers/init.conf"
+Include.wsam-init.File "/codecs/qcom-lpass/wsa-macro/init.conf"
diff --git a/ucm2/Qualcomm/x1e80100/Surface12in-HiFi.conf b/ucm2/Qualcomm/x1e80100/Surface12in-HiFi.conf
new file mode 100644 (file)
index 0000000..7d0bd5e
--- /dev/null
@@ -0,0 +1,46 @@
+# Use case configuration for X1E80100.
+# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+SectionVerb {
+       EnableSequence [
+               cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
+               cset "name='MultiMedia4 Mixer VA_CODEC_DMA_TX_0' 1"
+       ]
+
+       Include.wsae.File "/codecs/wsa884x/two-speakers/DefaultEnableSeq.conf"
+       Include.wsm1e.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerEnableSeq.conf"
+
+       Value {
+               TQ "HiFi"
+       }
+}
+
+SectionDevice."Speaker" {
+       Comment "Speaker playback"
+
+       Include.wsmspk1e.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerEnableSeq.conf"
+       Include.wsmspk1d.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerDisableSeq.conf"
+       Include.wsaspk.File "/codecs/wsa884x/two-speakers/SpeakerSeq.conf"
+
+       Value {
+               PlaybackChannels 2
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},1"
+               PlaybackMixer "default:${CardId}"
+               PlaybackMixerElem "Speakers"
+       }
+}
+
+SectionDevice."Mic" {
+       Comment "Internal microphones"
+
+       Include.vadm0e.File "/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf"
+       Include.vadm0d.File "/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf"
+       Include.vadm1e.File "/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf"
+       Include.vadm1d.File "/codecs/qcom-lpass/va-macro/DMIC1DisableSeq.conf"
+
+       Value {
+               CapturePriority 100
+               CapturePCM "hw:${CardId},3"
+       }
+}
index 9215b23c658b9b521b6b2a728b0129597ba44f03..61cb5fcac29ffa7588a2e57eae34b847fcf58271 100644 (file)
@@ -20,6 +20,15 @@ If.LENOVOSlim7x {
        True.Include.7x.File "/Qualcomm/x1e80100/LENOVO-Slim-7x.conf"
 }
 
+If.SURFACEPro12in {
+       Condition {
+               Type RegexMatch
+               String "${var:DMI_info}"
+               Regex "Microsoft Corporation.*Surface.*Surface Pro 12in 1st Ed with Snapdragon"
+       }
+       True.Include.7x.File "/Qualcomm/x1e80100/MICROSOFT-Surface-Pro-12in.conf"
+}
+
 If.DellLatitude7455 {
        Condition {
                Type RegexMatch