From fd2a2aa951dcb26d97078ee4878bfea46e3cfd30 Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Tue, 4 Oct 2022 15:35:08 +0100 Subject: [PATCH 1/8] ucm2: codecs: wsa883x: add codec sequences Add default, enable/disable codec sequence for wsa883x codec Signed-off-by: Srinivas Kandagatla --- ucm2/codecs/wsa883x/DefaultEnableSeq.conf | 12 ++++++++++++ ucm2/codecs/wsa883x/SpeakerDisableSeq.conf | 10 ++++++++++ ucm2/codecs/wsa883x/SpeakerEnableSeq.conf | 14 ++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 ucm2/codecs/wsa883x/DefaultEnableSeq.conf create mode 100644 ucm2/codecs/wsa883x/SpeakerDisableSeq.conf create mode 100644 ucm2/codecs/wsa883x/SpeakerEnableSeq.conf diff --git a/ucm2/codecs/wsa883x/DefaultEnableSeq.conf b/ucm2/codecs/wsa883x/DefaultEnableSeq.conf new file mode 100644 index 00000000..a079cdc9 --- /dev/null +++ b/ucm2/codecs/wsa883x/DefaultEnableSeq.conf @@ -0,0 +1,12 @@ +EnableSequence [ + cset "name='SpkrLeft COMP Switch' 1" + cset "name='SpkrLeft BOOST Switch' 1" + cset "name='SpkrLeft DAC Switch' 1" + cset "name='SpkrLeft VISENSE Switch' 0" + cset "name='SpkrLeft WSA MODE' 0" + cset "name='SpkrRight COMP Switch' 1" + cset "name='SpkrRight BOOST Switch' 1" + cset "name='SpkrRight DAC Switch' 1" + cset "name='SpkrRight VISENSE Switch' 0" + cset "name='SpkrRight WSA MODE' 0" +] diff --git a/ucm2/codecs/wsa883x/SpeakerDisableSeq.conf b/ucm2/codecs/wsa883x/SpeakerDisableSeq.conf new file mode 100644 index 00000000..9439eb8b --- /dev/null +++ b/ucm2/codecs/wsa883x/SpeakerDisableSeq.conf @@ -0,0 +1,10 @@ +DisableSequence [ + cset "name='SpkrLeft COMP Switch' 0" + cset "name='SpkrLeft BOOST Switch' 0" + cset "name='SpkrLeft DAC Switch' 0" + cset "name='SpkrLeft VISENSE Switch' 0" + cset "name='SpkrRight COMP Switch' 0" + cset "name='SpkrRight BOOST Switch' 0" + cset "name='SpkrRight DAC Switch' 0" + cset "name='SpkrRight VISENSE Switch' 0" +] diff --git a/ucm2/codecs/wsa883x/SpeakerEnableSeq.conf b/ucm2/codecs/wsa883x/SpeakerEnableSeq.conf new file mode 100644 index 00000000..3a05b4f2 --- /dev/null +++ b/ucm2/codecs/wsa883x/SpeakerEnableSeq.conf @@ -0,0 +1,14 @@ +EnableSequence [ + cset "name='SpkrLeft COMP Switch' 1" + cset "name='SpkrLeft BOOST Switch' 1" + cset "name='SpkrLeft DAC Switch' 1" + cset "name='SpkrLeft VISENSE Switch' 0" + cset "name='SpkrLeft WSA MODE' 0" + cset "name='SpkrLeft PA Volume' 12" + cset "name='SpkrRight COMP Switch' 1" + cset "name='SpkrRight BOOST Switch' 1" + cset "name='SpkrRight DAC Switch' 1" + cset "name='SpkrRight VISENSE Switch' 0" + cset "name='SpkrRight PA Volume' 12" + cset "name='SpkrRight WSA MODE' 0" +] From 7988c4fd2848a53e2b029609b206519b5db1f9c6 Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Tue, 4 Oct 2022 15:36:26 +0100 Subject: [PATCH 2/8] ucm2: codecs: wcd938x: add codec sequences Add default, enable/disable codec sequence for Headphone and Mic on WCD938x codec Signed-off-by: Srinivas Kandagatla --- ucm2/codecs/wcd938x/DefaultDisableSeq.conf | 2 ++ ucm2/codecs/wcd938x/DefaultEnableSeq.conf | 6 ++++++ ucm2/codecs/wcd938x/HeadphoneDisableSeq.conf | 8 ++++++++ ucm2/codecs/wcd938x/HeadphoneEnableSeq.conf | 8 ++++++++ .../wcd938x/HeadphoneMicDisableSeq.conf | 4 ++++ .../codecs/wcd938x/HeadphoneMicEnableSeq.conf | 7 +++++++ ucm2/codecs/wcd938x/init.conf | 19 +++++++++++++++++++ 7 files changed, 54 insertions(+) create mode 100644 ucm2/codecs/wcd938x/DefaultDisableSeq.conf create mode 100644 ucm2/codecs/wcd938x/DefaultEnableSeq.conf create mode 100644 ucm2/codecs/wcd938x/HeadphoneDisableSeq.conf create mode 100644 ucm2/codecs/wcd938x/HeadphoneEnableSeq.conf create mode 100644 ucm2/codecs/wcd938x/HeadphoneMicDisableSeq.conf create mode 100644 ucm2/codecs/wcd938x/HeadphoneMicEnableSeq.conf create mode 100644 ucm2/codecs/wcd938x/init.conf diff --git a/ucm2/codecs/wcd938x/DefaultDisableSeq.conf b/ucm2/codecs/wcd938x/DefaultDisableSeq.conf new file mode 100644 index 00000000..eee61126 --- /dev/null +++ b/ucm2/codecs/wcd938x/DefaultDisableSeq.conf @@ -0,0 +1,2 @@ +DisableSequence [ +] diff --git a/ucm2/codecs/wcd938x/DefaultEnableSeq.conf b/ucm2/codecs/wcd938x/DefaultEnableSeq.conf new file mode 100644 index 00000000..d283a5d9 --- /dev/null +++ b/ucm2/codecs/wcd938x/DefaultEnableSeq.conf @@ -0,0 +1,6 @@ +EnableSequence [ + cset "name='RX_RX0 Digital Volume' 80" + cset "name='RX_RX1 Digital Volume' 80" + cset "name='HPHR Volume' 20" + cset "name='HPHL Volume' 20" +] diff --git a/ucm2/codecs/wcd938x/HeadphoneDisableSeq.conf b/ucm2/codecs/wcd938x/HeadphoneDisableSeq.conf new file mode 100644 index 00000000..9b66ccf4 --- /dev/null +++ b/ucm2/codecs/wcd938x/HeadphoneDisableSeq.conf @@ -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='CLSH Switch' 0" + cset "name='LO Switch' 0" +] diff --git a/ucm2/codecs/wcd938x/HeadphoneEnableSeq.conf b/ucm2/codecs/wcd938x/HeadphoneEnableSeq.conf new file mode 100644 index 00000000..6c9236de --- /dev/null +++ b/ucm2/codecs/wcd938x/HeadphoneEnableSeq.conf @@ -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='CLSH Switch' 1" + cset "name='LO Switch' 1" +] diff --git a/ucm2/codecs/wcd938x/HeadphoneMicDisableSeq.conf b/ucm2/codecs/wcd938x/HeadphoneMicDisableSeq.conf new file mode 100644 index 00000000..498b8b38 --- /dev/null +++ b/ucm2/codecs/wcd938x/HeadphoneMicDisableSeq.conf @@ -0,0 +1,4 @@ +DisableSequence [ + cset "name='ADC2_MIXER Switch' 0" + cset "name='ADC2 Switch' 0" +] diff --git a/ucm2/codecs/wcd938x/HeadphoneMicEnableSeq.conf b/ucm2/codecs/wcd938x/HeadphoneMicEnableSeq.conf new file mode 100644 index 00000000..58b6b798 --- /dev/null +++ b/ucm2/codecs/wcd938x/HeadphoneMicEnableSeq.conf @@ -0,0 +1,7 @@ +EnableSequence [ + cset "name='ADC2_MIXER Switch' 1" + cset "name='HDR12 MUX' NO_HDR12" + cset "name='ADC2 MUX' INP2" + cset "name='ADC2 Switch' 1" + cset "name='ADC2 Volume' 10" +] diff --git a/ucm2/codecs/wcd938x/init.conf b/ucm2/codecs/wcd938x/init.conf new file mode 100644 index 00000000..9bf7fd86 --- /dev/null +++ b/ucm2/codecs/wcd938x/init.conf @@ -0,0 +1,19 @@ +# WCD938X specific volume control settings + +BootSequence [ + cset "name='RX_RX0 Digital Volume' 80" + cset "name='RX_RX1 Digital Volume' 80" + cset "name='ADC2 Volume' 12" +] + +LibraryConfig.remap.Config { + + ctl.default.map { + # Merge two mono controls into one stereo + "name='HP Digital Volume'" { + "name='RX_RX0 Digital Volume'".vindex.0 0 + "name='RX_RX1 Digital Volume'".vindex.1 0 + } + } +} + From b01cfd27ad6ad34eeebbedc00fba018590d3d0ef Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Tue, 4 Oct 2022 15:37:37 +0100 Subject: [PATCH 3/8] ucm2: codecs: lpass-rx-macro: add codec sequences Add default, enable/disable codec sequence for Qualcomm LPASS TX Macro digital codec Signed-off-by: Srinivas Kandagatla --- .../qcom-lpass/rx-macro/HeadphoneDisableSeq.conf | 11 +++++++++++ .../qcom-lpass/rx-macro/HeadphoneEnableSeq.conf | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 ucm2/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf create mode 100644 ucm2/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf diff --git a/ucm2/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf b/ucm2/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf new file mode 100644 index 00000000..d2a59886 --- /dev/null +++ b/ucm2/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf @@ -0,0 +1,11 @@ +DisableSequence [ + cset "name='RX_MACRO RX0 MUX' ZERO" + cset "name='RX_MACRO RX1 MUX' ZERO" + cset "name='RX INT0_1 MIX1 INP0' ZERO" + cset "name='RX INT1_1 MIX1 INP0' ZERO" + cset "name='RX INT0 DEM MUX' NORMAL_DSM_OUT" + cset "name='RX INT1 DEM MUX' NORMAL_DSM_OUT" + cset "name='RX_COMP1 Switch' 0" + cset "name='RX_COMP2 Switch' 0" + cset "name='RX HPH Mode' CLS_H_INVALID" +] diff --git a/ucm2/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf b/ucm2/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf new file mode 100644 index 00000000..0162b6cb --- /dev/null +++ b/ucm2/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf @@ -0,0 +1,12 @@ +EnableSequence [ + cset "name='RX_HPH PWR Mode' LOHIFI" + cset "name='RX HPH Mode' CLS_H_ULP" + cset "name='RX_MACRO RX0 MUX' AIF1_PB" + cset "name='RX_MACRO RX1 MUX' AIF1_PB" + cset "name='RX INT0_1 MIX1 INP0' RX0" + cset "name='RX INT1_1 MIX1 INP0' RX1" + cset "name='RX INT0 DEM MUX' CLSH_DSM_OUT" + cset "name='RX INT1 DEM MUX' CLSH_DSM_OUT" + cset "name='RX_COMP1 Switch' 1" + cset "name='RX_COMP2 Switch' 1" +] From 30eeb330acb1f58e7637c7475f4e8fd1075abd7a Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Tue, 4 Oct 2022 15:38:47 +0100 Subject: [PATCH 4/8] ucm2: codecs: lpass-tx-macro: add codec sequences Add default, enable/disable codec sequence for Qualcomm LPASS TX Macro digital codec Signed-off-by: Srinivas Kandagatla --- .../codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf | 5 +++++ ucm2/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 ucm2/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf create mode 100644 ucm2/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf diff --git a/ucm2/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf new file mode 100644 index 00000000..97b2762c --- /dev/null +++ b/ucm2/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf @@ -0,0 +1,5 @@ +DisableSequence [ + cset "name='TX SMIC MUX0' ZERO" + cset "name='TX_AIF1_CAP Mixer DEC0' 0" + cset "name='TX1 MODE' ADC_INVALID" +] diff --git a/ucm2/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf new file mode 100644 index 00000000..631c6e28 --- /dev/null +++ b/ucm2/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf @@ -0,0 +1,7 @@ +EnableSequence [ + cset "name='TX DEC0 MUX' SWR_MIC" + cset "name='TX SMIC MUX0' ADC1" + cset "name='TX_AIF1_CAP Mixer DEC0' 1" + cset "name='TX1 MODE' ADC_NORMAL" + cset "name='TX_DEC0 Volume' 110" +] From 58bfcddbbcda90ec76ee4efc88fec88d78417a79 Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Thu, 2 Mar 2023 07:36:09 +0000 Subject: [PATCH 5/8] ucm2: codecs: lpass: add codec sequences for va dmic1 Add codec sequences for VA DMIC1 settings. Signed-off-by: Srinivas Kandagatla --- ucm2/codecs/qcom-lpass/va-macro/DMIC1DisableSeq.conf | 5 +++++ ucm2/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 ucm2/codecs/qcom-lpass/va-macro/DMIC1DisableSeq.conf create mode 100644 ucm2/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf diff --git a/ucm2/codecs/qcom-lpass/va-macro/DMIC1DisableSeq.conf b/ucm2/codecs/qcom-lpass/va-macro/DMIC1DisableSeq.conf new file mode 100644 index 00000000..7972a3b4 --- /dev/null +++ b/ucm2/codecs/qcom-lpass/va-macro/DMIC1DisableSeq.conf @@ -0,0 +1,5 @@ +DisableSequence [ + cset "name='VA DMIC MUX1' ZERO" + cset "name='VA_DEC1 Volume' 0" + cset "name='VA_AIF1_CAP Mixer DEC1' 0" +] diff --git a/ucm2/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf b/ucm2/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf new file mode 100644 index 00000000..89783f5c --- /dev/null +++ b/ucm2/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf @@ -0,0 +1,6 @@ +EnableSequence [ + cset "name='VA DEC1 MUX' VA_DMIC" + cset "name='VA DMIC MUX0' DMIC1" + cset "name='VA_AIF1_CAP Mixer DEC1' 1" + cset "name='VA_DEC1 Volume' 100" +] From 839bf12211c181eb7ae5023b8fc07ad26c871773 Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Thu, 2 Mar 2023 07:37:39 +0000 Subject: [PATCH 6/8] ucm2: codecs: lpass: make sure va dec mux is set correctly Make sure VA decimator mux is correctly set while using DMICs by adding explicit mixer control to set it in enable sequence. Signed-off-by: Srinivas Kandagatla --- ucm2/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/ucm2/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf b/ucm2/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf index bd6e8f58..cc589ccd 100644 --- a/ucm2/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf +++ b/ucm2/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf @@ -1,4 +1,5 @@ EnableSequence [ + cset "name='VA DEC0 MUX' VA_DMIC" cset "name='VA DMIC MUX0' DMIC0" cset "name='VA_AIF1_CAP Mixer DEC0' 1" cset "name='VA_DEC0 Volume' 100" From 2cc0c7d455879e368df53bc1bd77790679448414 Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Fri, 2 Dec 2022 11:00:35 +0000 Subject: [PATCH 7/8] ucm2: codecs: lpass: tx: add dmics via tx macro Signed-off-by: Srinivas Kandagatla --- ucm2/codecs/qcom-lpass/tx-macro/DMIC0DisableSeq.conf | 4 ++++ ucm2/codecs/qcom-lpass/tx-macro/DMIC0EnableSeq.conf | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 ucm2/codecs/qcom-lpass/tx-macro/DMIC0DisableSeq.conf create mode 100644 ucm2/codecs/qcom-lpass/tx-macro/DMIC0EnableSeq.conf diff --git a/ucm2/codecs/qcom-lpass/tx-macro/DMIC0DisableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/DMIC0DisableSeq.conf new file mode 100644 index 00000000..e925a43f --- /dev/null +++ b/ucm2/codecs/qcom-lpass/tx-macro/DMIC0DisableSeq.conf @@ -0,0 +1,4 @@ +DisableSequence [ + cset "name='TX DMIC MUX0' ZERO" + cset "name='TX_AIF1_CAP Mixer DEC0' 0" +] diff --git a/ucm2/codecs/qcom-lpass/tx-macro/DMIC0EnableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/DMIC0EnableSeq.conf new file mode 100644 index 00000000..fdaee349 --- /dev/null +++ b/ucm2/codecs/qcom-lpass/tx-macro/DMIC0EnableSeq.conf @@ -0,0 +1,9 @@ +EnableSequence [ + cset "name='TX DEC0 MUX' MSM_DMIC" + cset "name='TX DMIC MUX0' DMIC0" + cset "name='TX DMIC MUX1' DMIC1" + cset "name='TX_AIF1_CAP Mixer DEC0' 1" + cset "name='TX_AIF1_CAP Mixer DEC1' 1" + cset "name='TX_DEC0 Volume' 100" + cset "name='TX_DEC1 Volume' 100" +] From 811c4e7cb2aed9db0f7c7aa2721ef262a35a069e Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Tue, 4 Oct 2022 15:39:18 +0100 Subject: [PATCH 8/8] ucm2: Qualcomm: sc8280xp: add LENOVO Thinkpad X13s support Add support to LENOVO Thinkpad x13s which has 2xwsa883x smart speakers and a headset connector. Signed-off-by: Srinivas Kandagatla --- ucm2/Qualcomm/sc8280xp/HiFi.conf | 84 +++++++++++++++++++++++++ ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf | 10 +++ ucm2/Qualcomm/sc8280xp/sc8280xp.conf | 11 ++++ ucm2/conf.d/sc8280xp/sc8280xp.conf | 1 + 4 files changed, 106 insertions(+) create mode 100644 ucm2/Qualcomm/sc8280xp/HiFi.conf create mode 100644 ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf create mode 100644 ucm2/Qualcomm/sc8280xp/sc8280xp.conf create mode 120000 ucm2/conf.d/sc8280xp/sc8280xp.conf diff --git a/ucm2/Qualcomm/sc8280xp/HiFi.conf b/ucm2/Qualcomm/sc8280xp/HiFi.conf new file mode 100644 index 00000000..9edd6369 --- /dev/null +++ b/ucm2/Qualcomm/sc8280xp/HiFi.conf @@ -0,0 +1,84 @@ +# Use case configuration for LenovoX13s. +# Author: Srinivas Kandagatla + +SectionVerb { + EnableSequence [ + cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1" + cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1" + cset "name='MultiMedia4 Mixer VA_CODEC_DMA_TX_0' 1" + cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1" + ] + + Include.wcde.File "/codecs/wcd938x/DefaultEnableSeq.conf" + Include.wsae.File "/codecs/wsa883x/DefaultEnableSeq.conf" + Include.wcdd.File "/codecs/wcd938x/DefaultDisableSeq.conf" + + Value { + TQ "HiFi" + } +} + +SectionDevice."Speaker" { + Comment "Speaker playback" + + Include.wcdspke.File "/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf" + Include.wcdspkd.File "/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf" + Include.wsaspke.File "/codecs/wsa883x/SpeakerEnableSeq.conf" + Include.wsaspkd.File "/codecs/wsa883x/SpeakerDisableSeq.conf" + + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},5" + PlaybackMixer "default:${CardId}" + } +} + +SectionDevice."Headphones" { + Comment "Headphones playback" + + Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf" + Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf" + Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf" + Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf" + + Value { + PlaybackPriority 200 + PlaybackPCM "hw:${CardId},4" + PlaybackMixer "default:${CardId}" + PlaybackMixerElem "HP Digital" + JackControl "Headphone Jack" + JackHWMute "Speaker" + } +} + +SectionDevice."Mic" { + Comment "Mic" + + Include.wcdmice.File "/codecs/wcd938x/HeadphoneMicEnableSeq.conf" + Include.wcdmicd.File "/codecs/wcd938x/HeadphoneMicDisableSeq.conf" + Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf" + Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf" + + Value { + CapturePriority 100 + CapturePCM "hw:${CardId},6" + CaptureMixerElem "ADC2" + JackControl "Mic Jack" + JackHWMute "DMic01" + } +} + +SectionDevice."DMic01" { + Comment "DMic01" + + Include.vadm0e.File "/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf" + Include.vadm0d.File "/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf" + Include.vadm1e.File "/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf" + Include.vadm1d.File "/codecs/qcom-lpass/va-macro/DMIC1DisableSeq.conf" + + + Value { + CapturePriority 100 + CapturePCM "hw:${CardId},7" + } +} diff --git a/ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf b/ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf new file mode 100644 index 00000000..6df65f9a --- /dev/null +++ b/ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf @@ -0,0 +1,10 @@ +Syntax 4 + +SectionUseCase."HiFi" { + File "/Qualcomm/sc8280xp/HiFi.conf" + Comment "HiFi quality Music." +} + +Include.card-init.File "/lib/card-init.conf" +Include.ctl-remap.File "/lib/ctl-remap.conf" +Include.codec-init.File "/codecs/wcd938x/init.conf" diff --git a/ucm2/Qualcomm/sc8280xp/sc8280xp.conf b/ucm2/Qualcomm/sc8280xp/sc8280xp.conf new file mode 100644 index 00000000..f113ce97 --- /dev/null +++ b/ucm2/Qualcomm/sc8280xp/sc8280xp.conf @@ -0,0 +1,11 @@ +Syntax 4 + +If.LENOVOX13s { + Condition { + Type RegexMatch + String "${sys:devices/virtual/dmi/id/board_vendor}-${sys:devices/virtual/dmi/id/product_family}" + Regex "LENOVO.*ThinkPad X13s.*" + } + True.Include.x13s.File "/Qualcomm/sc8280xp/LENOVO-X13s.conf" + False.Error "SC8280XP - ${sys:devices/virtual/dmi/id/board_vendor}-${sys:devices/virtual/dmi/id/product_family} model not supported" +} diff --git a/ucm2/conf.d/sc8280xp/sc8280xp.conf b/ucm2/conf.d/sc8280xp/sc8280xp.conf new file mode 120000 index 00000000..aab068de --- /dev/null +++ b/ucm2/conf.d/sc8280xp/sc8280xp.conf @@ -0,0 +1 @@ +../../Qualcomm/sc8280xp/sc8280xp.conf \ No newline at end of file