From a1bf96d62eb361e0f1c60773ef775ba50d3e3fc3 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Fri, 26 Jan 2024 11:28:53 +0100 Subject: [PATCH] Qualcomm: Add SM8650 MTP HiFi config 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 Signed-off-by: Jaroslav Kysela --- ucm2/Qualcomm/sm8650/MTP/HiFi.conf | 26 ++++++++++++++++++++++++ ucm2/Qualcomm/sm8650/MTP/SM8650-MTP.conf | 11 ++++++++++ ucm2/conf.d/sm8650/SM8650-MTP.conf | 1 + 3 files changed, 38 insertions(+) create mode 100644 ucm2/Qualcomm/sm8650/MTP/HiFi.conf create mode 100644 ucm2/Qualcomm/sm8650/MTP/SM8650-MTP.conf create mode 120000 ucm2/conf.d/sm8650/SM8650-MTP.conf diff --git a/ucm2/Qualcomm/sm8650/MTP/HiFi.conf b/ucm2/Qualcomm/sm8650/MTP/HiFi.conf new file mode 100644 index 0000000..86afbad --- /dev/null +++ b/ucm2/Qualcomm/sm8650/MTP/HiFi.conf @@ -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 index 0000000..b8077e1 --- /dev/null +++ b/ucm2/Qualcomm/sm8650/MTP/SM8650-MTP.conf @@ -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 index 0000000..418e2a0 --- /dev/null +++ b/ucm2/conf.d/sm8650/SM8650-MTP.conf @@ -0,0 +1 @@ +../../Qualcomm/sm8650/MTP/SM8650-MTP.conf \ No newline at end of file -- 2.47.1