zeus: Import audio configs from V14.0.7.0.TLBMIXM

Change-Id: I32c54ebd2f55ed06bc49da567d6654f056909f50
This commit is contained in:
Arian 2023-06-25 14:43:55 +02:00
parent 825e57ba45
commit d1c024a9df
3 changed files with 1677 additions and 0 deletions

View file

@ -0,0 +1,295 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Be careful to write the static overlay xml -->
<!-- 1. do not create the new path name here, the new path name should -->
<!-- be created in common mixer path xml -->
<!-- 2. the new path name should not contain the nested path, and should be -->
<!-- defined follow after default ctrl -->
<!-- 3. the default ctl here will override that in common mixer path xml -->
<!-- 4. the first level path will replace the path in common mixer path xml -->
<!-- 5. the max nested path can't exceed 10 -->
<mixer>
<ctl name="HPHL Volume" value="18" />
<ctl name="HPHR Volume" value="18" />
<ctl name="TX_DEC0 Volume" value="84" />
<ctl name="TX_DEC1 Volume" value="84" />
<ctl name="TX_DEC2 Volume" value="84" />
<ctl name="TX_DEC3 Volume" value="84" />
<ctl name="TX_DEC4 Volume" value="84" />
<ctl name="ADC1 Volume" value="6" />
<ctl name="ADC2 Volume" value="6" />
<ctl name="ADC3 Volume" value="6" />
<ctl name="ADC4 Volume" value="6" />
<!-- add new cirrus CS35L41 controls -->
<ctl name="TH DSP1 Firmware" value="Protection" />
<ctl name="TH DSP1 Preload Switch" value="1" />
<ctl name="TH DRE DRE Switch" value="0" />
<ctl name="TH PCM Source" value="None" />
<ctl name="TH ASPTX Ref" value="None" />
<ctl name="TH PCM Soft Ramp" value="4ms" />
<ctl name="TH AMP PCM Gain" value="18" />
<ctl name="TH ASP TX1 Source" value="DSPTX1" />
<ctl name="TH ASP TX2 Source" value="Zero" />
<ctl name="TH ASP TX3 Source" value="Zero" />
<ctl name="TH ASP TX4 Source" value="Zero" />
<ctl name="TH ASPRX1 Slot Position" value="0" />
<ctl name="TH ASPRX2 Slot Position" value="4" />
<ctl name="TH ASPTX1 Slot Position" value="1" />
<ctl name="TH DSP RX1 Source" value="ASPRX1" />
<ctl name="TH DSP RX2 Source" value="ASPRX1" />
<ctl name="TH Boost Class-H Tracking Enable" value="1" />
<ctl name="TH Boost Target Voltage" value="0" />
<ctl name="TH Fast Use Case Switch Enable" value="1"/>
<ctl name="TH Digital PCM Volume" value="817"/>
<ctl name="TH Noise Gate" value="51" />
<ctl name="TH Fast Use Case Delta File" value="TH-music.txt" />
<ctl name="TH AMP Enable Switch" value="0" />
<ctl name="TL DSP1 Firmware" value="Protection" />
<ctl name="TL DSP1 Preload Switch" value="1" />
<ctl name="TL DRE DRE Switch" value="0" />
<ctl name="TL PCM Source" value="None" />
<ctl name="TL ASPTX Ref" value="None" />
<ctl name="TL PCM Soft Ramp" value="4ms" />
<ctl name="TL AMP PCM Gain" value="18" />
<ctl name="TL ASP TX1 Source" value="DSPTX1" />
<ctl name="TL ASP TX2 Source" value="Zero" />
<ctl name="TL ASP TX3 Source" value="Zero" />
<ctl name="TL ASP TX4 Source" value="Zero" />
<ctl name="TL ASPRX1 Slot Position" value="0" />
<ctl name="TL ASPRX2 Slot Position" value="2" />
<ctl name="TL ASPTX1 Slot Position" value="0" />
<ctl name="TL ASPTX2 Slot Position" value="0" />
<ctl name="TL ASPTX3 Slot Position" value="0" />
<ctl name="TL ASPTX4 Slot Position" value="0" />
<ctl name="TL DSP RX1 Source" value="ASPRX1" />
<ctl name="TL DSP RX2 Source" value="ASPRX2" />
<ctl name="TL Boost Class-H Tracking Enable" value="1" />
<ctl name="TL Boost Target Voltage" value="0" />
<ctl name="TL Fast Use Case Switch Enable" value="1"/>
<ctl name="TL Digital PCM Volume" value="817"/>
<ctl name="TL Noise Gate" value="51" />
<ctl name="TL Fast Use Case Delta File" value="TL-music.txt" />
<ctl name="TL AMP Enable Switch" value="0" />
<ctl name="BH DSP1 Firmware" value="Protection" />
<ctl name="BH DSP1 Preload Switch" value="1" />
<ctl name="BH DRE DRE Switch" value="0" />
<ctl name="BH PCM Source" value="None" />
<ctl name="BH ASPTX Ref" value="None" />
<ctl name="BH PCM Soft Ramp" value="4ms" />
<ctl name="BH AMP PCM Gain" value="18" />
<ctl name="BH ASP TX1 Source" value="DSPTX1" />
<ctl name="BH ASP TX2 Source" value="Zero" />
<ctl name="BH ASP TX3 Source" value="Zero" />
<ctl name="BH ASP TX4 Source" value="Zero" />
<ctl name="BH ASPRX1 Slot Position" value="1" />
<ctl name="BH ASPRX2 Slot Position" value="4" />
<ctl name="BH ASPTX1 Slot Position" value="3" />
<ctl name="BH DSP RX1 Source" value="ASPRX1" />
<ctl name="BH DSP RX2 Source" value="ASPRX1" />
<ctl name="BH Boost Class-H Tracking Enable" value="1" />
<ctl name="BH Boost Target Voltage" value="0" />
<ctl name="BH Fast Use Case Switch Enable" value="1"/>
<ctl name="BH Digital PCM Volume" value="817"/>>
<ctl name="BH Noise Gate" value="51" />
<ctl name="BH Fast Use Case Delta File" value="BH-music.txt" />
<ctl name="BH AMP Enable Switch" value="0" />
<ctl name="BL DSP1 Firmware" value="Protection" />
<ctl name="BL DSP1 Preload Switch" value="1" />
<ctl name="BL DRE DRE Switch" value="0" />
<ctl name="BL PCM Source" value="None" />
<ctl name="BL ASPTX Ref" value="None" />
<ctl name="BL PCM Soft Ramp" value="4ms" />
<ctl name="BL AMP PCM Gain" value="18" />
<ctl name="BL ASP TX1 Source" value="DSPTX1" />
<ctl name="BL ASP TX2 Source" value="Zero" />
<ctl name="BL ASP TX3 Source" value="Zero" />
<ctl name="BL ASP TX4 Source" value="Zero" />
<ctl name="BL ASPRX1 Slot Position" value="1" />
<ctl name="BL ASPRX2 Slot Position" value="4" />
<ctl name="BL ASPTX1 Slot Position" value="2" />
<ctl name="BL DSP RX1 Source" value="ASPRX1" />
<ctl name="BL DSP RX2 Source" value="ASPRX1" />
<ctl name="BL Boost Class-H Tracking Enable" value="1" />
<ctl name="BL Boost Target Voltage" value="0" />
<ctl name="BL Fast Use Case Switch Enable" value="1"/>
<ctl name="BL Digital PCM Volume" value="817"/>
<ctl name="BL Noise Gate" value="51" />
<ctl name="BL Fast Use Case Delta File" value="BL-music.txt" />
<ctl name="BL AMP Enable Switch" value="0" />
<ctl name="TL Spksw Gpio Swtich" value="0"/>
<!-- cirrus CS35L41 controls end -->>
<path name="speaker">
<ctl name="TH PCM Source" value="DSP" />
<ctl name="TH ASPTX Ref" value="Ref" />
<ctl name="TH AMP Enable Switch" value="1" />
<ctl name="TL PCM Source" value="DSP" />
<ctl name="TL ASPTX Ref" value="Ref" />
<ctl name="TL AMP Enable Switch" value="1" />
<ctl name="BH PCM Source" value="DSP" />
<ctl name="BH ASPTX Ref" value="Ref" />
<ctl name="BH AMP Enable Switch" value="1" />
<ctl name="BL PCM Source" value="DSP" />
<ctl name="BL ASPTX Ref" value="Ref" />
<ctl name="BL AMP Enable Switch" value="1" />
<ctl name="TH Noise Gate" value="16245" />
<ctl name="TL Noise Gate" value="16245" />
<ctl name="BH Noise Gate" value="16245" />
<ctl name="BL Noise Gate" value="16245" />
</path>
<path name="speaker-mono">
<ctl name="TH PCM Source" value="DSP" />
<ctl name="TH ASPTX Ref" value="Ref" />
<ctl name="TH AMP Enable Switch" value="1" />
<ctl name="TL PCM Source" value="DSP" />
<ctl name="TL ASPTX Ref" value="Ref" />
<ctl name="TL AMP Enable Switch" value="1" />
</path>
<path name="speaker-mono-2">
<ctl name="TH PCM Source" value="DSP" />
<ctl name="TH ASPTX Ref" value="Ref" />
<ctl name="TH AMP Enable Switch" value="1" />
<ctl name="TL PCM Source" value="DSP" />
<ctl name="TL ASPTX Ref" value="Ref" />
<ctl name="TL AMP Enable Switch" value="1" />
<ctl name="BH PCM Source" value="DSP" />
<ctl name="BH ASPTX Ref" value="Ref" />
<ctl name="BH AMP Enable Switch" value="1" />
<ctl name="BL PCM Source" value="DSP" />
<ctl name="BL ASPTX Ref" value="Ref" />
<ctl name="BL AMP Enable Switch" value="1" />
<ctl name="TH Fast Use Case Delta File" value="TH-handfree.txt" />
<ctl name="TL Fast Use Case Delta File" value="TL-handfree.txt" />
<ctl name="BH Fast Use Case Delta File" value="BH-handfree.txt" />
<ctl name="BL Fast Use Case Delta File" value="BL-handfree.txt" />
</path>
<path name="speaker-mono-vbat">
<path name="speaker-mono" />
</path>
<path name="speaker-mono-2-vbat">
<path name="speaker-mono-2" />
</path>
<path name="speaker-vbat">
<path name="speaker" />
</path>
<path name="speaker-mic">
<path name="amic5" />
</path>
<path name="speaker-mic-liquid">
<path name="amic5" />
</path>
<path name="speaker-protected">
<path name="speaker" />
</path>
<path name="voice-speaker-protected">
<path name="speaker-mono" />
</path>
<path name="voice-speaker-2-protected">
<path name="speaker-mono-2" />
</path>
<path name="speaker-protected-vbat">
<path name="speaker-protected" />
</path>
<path name="voice-speaker-protected-vbat">
<path name="voice-speaker-protected" />
</path>
<path name="voice-speaker-2-protected-vbat">
<path name="voice-speaker-2-protected" />
</path>
<path name="handset">
<ctl name="TL PCM Source" value="DSP" />
<ctl name="TL ASPTX Ref" value="Ref" />
<ctl name="TL AMP PCM Gain" value="5" />
<ctl name="TL AMP Enable Switch" value="1" />
<ctl name="TL Fast Use Case Delta File" value="TL-handset.txt" />
</path>
<path name="handset-mic">
<path name="amic1" />
</path>
<path name="handset-dmic-endfire">
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
<ctl name="TX SMIC MUX1" value="SWR_MIC4" />
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
<ctl name="ADC1 ChMap" value="SWRM_TX2_CH1" />
<ctl name="TX0 MODE" value="ADC_LP" />
<ctl name="ADC1_MIXER Switch" value="1" />
<ctl name="AMIC1_MIXER Switch" value="1" />
<ctl name="TX DEC3 MUX" value="SWR_MIC" />
<ctl name="TX SMIC MUX3" value="SWR_MIC9" />
<ctl name="TX_AIF1_CAP Mixer DEC3" value="1" />
<ctl name="ADC4 MUX" value="INP5" />
<ctl name="ADC4 ChMap" value="SWRM_TX3_CH2" />
<ctl name="TX3 MODE" value="ADC_LP" />
<ctl name="ADC4_MIXER Switch" value="1" />
<ctl name="AMIC5_MIXER Switch" value="1" />
<ctl name="ADC1 Volume" value="8" />
<ctl name="ADC4 Volume" value="8" />
</path>
<path name="speaker-dmic-endfire">
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
<ctl name="TX SMIC MUX1" value="SWR_MIC4" />
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
<ctl name="ADC1 ChMap" value="SWRM_TX2_CH1" />
<ctl name="TX0 MODE" value="ADC_LP" />
<ctl name="ADC1_MIXER Switch" value="1" />
<ctl name="AMIC1_MIXER Switch" value="1" />
<ctl name="TX DEC3 MUX" value="SWR_MIC" />
<ctl name="TX SMIC MUX3" value="SWR_MIC9" />
<ctl name="TX_AIF1_CAP Mixer DEC3" value="1" />
<ctl name="ADC4 MUX" value="INP5" />
<ctl name="ADC4 ChMap" value="SWRM_TX3_CH2" />
<ctl name="TX3 MODE" value="ADC_LP" />
<ctl name="ADC4_MIXER Switch" value="1" />
<ctl name="AMIC5_MIXER Switch" value="1" />
<ctl name="ADC1 Volume" value="6" />
<ctl name="ADC4 Volume" value="6" />
</path>
<path name="handset-stereo-dmic-ef">
<path name="handset-dmic-dual-adc" />
</path>
<!--ultrasound begin-->
<path name="ultrasound-handset">
<ctl name="TL PCM Source" value="DSP" />
<ctl name="TL ASPTX Ref" value="Ref" />
<ctl name="TL AMP Enable Switch" value="1" />
<ctl name="TL AMP PCM Gain" value="5" />
</path>
<path name="ultrasound-mic">
<ctl name="TX DEC4 MUX" value="SWR_MIC" />
<ctl name="TX_DEC4 Volume" value="84" />
<ctl name="TX SMIC MUX4" value="SWR_MIC8" />
<ctl name="TX_AIF2_CAP Mixer DEC4" value="1" />
<ctl name="ADC3 Volume" value="12" />
<ctl name="ADC3 ChMap" value="SWRM_TX3_CH1" />
<ctl name="TX2 MODE" value="ADC_LP" />
<ctl name="HDR34 MUX" value="HDR34" />
<ctl name="ADC3_MIXER Switch" value="1" />
<ctl name="AMIC5_MIXER Switch" value="1" />
</path>
<!--ultrasound end-->
</mixer>

File diff suppressed because it is too large Load diff

View file

@ -10,6 +10,11 @@ $(call inherit-product, device/xiaomi/sm8450-common/common.mk)
# Inherit from the proprietary version
$(call inherit-product, vendor/xiaomi/zeus/zeus-vendor.mk)
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/mixer_paths_overlay_static.xml \
$(LOCAL_PATH)/audio/resourcemanager_waipio_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/resourcemanager_waipio_mtp.xml
# Overlay
PRODUCT_PACKAGES += \
ApertureResZeus \