]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: codecs: wsa883x: add Speakers Volume in init conf
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 18 Jul 2023 11:51:06 +0000 (12:51 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 Oct 2023 10:00:56 +0000 (11:00 +0100)
Add combined analog volume controls for Speakers in the init conf

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/335
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/wsa883x/init.conf [new file with mode: 0644]

diff --git a/ucm2/codecs/wsa883x/init.conf b/ucm2/codecs/wsa883x/init.conf
new file mode 100644 (file)
index 0000000..75a8fa4
--- /dev/null
@@ -0,0 +1,18 @@
+# WSA883x specific volume control settings
+
+BootSequence [
+       cset "name='WSA_RX0 Digital Volume' 84"
+       cset "name='WSA_RX1 Digital Volume' 84"
+]
+
+LibraryConfig.remap.Config {
+
+       ctl.default.map {
+               # Merge two mono controls into one stereo
+               "name='Speakers Volume'" {
+                       "name='SpkrLeft PA Volume'".vindex.0 0
+                       "name='SpkrRight PA Volume'".vindex.1 0
+               }
+       }
+}
+