diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 079ef9e..9b846b6 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -48,9 +48,60 @@ BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl"
DEXPREOPT_GENERATE_APEX_IMAGE := true
# Audio
+AUDIO_FEATURE_ENABLED_3D_AUDIO := true
+AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true
+AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
+AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
+AUDIO_FEATURE_ENABLED_AHAL_EXT := false
+AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
+AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
+AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
-AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
+AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
+AUDIO_FEATURE_ENABLED_COMPRESS_INPUT := true
+AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
+AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
+AUDIO_FEATURE_ENABLED_DEV_ARBI := false
+AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
+AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
+AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
+AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := false
+AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
+AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
+AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
+AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
+AUDIO_FEATURE_ENABLED_FFV := false
+AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
+AUDIO_FEATURE_ENABLED_FLUENCE := true
+AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
+AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
+AUDIO_FEATURE_ENABLED_HDMI_EDID := true
+AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
+AUDIO_FEATURE_ENABLED_HDMI_SPK := true
+AUDIO_FEATURE_ENABLED_HFP := true
+AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true
+AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
+AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
+AUDIO_FEATURE_ENABLED_KEEP_ALIVE_ARM_FFV := false
+AUDIO_FEATURE_ENABLED_KEEP_ALIVE := false
+AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
+AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
+AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
+AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
+AUDIO_FEATURE_ENABLED_RAS := true
+AUDIO_FEATURE_ENABLED_SND_MONITOR := true
+AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
+AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
+AUDIO_FEATURE_ENABLED_SSR := true
+AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
+AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
+AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
+AUDIO_FEATURE_ENABLED_VOICE_PRINT := false
+AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
+AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
+BOARD_SUPPORTS_SOUND_TRIGGER := true
+BOARD_USES_ALSA_AUDIO := true
USE_XML_AUDIO_POLICY_CONF := 1
# AVB
@@ -132,6 +183,8 @@ TARGET_COPY_OUT_VENDOR := vendor
TARGET_USES_MKE2FS := true
# Properties
+TARGET_ODM_PROP += $(COMMON_PATH)/odm.prop
+TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop
TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop
# QCOM
diff --git a/audio/configs/audio_platform_info.xml b/audio/configs/audio_platform_info.xml
index 0dcc1a4..4386aa7 100644
--- a/audio/configs/audio_platform_info.xml
+++ b/audio/configs/audio_platform_info.xml
@@ -112,6 +112,8 @@
+
+
@@ -125,6 +127,7 @@
+
@@ -203,6 +206,7 @@
+
@@ -444,6 +448,7 @@
+
diff --git a/audio/configs/audio_policy_configuration.xml b/audio/configs/audio_policy_configuration.xml
index c1964e4..43e8f13 100644
--- a/audio/configs/audio_policy_configuration.xml
+++ b/audio/configs/audio_policy_configuration.xml
@@ -67,7 +67,7 @@
-
@@ -163,6 +163,14 @@
samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
+
+
+
+
+
+
@@ -200,6 +208,10 @@
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_IN_VOICE_UPLINK,AUDIO_CHANNEL_IN_VOICE_DNLINK"/>
+
+
+
+
@@ -218,11 +230,16 @@
sources="primary-out,deep_buffer,fast"/>
+
+
+ sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,Bt Sco Headset Mic,Aux Device In,USB Device In,USB Headset In,Voice Call Mic,FM Mic"/>
+ sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Device In,USB Headset In"/>
+
@@ -230,7 +247,24 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/audio/configs/mixer_paths.xml b/audio/configs/mixer_paths.xml
index c7b2174..cd65775 100644
--- a/audio/configs/mixer_paths.xml
+++ b/audio/configs/mixer_paths.xml
@@ -493,6 +493,10 @@
+
+
+
+
@@ -506,6 +510,10 @@
+
+
+
+
@@ -527,6 +535,14 @@
+
+
+
+
+
+
+
+
@@ -675,6 +691,14 @@
+
+
+
+
+
+
+
+
@@ -1720,6 +1744,11 @@
+
+
+
+
+
@@ -2033,9 +2062,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2071,6 +2120,11 @@
+
+
+
+
+
@@ -2215,6 +2269,10 @@
+
+
+
+
@@ -2239,6 +2297,10 @@
+
+
+
+
@@ -2405,6 +2467,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2420,6 +2498,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2431,6 +2521,10 @@
+
+
+
+
@@ -2853,6 +2947,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -3004,6 +3145,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/extract-files.sh b/extract-files.sh
index c0bed0b..87ce1f5 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -32,9 +32,6 @@ source "${HELPER}"
function blob_fixup() {
case "${1}" in
- vendor/lib/hw/audio.primary.sdm710.so)
- patchelf --replace-needed "libcutils.so" "libprocessgroup.so" "${2}"
- ;;
vendor/lib/hw/vulkan.sdm710.so)
sed -i "s/vulkan.sdm845.so/vulkan.sdm710.so/g" "${2}"
;;
diff --git a/gts4lv.mk b/gts4lv.mk
index c7cafc1..7b366c4 100644
--- a/gts4lv.mk
+++ b/gts4lv.mk
@@ -62,10 +62,16 @@ PRODUCT_PACKAGES += \
audio.r_submix.default \
audio.usb.default \
cplay \
+ liba2dpoffload \
libaudioroute \
+ libcirrusspkrprot \
+ libhdmiedid \
+ libhfp \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing \
+ libsndmonitor \
+ libspkrprot \
libvolumelistener
PRODUCT_COPY_FILES += \
@@ -82,8 +88,7 @@ PRODUCT_COPY_FILES += \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
- frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
- frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
+ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml
# Camera
PRODUCT_PACKAGES += \
diff --git a/odm.prop b/odm.prop
new file mode 100644
index 0000000..fab6c31
--- /dev/null
+++ b/odm.prop
@@ -0,0 +1,2 @@
+# Audio
+ro.vendor.qti.va_odm.support=1
diff --git a/proprietary-files.txt b/proprietary-files.txt
index 8ab9d5c..9db6987 100644
--- a/proprietary-files.txt
+++ b/proprietary-files.txt
@@ -26,15 +26,7 @@ vendor/lib/libadm.so
vendor/lib/libaudcal.so
vendor/lib/libaudioalsa.so
vendor/lib/libqtigef.so
-vendor/lib/librecordalive.so
-vendor/lib/libSamsungPostProcessConvertor.so
-vendor/lib/lib_SamsungRec_07001.so
-vendor/lib/libsamsungVoipResampler.so
-vendor/lib/libsecaudioinfo.so
vendor/lib/libsurround_3mic_proc.so
-vendor/lib/libtinycompress_vendor.so
-vendor/lib/lib_soundaliveresampler.so
-vendor/lib/lib_SoundAlive_SRC384_ver320.so
vendor/lib64/libacdb-fts.so
vendor/lib64/libacdbloader.so
vendor/lib64/libacdbrtac.so
@@ -81,9 +73,6 @@ vendor/lib64/soundfx/libqcreverb.so
vendor/lib64/soundfx/libqcvirt.so
vendor/lib64/soundfx/libshoebox.so
-# Audio - HALs
-vendor/lib/hw/audio.primary.sdm710.so
-
# Audio - Speaker Firmware
vendor/firmware/cs35l41-dsp1-spk-prot.bin
vendor/firmware/cs35l41-dsp1-spk-prot-calib.bin
diff --git a/system.prop b/system.prop
new file mode 100644
index 0000000..51a8090
--- /dev/null
+++ b/system.prop
@@ -0,0 +1,2 @@
+# Audio
+ro.vendor.qti.va_aosp.support=1
diff --git a/vendor.prop b/vendor.prop
index 8791573..7ee9392 100644
--- a/vendor.prop
+++ b/vendor.prop
@@ -20,6 +20,48 @@ ro.vendor.audio.sdk.ssr=false
vendor.audio.apptype.multirec.enabled=false
vendor.audio.dolby.ds2.enabled=false
vendor.audio.dolby.ds2.hardbypass=false
+vendor.audio.feature.a2dp_offload.enable=true
+vendor.audio.feature.afe_proxy.enable=true
+vendor.audio.feature.anc_headset.enable=true
+vendor.audio.feature.audiozoom.enable=false
+vendor.audio.feature.battery_listener.enable=false
+vendor.audio.feature.compr_cap.enable=false
+vendor.audio.feature.compr_voip.enable=false
+vendor.audio.feature.compress_in.enable=false
+vendor.audio.feature.compress_meta_data.enable=true
+vendor.audio.feature.concurrent_capture.enable=false
+vendor.audio.feature.custom_stereo.enable=true
+vendor.audio.feature.deepbuffer_as_primary.enable=false
+vendor.audio.feature.display_port.enable=true
+vendor.audio.feature.dsm_feedback.enable=false
+vendor.audio.feature.dynamic_ecns.enable=false
+vendor.audio.feature.ext_hw_plugin.enable=false
+vendor.audio.feature.external_dsp.enable=false
+vendor.audio.feature.external_speaker.enable=false
+vendor.audio.feature.external_speaker_tfa.enable=false
+vendor.audio.feature.fluence.enable=true
+vendor.audio.feature.fm.enable=true
+vendor.audio.feature.hdmi_edid.enable=true
+vendor.audio.feature.hdmi_passthrough.enable=true
+vendor.audio.feature.hfp.enable=true
+vendor.audio.feature.hifi_audio.enable=true
+vendor.audio.feature.hwdep_cal.enable=false
+vendor.audio.feature.incall_music.enable=false
+vendor.audio.feature.keep_alive.enable=false
+vendor.audio.feature.kpi_optimize.enable=true
+vendor.audio.feature.maxx_audio.enable=false
+vendor.audio.feature.multi_voice_session.enable=true
+vendor.audio.feature.ras.enable=true
+vendor.audio.feature.record_play_concurency.enable=false
+vendor.audio.feature.snd_mon.enable=true
+vendor.audio.feature.spkr_prot.enable=true
+vendor.audio.feature.src_trkn.enable=true
+vendor.audio.feature.ssrec.enable=true
+vendor.audio.feature.usb_offload.enable=true
+vendor.audio.feature.usb_offload_burst_mode.enable=false
+vendor.audio.feature.usb_offload_sidetone_volume.enable=false
+vendor.audio.feature.vbat.enable=true
+vendor.audio.feature.wsa.enable=false
vendor.audio.flac.sw.decoder.24bit=true
vendor.audio.hw.aac.encoder=true
vendor.audio.noisy.broadcast.delay=600