From: Mohammad Rafi Shaik Date: Thu, 23 Jul 2026 05:53:16 +0000 (+0530) Subject: ucm2: Qualcomm: shikra: Add Shikra EVK HiFi conf X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c86066a6ffc3d1e1ac1c772dafa574dc8b42d927;p=alsa-ucm-conf.git ucm2: Qualcomm: shikra: Add Shikra EVK HiFi conf Add UCM2 configs for the Shikra EVK boards. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/817 Signed-off-by: Mohammad Rafi Shaik Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/Qualcomm/shikra/shikra-cqm-evk/HiFi.conf b/ucm2/Qualcomm/shikra/shikra-cqm-evk/HiFi.conf new file mode 100644 index 0000000..31dd793 --- /dev/null +++ b/ucm2/Qualcomm/shikra/shikra-cqm-evk/HiFi.conf @@ -0,0 +1,54 @@ +# Use case configuration for Qualcomm Shikra CQM EVK. +# Codec: WSA885x I2S speaker, VA DMIC capture +# Speaker: hw:0,2 DMIC: hw:0,3 + +SectionVerb { + EnableSequence [ + cset "name='Rx Slot Mask' 3" + cset "name='Speaker Volume' 72" + cset "name='Usage Mode' 3" + ] + + DisableSequence [ + cset "name='Speaker Volume' 0" + ] + + Value { + TQ "HiFi" + } +} + +SectionDevice."Speaker" { + Comment "Speaker playback" + + EnableSequence [ + cset "name='Rx Slot Mask' 3" + cset "name='Speaker Volume' 72" + cset "name='Usage Mode' 3" + ] + + DisableSequence [ + cset "name='Speaker Volume' 0" + ] + + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},2" + PlaybackChannels 2 + } +} + +SectionDevice."Mic" { + Comment "Internal Digital Microphone Capture" + + 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" + CaptureChannels 1 + } +} diff --git a/ucm2/Qualcomm/shikra/shikra-cqm-evk/shikra-cqm-evk.conf b/ucm2/Qualcomm/shikra/shikra-cqm-evk/shikra-cqm-evk.conf new file mode 100644 index 0000000..789fed2 --- /dev/null +++ b/ucm2/Qualcomm/shikra/shikra-cqm-evk/shikra-cqm-evk.conf @@ -0,0 +1,10 @@ +Syntax 4 + +SectionUseCase."HiFi" { + File "/Qualcomm/shikra/shikra-cqm-evk/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/wsa885x/init.conf" diff --git a/ucm2/Qualcomm/shikra/shikra-cqs-evk/HiFi.conf b/ucm2/Qualcomm/shikra/shikra-cqs-evk/HiFi.conf new file mode 100644 index 0000000..f2dfdbd --- /dev/null +++ b/ucm2/Qualcomm/shikra/shikra-cqs-evk/HiFi.conf @@ -0,0 +1,56 @@ +# Use case configuration for Qualcomm Shikra CQS EVK. +# Codec: WSA885x I2S speaker, VA DMIC capture +# Speaker: hw:0,0 DMIC: hw:0,2 + +SectionVerb { + EnableSequence [ + cset "name='Rx Slot Mask' 3" + cset "name='Speaker Volume' 72" + cset "name='Usage Mode' 3" + cset "name='SECONDARY_TDM_RX_0 Audio Mixer MultiMedia1' 1" + cset "name='MultiMedia3 Mixer VA_CODEC_DMA_TX_0' 1" + ] + + DisableSequence [ + cset "name='Speaker Volume' 0" + ] + + Value { + TQ "HiFi" + } +} + +SectionDevice."Speaker" { + Comment "Speaker playback" + + EnableSequence [ + cset "name='Rx Slot Mask' 3" + cset "name='Speaker Volume' 72" + cset "name='Usage Mode' 3" + ] + + DisableSequence [ + cset "name='Speaker Volume' 0" + ] + + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},0" + PlaybackChannels 2 + } +} + +SectionDevice."Mic" { + Comment "Internal Digital Microphone capture" + + 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},2" + CaptureChannels 1 + } +} diff --git a/ucm2/Qualcomm/shikra/shikra-cqs-evk/shikra-cqs-evk.conf b/ucm2/Qualcomm/shikra/shikra-cqs-evk/shikra-cqs-evk.conf new file mode 100644 index 0000000..eb71043 --- /dev/null +++ b/ucm2/Qualcomm/shikra/shikra-cqs-evk/shikra-cqs-evk.conf @@ -0,0 +1,10 @@ +Syntax 4 + +SectionUseCase."HiFi" { + File "/Qualcomm/shikra/shikra-cqs-evk/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/wsa885x/init.conf" diff --git a/ucm2/Qualcomm/shikra/shikra-iqs-evk/HiFi.conf b/ucm2/Qualcomm/shikra/shikra-iqs-evk/HiFi.conf new file mode 100644 index 0000000..9c1af54 --- /dev/null +++ b/ucm2/Qualcomm/shikra/shikra-iqs-evk/HiFi.conf @@ -0,0 +1,51 @@ +# Use case configuration for Qualcomm Shikra IQS EVK. +# Codec: MAX98091 speaker, VA DMIC capture +# Speaker: hw:0,2 DMIC: hw:0,2 + +SectionVerb { + EnableSequence [ + cset "name='PRIMARY_MI2S_RX Audio Mixer MultiMedia1' 1" + cset "name='MultiMedia3 Mixer VA_CODEC_DMA_TX_0' 1" + ] + Include.e.File "/codecs/max98090/EnableSeq.conf" + Value { + TQ "HiFi" + } +} + +SectionDevice."Earpiece" { + Comment "Earpiece playback" + + Value { + PlaybackPCM "hw:${CardId},0" + PlaybackMixer "default:${CardId}" + } + + EnableSequence [ + cset "name='Speaker Left Switch' on" + cset "name='Speaker Right Switch' on" + cset "name='Speaker Switch' on" + ] + + DisableSequence [ + cset "name='Speaker Left Switch' off" + cset "name='Speaker Right Switch' off" + cset "name='Speaker Switch' off" + ] + +} + +SectionDevice."Mic" { + Comment "Internal Digital Microphone capture" + + 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},2" + CaptureChannels 1 + } +} diff --git a/ucm2/Qualcomm/shikra/shikra-iqs-evk/shikra-iqs-evk.conf b/ucm2/Qualcomm/shikra/shikra-iqs-evk/shikra-iqs-evk.conf new file mode 100644 index 0000000..99635bb --- /dev/null +++ b/ucm2/Qualcomm/shikra/shikra-iqs-evk/shikra-iqs-evk.conf @@ -0,0 +1,9 @@ +Syntax 4 + +SectionUseCase."HiFi" { + File "/Qualcomm/shikra/shikra-iqs-evk/HiFi.conf" + Comment "HiFi quality Music." +} + +Include.card-init.File "/lib/card-init.conf" +Include.ctl-remap.File "/lib/ctl-remap.conf" \ No newline at end of file diff --git a/ucm2/conf.d/shikra/shikra-cqm-evk.conf b/ucm2/conf.d/shikra/shikra-cqm-evk.conf new file mode 120000 index 0000000..de6a1d6 --- /dev/null +++ b/ucm2/conf.d/shikra/shikra-cqm-evk.conf @@ -0,0 +1 @@ +../../Qualcomm/shikra/shikra-cqm-evk/shikra-cqm-evk.conf \ No newline at end of file diff --git a/ucm2/conf.d/shikra/shikra-cqs-evk.conf b/ucm2/conf.d/shikra/shikra-cqs-evk.conf new file mode 120000 index 0000000..8cf74e3 --- /dev/null +++ b/ucm2/conf.d/shikra/shikra-cqs-evk.conf @@ -0,0 +1 @@ +../../Qualcomm/shikra/shikra-cqs-evk/shikra-cqs-evk.conf \ No newline at end of file diff --git a/ucm2/conf.d/shikra/shikra-iqs-evk.conf b/ucm2/conf.d/shikra/shikra-iqs-evk.conf new file mode 120000 index 0000000..5213655 --- /dev/null +++ b/ucm2/conf.d/shikra/shikra-iqs-evk.conf @@ -0,0 +1 @@ +../../Qualcomm/shikra/shikra-iqs-evk/shikra-iqs-evk.conf \ No newline at end of file