Skip to content

Commit 15e5f57

Browse files
CodeChenLRadxaYuntian
authored andcommitted
feat: add Radxa-CM-Q64 support
Signed-off-by: Jiali Chen <chenjiali@radxa.com>
1 parent 499d885 commit 15e5f57

2 files changed

Lines changed: 111 additions & 0 deletions

File tree

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
diff --git a/src/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-CM-Q64/HiFi.conf b/src/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-CM-Q64/HiFi.conf
2+
new file mode 100644
3+
index 0000000..d36d0a7
4+
--- /dev/null
5+
+++ b/src/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-CM-Q64/HiFi.conf
6+
@@ -0,0 +1,73 @@
7+
+SectionVerb {
8+
+ EnableSequence [
9+
+ cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
10+
+ cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 0"
11+
+ cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
12+
+ cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1"
13+
+ ]
14+
+
15+
+ Value {
16+
+ TQ "HiFi"
17+
+ }
18+
+}
19+
+
20+
+SectionDevice."Headphones" {
21+
+ Comment "Headphones playback"
22+
+
23+
+ Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
24+
+ Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
25+
+ Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
26+
+ Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
27+
+
28+
+ EnableSequence [
29+
+ cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
30+
+ ]
31+
+
32+
+ DisableSequence [
33+
+ cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 0"
34+
+ ]
35+
+
36+
+ Value {
37+
+ PlaybackPriority 200
38+
+ PlaybackPCM "hw:${CardId},0"
39+
+ PlaybackMixer "default:${CardId}"
40+
+ PlaybackMixerElem "HP"
41+
+ JackControl "Headphone Jack"
42+
+ }
43+
+}
44+
+
45+
+SectionDevice."HDMI" {
46+
+ Comment "HDMI/DisplayPort0 playback"
47+
+
48+
+ EnableSequence [
49+
+ cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 0"
50+
+ cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 1"
51+
+ ]
52+
+
53+
+ DisableSequence [
54+
+ cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' 0"
55+
+ cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
56+
+ ]
57+
+
58+
+ Value {
59+
+ PlaybackPriority 100
60+
+ PlaybackPCM "hw:${CardId},1"
61+
+ JackControl "DP0 Jack"
62+
+ }
63+
+}
64+
+
65+
+SectionDevice."Headset" {
66+
+ Comment "Headset microphone"
67+
+
68+
+ Include.wcdmice.File "/codecs/wcd938x/HeadphoneMicEnableSeq.conf"
69+
+ Include.wcdmicd.File "/codecs/wcd938x/HeadphoneMicDisableSeq.conf"
70+
+ Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf"
71+
+ Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf"
72+
+
73+
+ Value {
74+
+ CapturePriority 100
75+
+ CapturePCM "hw:${CardId},2"
76+
+ CaptureMixerElem "ADC2"
77+
+ JackControl "Mic Jack"
78+
+ }
79+
+}
80+
diff --git a/src/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-CM-Q64/QCS6490-Radxa-CM-Q64.conf b/src/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-CM-Q64/QCS6490-Radxa-CM-Q64.conf
81+
new file mode 100644
82+
index 0000000..42ae12d
83+
--- /dev/null
84+
+++ b/src/ucm2/Qualcomm/qcs6490/QCS6490-Radxa-CM-Q64/QCS6490-Radxa-CM-Q64.conf
85+
@@ -0,0 +1,17 @@
86+
+Syntax 4
87+
+
88+
+SectionUseCase."HiFi" {
89+
+ File "/Qualcomm/qcs6490/QCS6490-Radxa-CM-Q64/HiFi.conf"
90+
+ Comment "HiFi quality Music."
91+
+}
92+
+
93+
+BootSequence [
94+
+ cset "name='HPHL Volume' 2"
95+
+ cset "name='HPHR Volume' 2"
96+
+ cset "name='ADC2 Volume' 10"
97+
+]
98+
+
99+
+Include.card-init.File "/lib/card-init.conf"
100+
+Include.ctl-remap.File "/lib/ctl-remap.conf"
101+
+Include.wcd-init.File "/codecs/wcd938x/init.conf"
102+
+Include.rxm-init.File "/codecs/qcom-lpass/rx-macro/init.conf"
103+
diff --git a/src/ucm2/conf.d/qcs6490/QCS6490-Radxa-CM-Q64.conf b/src/ucm2/conf.d/qcs6490/QCS6490-Radxa-CM-Q64.conf
104+
new file mode 120000
105+
index 0000000..f946c0e
106+
--- /dev/null
107+
+++ b/src/ucm2/conf.d/qcs6490/QCS6490-Radxa-CM-Q64.conf
108+
@@ -0,0 +1 @@
109+
+../../Qualcomm/qcs6490/QCS6490-Radxa-CM-Q64/QCS6490-Radxa-CM-Q64.conf
110+
\ No newline at end of file

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
radxa/0003-ucm2-Qualcomm-qcs6490-Add-DMI-match-for-Radxa-Dragon.patch
22
radxa/0004-ucm2-Qualcomm-add-Radxa-Dragon-Q8B.patch
3+
radxa/0005-ucm2-Qualcomm-add-Radxa-CM-Q64.patch

0 commit comments

Comments
 (0)