From: Srinivas Kandagatla Date: Fri, 14 Mar 2025 14:47:47 +0000 (+0000) Subject: ucm2: Qualcomm: add Lenovo Yoga Slim7x support X-Git-Tag: v1.2.14~20 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=1a18568b68d85a2449a609e6d30094388b0aee0a;p=alsa-ucm-conf.git ucm2: Qualcomm: add Lenovo Yoga Slim7x support Yoga Slim 7x supports: - 4 speakers - 4 dmics - Display ports This patch adds support to Speaker and DMIC's for now. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/522 Signed-off-by: Srinivas Kandagatla Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/Qualcomm/x1e80100/LENOVO-Slim-7x.conf b/ucm2/Qualcomm/x1e80100/LENOVO-Slim-7x.conf new file mode 100644 index 0000000..cc57f8d --- /dev/null +++ b/ucm2/Qualcomm/x1e80100/LENOVO-Slim-7x.conf @@ -0,0 +1,11 @@ +Syntax 4 + +SectionUseCase."HiFi" { + File "/Qualcomm/x1e80100/Slim7x-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/four-speakers/init.conf" +Include.wsam-init.File "/codecs/qcom-lpass/wsa-macro/four-speakers/init.conf" diff --git a/ucm2/Qualcomm/x1e80100/Slim7x-HiFi.conf b/ucm2/Qualcomm/x1e80100/Slim7x-HiFi.conf new file mode 100644 index 0000000..38b9809 --- /dev/null +++ b/ucm2/Qualcomm/x1e80100/Slim7x-HiFi.conf @@ -0,0 +1,49 @@ +# Use case configuration for X1E80100. +# Author: Srinivas Kandagatla + +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/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 { + PlaybackChannels 4 + 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" + } +} diff --git a/ucm2/Qualcomm/x1e80100/x1e80100.conf b/ucm2/Qualcomm/x1e80100/x1e80100.conf index f7e5d18..79257bd 100644 --- a/ucm2/Qualcomm/x1e80100/x1e80100.conf +++ b/ucm2/Qualcomm/x1e80100/x1e80100.conf @@ -8,3 +8,12 @@ If.LENOVOX14s { } True.Include.x14s.File "/Qualcomm/x1e80100/LENOVO-T14s.conf" } + +If.LENOVOSlim7x { + Condition { + Type RegexMatch + String "${sys:devices/virtual/dmi/id/board_vendor}-${sys:devices/virtual/dmi/id/product_family}" + Regex "LENOVO.*Yoga Slim 7.*" + } + True.Include.7x.File "/Qualcomm/x1e80100/LENOVO-Slim-7x.conf" +}