]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Qualcomm: add Radxa Dragon Q6A
authorXilin Wu <sophon@radxa.com>
Sun, 10 Aug 2025 13:06:38 +0000 (21:06 +0800)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Sep 2025 10:29:58 +0000 (12:29 +0200)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/601
Signed-off-by: Xilin Wu <sophon@radxa.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Qualcomm/qcs6490/QCS6490-Radxa-Dragon-Q6A/HiFi.conf [new file with mode: 0644]
ucm2/Qualcomm/qcs6490/QCS6490-Radxa-Dragon-Q6A/QCS6490-Radxa-Dragon-Q6A.conf [new file with mode: 0644]
ucm2/conf.d/qcs6490/QCS6490-Radxa-Dragon-Q6A.conf [new symlink]

diff --git a/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-Dragon-Q6A/HiFi.conf b/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-Dragon-Q6A/HiFi.conf
new file mode 100644 (file)
index 0000000..4ed6b27
--- /dev/null
@@ -0,0 +1,73 @@
+SectionVerb {
+       EnableSequence [
+               cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
+               cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 0"
+               cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
+               cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1"
+       ]
+
+       Value {
+               TQ "HiFi"
+       }
+}
+
+SectionDevice."Headphones" {
+       Comment "Headphones playback"
+
+       Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
+       Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
+       Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
+       Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
+
+       EnableSequence [
+               cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
+       ]
+
+       DisableSequence [
+               cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 0"
+       ]
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId},0"
+               PlaybackMixer "default:${CardId}"
+               PlaybackMixerElem "HP"
+               JackControl "Headphone Jack"
+       }
+}
+
+SectionDevice."DisplayPort" {
+       Comment "DisplayPort playback"
+
+       EnableSequence [
+               cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 0"
+               cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 1"
+       ]
+
+       DisableSequence [
+               cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 0"
+               cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
+       ]
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},1"
+               JackControl "DP0 Jack"
+       }
+}
+
+SectionDevice."Headset" {
+       Comment "Headset microphone"
+
+       Include.wcdmice.File "/codecs/wcd938x/HeadphoneMicEnableSeq.conf"
+       Include.wcdmicd.File "/codecs/wcd938x/HeadphoneMicDisableSeq.conf"
+       Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf"
+       Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf"
+
+       Value {
+               CapturePriority 100
+               CapturePCM "hw:${CardId},2"
+               CaptureMixerElem "ADC2"
+               JackControl "Mic Jack"
+       }
+}
diff --git a/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-Dragon-Q6A/QCS6490-Radxa-Dragon-Q6A.conf b/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-Dragon-Q6A/QCS6490-Radxa-Dragon-Q6A.conf
new file mode 100644 (file)
index 0000000..76b1a92
--- /dev/null
@@ -0,0 +1,17 @@
+Syntax 4
+
+SectionUseCase."HiFi" {
+       File "/Qualcomm/qcs6490/QCS6490-Radxa-Dragon-Q6A/HiFi.conf"
+       Comment "HiFi quality Music."
+}
+
+BootSequence [
+       cset "name='HPHL Volume' 2"
+       cset "name='HPHR Volume' 2"
+       cset "name='ADC2 Volume' 10"
+]
+
+Include.card-init.File "/lib/card-init.conf"
+Include.ctl-remap.File "/lib/ctl-remap.conf"
+Include.wcd-init.File "/codecs/wcd938x/init.conf"
+Include.rxm-init.File "/codecs/qcom-lpass/rx-macro/init.conf"
diff --git a/ucm2/conf.d/qcs6490/QCS6490-Radxa-Dragon-Q6A.conf b/ucm2/conf.d/qcs6490/QCS6490-Radxa-Dragon-Q6A.conf
new file mode 120000 (symlink)
index 0000000..0683c36
--- /dev/null
@@ -0,0 +1 @@
+../../Qualcomm/qcs6490/QCS6490-Radxa-Dragon-Q6A/QCS6490-Radxa-Dragon-Q6A.conf
\ No newline at end of file