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 <mohammad.rafi.shaik@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
--- /dev/null
+# 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
+ }
+}
--- /dev/null
+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"
--- /dev/null
+# 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
+ }
+}
--- /dev/null
+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"
--- /dev/null
+# 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
+ }
+}
--- /dev/null
+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
--- /dev/null
+../../Qualcomm/shikra/shikra-cqm-evk/shikra-cqm-evk.conf
\ No newline at end of file
--- /dev/null
+../../Qualcomm/shikra/shikra-cqs-evk/shikra-cqs-evk.conf
\ No newline at end of file
--- /dev/null
+../../Qualcomm/shikra/shikra-iqs-evk/shikra-iqs-evk.conf
\ No newline at end of file