]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: codecs: pm4125: add ucm for codec
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Wed, 25 Jun 2025 11:03:55 +0000 (12:03 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 30 Oct 2025 09:34:23 +0000 (10:34 +0100)
Add UCM support for Headset and Lineout mixer sequences for PM4125
codec that got merged in last cycle.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/621
Cc: Alexey Klimov <alexey.klimov@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/pm4125/HeadphoneDisableSeq.conf [new file with mode: 0644]
ucm2/codecs/pm4125/HeadphoneEnableSeq.conf [new file with mode: 0644]
ucm2/codecs/pm4125/HeadphoneMicDisableSeq.conf [new file with mode: 0644]
ucm2/codecs/pm4125/HeadphoneMicEnableSeq.conf [new file with mode: 0644]
ucm2/codecs/pm4125/LineoutDisableSeq.conf [new file with mode: 0644]
ucm2/codecs/pm4125/LineoutEnableSeq.conf [new file with mode: 0644]

diff --git a/ucm2/codecs/pm4125/HeadphoneDisableSeq.conf b/ucm2/codecs/pm4125/HeadphoneDisableSeq.conf
new file mode 100644 (file)
index 0000000..b67d02e
--- /dev/null
@@ -0,0 +1,8 @@
+DisableSequence [
+       cset "name='HPHL_RDAC Switch' 0"
+       cset "name='HPHR_RDAC Switch' 0"
+       cset "name='HPHL Switch' 0"
+       cset "name='HPHR Switch' 0"
+       cset "name='HPHL_COMP Switch' 0"
+       cset "name='HPHR_COMP Switch' 0"
+]
diff --git a/ucm2/codecs/pm4125/HeadphoneEnableSeq.conf b/ucm2/codecs/pm4125/HeadphoneEnableSeq.conf
new file mode 100644 (file)
index 0000000..15c1b4e
--- /dev/null
@@ -0,0 +1,8 @@
+EnableSequence [
+       cset "name='HPHL_RDAC Switch' 1"
+       cset "name='HPHR_RDAC Switch' 1"
+       cset "name='HPHL Switch' 1"
+       cset "name='HPHR Switch' 1"
+       cset "name='HPHR_COMP Switch' 0"
+       cset "name='HPHL_COMP Switch' 0"
+]
diff --git a/ucm2/codecs/pm4125/HeadphoneMicDisableSeq.conf b/ucm2/codecs/pm4125/HeadphoneMicDisableSeq.conf
new file mode 100644 (file)
index 0000000..498b8b3
--- /dev/null
@@ -0,0 +1,4 @@
+DisableSequence [
+       cset "name='ADC2_MIXER Switch' 0"
+       cset "name='ADC2 Switch' 0"
+]
diff --git a/ucm2/codecs/pm4125/HeadphoneMicEnableSeq.conf b/ucm2/codecs/pm4125/HeadphoneMicEnableSeq.conf
new file mode 100644 (file)
index 0000000..41cb5c4
--- /dev/null
@@ -0,0 +1,5 @@
+EnableSequence [
+       cset "name='ADC2_MIXER Switch' 1"
+       cset "name='ADC2 MUX' INP2"
+       cset "name='ADC2 Switch' 1"
+]
diff --git a/ucm2/codecs/pm4125/LineoutDisableSeq.conf b/ucm2/codecs/pm4125/LineoutDisableSeq.conf
new file mode 100644 (file)
index 0000000..4b74d35
--- /dev/null
@@ -0,0 +1,5 @@
+DisableSequence [
+       cset "name='HPHL Switch' 0"
+       cset "name='HPHL_RDAC Switch' 0"
+       cset "name='LO_RDAC Switch' 0"
+]
diff --git a/ucm2/codecs/pm4125/LineoutEnableSeq.conf b/ucm2/codecs/pm4125/LineoutEnableSeq.conf
new file mode 100644 (file)
index 0000000..a8920a6
--- /dev/null
@@ -0,0 +1,5 @@
+EnableSequence [
+       cset "name='HPHL Switch' 1"
+       cset "name='HPHL_RDAC Switch' 1"
+       cset "name='LO_RDAC Switch' 1"
+]