Audio: Enabled stereo spatialization property for Tegu, added opus codec

enabled spatializer offload, added CAF config files for offloaded
spatializer and updated the audio tables makefile

Bug: 323223919
Bug: 303920722
Bug: 348074352
Test: manual
Flag: com.android.media.audio.stereo_spatialization
Change-Id: Iecfd82a6285ab8e297b19e89f90ef3c018d275cb
This commit is contained in:
Nikhil Bhanu 2024-06-25 14:30:58 -07:00
parent f4969d9bdf
commit e578df9f2c
7 changed files with 16 additions and 6 deletions

View file

@ -31,7 +31,7 @@
<argument name="Curves" value="blackbird,condor=0,46.35,0.1950549451;54.6,57,0.98625" />
</feature>
<!-- <feature name="MicrophoneCompensation" /> -->
<!-- <feature name="spatializer-offload" /> -->
<feature name="spatializer-offload" />
</features>
<voipVolume>

View file

@ -77,3 +77,10 @@ PRODUCT_COPY_FILES += \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tas2572/ti_cal_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/ti_cal_mixer_paths.xml
endif
# Offload spatializer config
PRODUCT_PACKAGES += \
vendor.google.whitechapel.audio.hal.effect.spatializer.base \
vendor.google.whitechapel.audio.hal.effect.spatializer.mode_2_ch \
vendor.google.whitechapel.audio.hal.effect.spatializer.mode_6_ch \
vendor.google.whitechapel.audio.hal.effect.spatializer.mode_xaural

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -119,7 +119,7 @@ PRODUCT_COPY_FILES += \
PRODUCT_PROPERTY_OVERRIDES += \
ro.bluetooth.a2dp_offload.supported=true \
persist.bluetooth.a2dp_offload.disabled=false \
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus
# POF
PRODUCT_PRODUCT_PROPERTIES += \
@ -149,10 +149,13 @@ PRODUCT_PRODUCT_PROPERTIES += \
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# Spatial Audio
PRODUCT_PACKAGES += \
libspatialaudio \
librondo
# declare use of spatial audio
PRODUCT_PROPERTY_OVERRIDES += \
ro.audio.spatializer_enabled=true
# declare use of stereo spatialization
PRODUCT_PROPERTY_OVERRIDES += \
ro.audio.stereo_spatialization_enabled=true
# Sound Dose
PRODUCT_PACKAGES += \