zeus: Decommonize audio HAL

Change-Id: I4b4897c034aacfd7f73c04b9df493f3d5aa9b33c
This commit is contained in:
Arian 2024-01-30 21:53:50 +01:00
parent b693da8be6
commit 0a301e41c3
4 changed files with 79 additions and 1677 deletions

View file

@ -1,295 +0,0 @@
<?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,11 +10,6 @@ $(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 \

View file

@ -9,6 +9,19 @@ vendor/lib/rfsa/adsp/capi_elus_rx.so
vendor/lib/rfsa/adsp/capi_elus_tx.so
vendor/lib/rfsa/adsp/misound_res_spk.bin
# Audio configs
vendor/etc/audio/sku_taro/mixer_paths_overlay_dynamic.xml
vendor/etc/audio/sku_taro/mixer_paths_overlay_static.xml
vendor/etc/audio/sku_taro/mixer_paths_waipio_mtp.xml
vendor/etc/audio/sku_taro/resourcemanager_waipio_mtp.xml
vendor/etc/audio_cloud_control_white_list.xml
vendor/etc/backend_conf.xml
vendor/etc/card-defs.xml
vendor/etc/media_codecs_c2_audio.xml
vendor/etc/media_codecs_vendor_audio.xml
vendor/etc/microphone_characteristics.xml
vendor/etc/usecaseKvManager.xml
# Audio firmware
vendor/firmware/BH-cs35l41-dsp1-spk-cali.bin
vendor/firmware/BH-cs35l41-dsp1-spk-prot.bin
@ -54,6 +67,72 @@ vendor/lib64/libagmmixer.so
-vendor/lib64/vendor.qti.hardware.AGMIPC@1.0-impl.so
vendor/lib64/vendor.qti.hardware.AGMIPC@1.0.so
# Audio libraries
vendor/etc/models/acd/event.eai
vendor/etc/models/acd/music.eai
vendor/etc/models/acd/speech.eai
vendor/lib/hw/audio.primary.taro.so
vendor/lib/hw/gyro_fusion_interface.so
vendor/lib/libadm.so
vendor/lib/libadsprpc.so
vendor/lib/libar-acdb.so
vendor/lib/libar-gpr.so
vendor/lib/libar-gsl.so
-vendor/lib/libar-pal.so
vendor/lib/libats.so
vendor/lib/libaudio_log_utils.so
vendor/lib/libaudiocloudctrl.so
vendor/lib/libaudioroute_ext.so
vendor/lib/libbatterylistener.so
vendor/lib/libcapiv2svacnnvendor.so
vendor/lib/libcapiv2svarnnvendor.so
vendor/lib/libcapiv2uvvendor.so
vendor/lib/libdapparamstorage.so
vendor/lib/libfmpal.so
vendor/lib/libkaraokepal.so
vendor/lib/liblx-ar_util.so
vendor/lib/liblx-osal.so
vendor/lib/libmcs.so
vendor/lib/libpal_net_if.so
vendor/lib/libpalclient.so
vendor/lib/libqtigefar.so
vendor/lib/libresampler.so
vendor/lib/libsndcardparser.so
vendor/lib/libxlog.so
vendor/lib/vendor.qti.hardware.pal@1.0-impl.so
vendor/lib/vendor.qti.hardware.pal@1.0.so
vendor/lib64/hw/audio.primary.taro.so
vendor/lib64/hw/gyro_fusion_interface.so
vendor/lib64/libadm.so
vendor/lib64/libadsprpc.so
vendor/lib64/libar-acdb.so
vendor/lib64/libar-gpr.so
vendor/lib64/libar-gsl.so
-vendor/lib64/libar-pal.so
vendor/lib64/libats.so
vendor/lib64/libaudio_log_utils.so
vendor/lib64/libaudiocloudctrl.so
vendor/lib64/libaudioroute_ext.so
vendor/lib64/libbatterylistener.so
vendor/lib64/libcapiv2svacnnvendor.so
vendor/lib64/libcapiv2svarnnvendor.so
vendor/lib64/libcapiv2uvvendor.so
vendor/lib64/libcrussp.so
vendor/lib64/libdapparamstorage.so
vendor/lib64/libfmpal.so
vendor/lib64/libkaraokepal.so
vendor/lib64/liblx-ar_util.so
vendor/lib64/liblx-osal.so
vendor/lib64/libmcs.so
vendor/lib64/libpal_net_if.so
vendor/lib64/libpalclient.so
vendor/lib64/libqtigefar.so
vendor/lib64/libresampler.so
vendor/lib64/libsndcardparser.so
vendor/lib64/libxlog.so
vendor/lib64/vendor.qti.hardware.pal@1.0-impl.so
vendor/lib64/vendor.qti.hardware.pal@1.0.so
# Batterysecret
vendor/bin/batterysecret
vendor/etc/init/hw/init.batterysecret.rc