From 489b9a1406b640d6eeb44b1a78e5750ec6d691ec Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Tue, 18 Jul 2023 12:51:06 +0100 Subject: [PATCH] ucm2: codecs: wsa883x: add Speakers Volume in init conf 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 Reviewed-by: Johan Hovold Tested-by: Johan Hovold Signed-off-by: Jaroslav Kysela --- ucm2/codecs/wsa883x/init.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ucm2/codecs/wsa883x/init.conf diff --git a/ucm2/codecs/wsa883x/init.conf b/ucm2/codecs/wsa883x/init.conf new file mode 100644 index 0000000..75a8fa4 --- /dev/null +++ b/ucm2/codecs/wsa883x/init.conf @@ -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 + } + } +} + -- 2.47.3