From 5ccdd198400e72526eaf589f641d77ff8549410a Mon Sep 17 00:00:00 2001 From: Mohammad Rafi Shaik Date: Wed, 29 Oct 2025 11:26:37 +0530 Subject: [PATCH] Qualcomm: qcs615: Add TALOS EVK HiFi config Add UCM2 configs for the Qualcomm Talos Board. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/631 Signed-off-by: Mohammad Rafi Shaik Signed-off-by: Jaroslav Kysela --- ucm2/Qualcomm/qcs615/HiFi.conf | 39 +++++++++++++++++++ ucm2/Qualcomm/qcs615/TALOS-EVK.conf | 10 +++++ ucm2/codecs/da7213/HeadphoneDisableSeq.conf | 5 +++ ucm2/codecs/da7213/HeadphoneEnableSeq.conf | 6 +++ .../da7213/HeadphoneMic2DisableSeq.conf | 9 +++++ .../codecs/da7213/HeadphoneMic2EnableSeq.conf | 14 +++++++ ucm2/codecs/da7213/init.conf | 9 +++++ ucm2/conf.d/qcs615/TALOS-EVK.conf | 1 + 8 files changed, 93 insertions(+) create mode 100644 ucm2/Qualcomm/qcs615/HiFi.conf create mode 100644 ucm2/Qualcomm/qcs615/TALOS-EVK.conf create mode 100644 ucm2/codecs/da7213/HeadphoneDisableSeq.conf create mode 100644 ucm2/codecs/da7213/HeadphoneEnableSeq.conf create mode 100644 ucm2/codecs/da7213/HeadphoneMic2DisableSeq.conf create mode 100644 ucm2/codecs/da7213/HeadphoneMic2EnableSeq.conf create mode 100644 ucm2/codecs/da7213/init.conf create mode 120000 ucm2/conf.d/qcs615/TALOS-EVK.conf diff --git a/ucm2/Qualcomm/qcs615/HiFi.conf b/ucm2/Qualcomm/qcs615/HiFi.conf new file mode 100644 index 0000000..8978b2c --- /dev/null +++ b/ucm2/Qualcomm/qcs615/HiFi.conf @@ -0,0 +1,39 @@ +SectionVerb { + Value { + TQ "HiFi" + } + EnableSequence [ + cset "name='PRIMARY_MI2S_RX Audio Mixer MultiMedia1' 1" + cset "name='MultiMedia2 Mixer PRIMARY_MI2S_TX' 1" + ] +} + +SectionDevice."Headphones" { + Comment "Headphones playback" + + Include.da7213hpe.File "/codecs/da7213/HeadphoneEnableSeq.conf" + Include.da7213hpd.File "/codecs/da7213/HeadphoneDisableSeq.conf" + + Value { + PlaybackChannels 2 + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},0" + PlaybackMixer "default:${CardId}" + PlaybackMixerElem "HP Digital" + JackControl "Headphone Jack" + } +} + +SectionDevice."Headset" { + Comment "Headset microphone" + + Include.da7213hpmice.File "/codecs/da7213/HeadphoneMic2EnableSeq.conf" + Include.da7213hpmicd.File "/codecs/da7213/HeadphoneMic2DisableSeq.conf" + + Value { + CapturePriority 100 + CapturePCM "hw:${CardId},1" + JackControl "Mic Jack" + JackHWMute "Mic" + } +} diff --git a/ucm2/Qualcomm/qcs615/TALOS-EVK.conf b/ucm2/Qualcomm/qcs615/TALOS-EVK.conf new file mode 100644 index 0000000..11923f0 --- /dev/null +++ b/ucm2/Qualcomm/qcs615/TALOS-EVK.conf @@ -0,0 +1,10 @@ +Syntax 4 + +SectionUseCase."HiFi" { + File "/Qualcomm/qcs615/HiFi.conf" + Comment "HiFi quality Music" +} + +Include.card-init.File "/lib/card-init.conf" +Include.ctl-remap.File "/lib/ctl-remap.conf" +Include.da7213-init.File "/codecs/da7213/init.conf" diff --git a/ucm2/codecs/da7213/HeadphoneDisableSeq.conf b/ucm2/codecs/da7213/HeadphoneDisableSeq.conf new file mode 100644 index 0000000..3d3c253 --- /dev/null +++ b/ucm2/codecs/da7213/HeadphoneDisableSeq.conf @@ -0,0 +1,5 @@ +DisableSequence [ + cset "name='Mixout Left DAC Left Switch' off" + cset "name='Mixout Right DAC Right Switch' off" + cset "name='Headphone Switch' off" +] diff --git a/ucm2/codecs/da7213/HeadphoneEnableSeq.conf b/ucm2/codecs/da7213/HeadphoneEnableSeq.conf new file mode 100644 index 0000000..64ee5cd --- /dev/null +++ b/ucm2/codecs/da7213/HeadphoneEnableSeq.conf @@ -0,0 +1,6 @@ +EnableSequence [ + cset "name='Mixout Left DAC Left Switch' on" + cset "name='Mixout Right DAC Right Switch' on" + cset "name='Headphone Switch' on" + cset "name='Headphone Volume' 84" +] diff --git a/ucm2/codecs/da7213/HeadphoneMic2DisableSeq.conf b/ucm2/codecs/da7213/HeadphoneMic2DisableSeq.conf new file mode 100644 index 0000000..a42f5f1 --- /dev/null +++ b/ucm2/codecs/da7213/HeadphoneMic2DisableSeq.conf @@ -0,0 +1,9 @@ +DisableSequence [ + cset "name='Mic 2 Switch' off" + cset "name='Mixin Left Mic 2 Switch' off" + cset "name='Mixin Right Mic 2 Switch' off" + cset "name='Mixin PGA Switch' off" + cset "name='Headphone Switch' off" + cset "name='Mixout Left DAC Left Switch' off" + cset "name='Mixout Right DAC Right Switch' off" +] diff --git a/ucm2/codecs/da7213/HeadphoneMic2EnableSeq.conf b/ucm2/codecs/da7213/HeadphoneMic2EnableSeq.conf new file mode 100644 index 0000000..d3a69e0 --- /dev/null +++ b/ucm2/codecs/da7213/HeadphoneMic2EnableSeq.conf @@ -0,0 +1,14 @@ +EnableSequence [ + cset "name='DMIC Switch' off" + cset "name='Mic 2 Amp Source MUX' MIC_P" + cset "name='Mic 2 Switch' on" + cset "name='Mixin Left Mic 2 Switch' on" + cset "name='Mixin Right Mic 2 Switch' on" + cset "name='Mixin PGA Switch' on" + cset "name='DAI Left Source MUX' ADC Left" + cset "name='DAI Right Source MUX' ADC Right" + cset "name='Headphone Volume' 85" + cset "name='Headphone Switch' on" + cset "name='Mixout Left DAC Left Switch' on" + cset "name='Mixout Right DAC Right Switch' on" +] diff --git a/ucm2/codecs/da7213/init.conf b/ucm2/codecs/da7213/init.conf new file mode 100644 index 0000000..3e0fad0 --- /dev/null +++ b/ucm2/codecs/da7213/init.conf @@ -0,0 +1,9 @@ +# DA7213 Digital codec specific control settings + +BootSequence [ + cset "name='DMIC Switch' off" + cset "name='Headphone Volume' 0" + cset "name='Headphone Switch' off" + cset "name='Mixout Left DAC Left Switch' off" + cset "name='Mixout Right DAC Right Switch' off" +] diff --git a/ucm2/conf.d/qcs615/TALOS-EVK.conf b/ucm2/conf.d/qcs615/TALOS-EVK.conf new file mode 120000 index 0000000..e7418b4 --- /dev/null +++ b/ucm2/conf.d/qcs615/TALOS-EVK.conf @@ -0,0 +1 @@ +../../Qualcomm/qcs615/TALOS-EVK.conf \ No newline at end of file -- 2.47.3