From f3919906c900a503800a68f7c64dc554bb90b56a Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Mon, 4 Dec 2023 12:30:51 +0100 Subject: [PATCH] codecs: qcom-lpass/tx-macro: Add Soundwire Analog Add configs to enable/disable Analog Microphones. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/390 Signed-off-by: Neil Armstrong Signed-off-by: Jaroslav Kysela --- .../codecs/qcom-lpass/tx-macro/SoundwireMic0EnableSeq.conf | 6 ++++++ .../codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf | 7 +++++++ .../codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf | 4 ++++ 3 files changed, 17 insertions(+) create mode 100644 ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic0EnableSeq.conf create mode 100644 ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf create mode 100644 ucm2/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf diff --git a/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic0EnableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic0EnableSeq.conf new file mode 100644 index 0000000..8282b9c --- /dev/null +++ b/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic0EnableSeq.conf @@ -0,0 +1,6 @@ +EnableSequence [ + cset "name='TX DEC0 MUX' SWR_MIC" + cset "name='TX SMIC MUX0' SWR_MIC0" + cset "name='TX_AIF1_CAP Mixer DEC0' 1" + cset "name='TX_DEC0 Volume' 100" +] diff --git a/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf new file mode 100644 index 0000000..28152bf --- /dev/null +++ b/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf @@ -0,0 +1,7 @@ +EnableSequence [ + cset "name='TX DEC0 MUX' SWR_MIC" + cset "name='TX SMIC MUX0' SWR_MIC1" + cset "name='TX_AIF1_CAP Mixer DEC0' 1" + cset "name='DEC0 MODE' ADC_DEFAULT" + cset "name='TX_DEC0 Volume' 110" +] diff --git a/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf new file mode 100644 index 0000000..9cee13f --- /dev/null +++ b/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf @@ -0,0 +1,4 @@ +DisableSequence [ + cset "name='TX SMIC MUX0' ZERO" + cset "name='TX_AIF1_CAP Mixer DEC0' 0" +] -- 2.47.1