Skip to content

Commit b6aa31e

Browse files
committed
alsa-ucm-conf: Add Glymur CRD HiFi config
Add UCM2 configs for the Qualcomm Glymur CRD Board. Patches sent to OE-core. Link: https://lore.kernel.org/openembedded-core/20260413084812.327438-1-mohammad.rafi.shaik@oss.qualcomm.com/T/#u Link: alsa-project/alsa-ucm-conf@41cfa54 Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
1 parent f14dfca commit b6aa31e

2 files changed

Lines changed: 109 additions & 0 deletions

File tree

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
From 41cfa5498ab37b67ae474abc88f08c9ef1bf9cc3 Mon Sep 17 00:00:00 2001
2+
From: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
3+
Date: Wed, 4 Mar 2026 15:09:06 +0530
4+
Subject: [PATCH] Qualcomm: glymur: Add GLYMUR CRD HiFi config
5+
6+
Add UCM2 configs for the Qualcomm GLYMUR CRD Board.
7+
8+
Upstream-Status: Backport
9+
[https://github.com/alsa-project/alsa-ucm-conf/commit/41cfa5498ab37b67ae474abc88f08c9ef1bf9cc3]
10+
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/713
11+
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
12+
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13+
---
14+
ucm2/Qualcomm/glymur/GLYMUR-CRD.conf | 11 +++++++
15+
ucm2/Qualcomm/glymur/HiFi.conf | 49 ++++++++++++++++++++++++++++
16+
ucm2/conf.d/glymur/GLYMUR-CRD.conf | 1 +
17+
3 files changed, 61 insertions(+)
18+
create mode 100755 ucm2/Qualcomm/glymur/GLYMUR-CRD.conf
19+
create mode 100755 ucm2/Qualcomm/glymur/HiFi.conf
20+
create mode 120000 ucm2/conf.d/glymur/GLYMUR-CRD.conf
21+
22+
diff --git a/ucm2/Qualcomm/glymur/GLYMUR-CRD.conf b/ucm2/Qualcomm/glymur/GLYMUR-CRD.conf
23+
new file mode 100755
24+
index 0000000..15deae9
25+
--- /dev/null
26+
+++ b/ucm2/Qualcomm/glymur/GLYMUR-CRD.conf
27+
@@ -0,0 +1,11 @@
28+
+Syntax 4
29+
+
30+
+SectionUseCase."HiFi" {
31+
+ File "/Qualcomm/glymur/HiFi.conf"
32+
+ Comment "HiFi quality Music."
33+
+}
34+
+
35+
+Include.card-init.File "/lib/card-init.conf"
36+
+Include.ctl-remap.File "/lib/ctl-remap.conf"
37+
+Include.wsa-init.File "/codecs/wsa884x/four-speakers/init.conf"
38+
+Include.wsam-init.File "/codecs/qcom-lpass/wsa-macro/four-speakers/init.conf"
39+
diff --git a/ucm2/Qualcomm/glymur/HiFi.conf b/ucm2/Qualcomm/glymur/HiFi.conf
40+
new file mode 100755
41+
index 0000000..7419c1e
42+
--- /dev/null
43+
+++ b/ucm2/Qualcomm/glymur/HiFi.conf
44+
@@ -0,0 +1,49 @@
45+
+# Use case configuration for X1E80100.
46+
+# Author: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
47+
+
48+
+SectionVerb {
49+
+ EnableSequence [
50+
+ cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
51+
+ cset "name='MultiMedia2 Mixer VA_CODEC_DMA_TX_0' 1"
52+
+ ]
53+
+
54+
+ Include.wsae.File "/codecs/wsa884x/four-speakers/DefaultEnableSeq.conf"
55+
+ Include.wsm1e.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerEnableSeq.conf"
56+
+ Include.wsm2e.File "/codecs/qcom-lpass/wsa-macro/Wsa2SpeakerEnableSeq.conf"
57+
+
58+
+ Value {
59+
+ TQ "HiFi"
60+
+ }
61+
+}
62+
+
63+
+SectionDevice."Speaker" {
64+
+ Comment "Speaker playback"
65+
+
66+
+ Include.wsmspk1e.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerEnableSeq.conf"
67+
+ Include.wsmspk2e.File "/codecs/qcom-lpass/wsa-macro/Wsa2SpeakerEnableSeq.conf"
68+
+ Include.wsmspk1d.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerDisableSeq.conf"
69+
+ Include.wsmspk2d.File "/codecs/qcom-lpass/wsa-macro/Wsa2SpeakerDisableSeq.conf"
70+
+ Include.wsaspk.File "/codecs/wsa884x/four-speakers/SpeakerSeq.conf"
71+
+
72+
+ Value {
73+
+ PlaybackChannels 4
74+
+ PlaybackPriority 100
75+
+ PlaybackPCM "hw:${CardId},0"
76+
+ PlaybackMixer "default:${CardId}"
77+
+ PlaybackMixerElem "Speakers"
78+
+ }
79+
+}
80+
+
81+
+SectionDevice."Mic" {
82+
+ Comment "Internal microphones"
83+
+
84+
+ Include.vadm0e.File "/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf"
85+
+ Include.vadm0d.File "/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf"
86+
+ Include.vadm1e.File "/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf"
87+
+ Include.vadm1d.File "/codecs/qcom-lpass/va-macro/DMIC1DisableSeq.conf"
88+
+
89+
+ Value {
90+
+ CapturePriority 100
91+
+ CapturePCM "hw:${CardId},1"
92+
+ }
93+
+}
94+
diff --git a/ucm2/conf.d/glymur/GLYMUR-CRD.conf b/ucm2/conf.d/glymur/GLYMUR-CRD.conf
95+
new file mode 120000
96+
index 0000000..f90f419
97+
--- /dev/null
98+
+++ b/ucm2/conf.d/glymur/GLYMUR-CRD.conf
99+
@@ -0,0 +1 @@
100+
+../../Qualcomm/glymur/GLYMUR-CRD.conf
101+
\ No newline at end of file
102+
--
103+
2.34.1
104+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
2+
3+
SRC_URI:append:qcom = " \
4+
file://0001-Qualcomm-glymur-Add-GLYMUR-CRD-HiFi-config.patch \
5+
"

0 commit comments

Comments
 (0)