From 90c9b9d34d8c76312c9ec23711581b6e558f0d52 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Mon, 9 May 2022 15:44:59 +0200 Subject: [PATCH] sm7125: configuration for spatial audio Update audio configuration to enable spatial audio: - build with spatial audio feature enabled and rondo library - list spatializer effect in audio effect configuration file - update audio policy configuration files to declare spatializer output - declare immersive end point in audio platform configuration Bug: 237677573 Test: spatial audio playback Change-Id: Ic9c32d813a19ba2789425e12ee9016d53ab30678 Signed-off-by: Pulkit077 --- audio/configs/audio_effects.xml | 4 +- audio/configs/audio_policy_configuration.xml | 10 +++-- .../bluetooth_audio_policy_configuration.xml | 44 +++++++++++++++++++ common.mk | 2 +- proprietary-files.txt | 3 ++ vendor.prop | 1 + 6 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 audio/configs/bluetooth_audio_policy_configuration.xml diff --git a/audio/configs/audio_effects.xml b/audio/configs/audio_effects.xml index 428fb53..3a90520 100644 --- a/audio/configs/audio_effects.xml +++ b/audio/configs/audio_effects.xml @@ -41,7 +41,7 @@ - + @@ -89,7 +89,7 @@ - + diff --git a/audio/configs/audio_policy_configuration.xml b/audio/configs/audio_policy_configuration.xml index d272825..d5ef723 100644 --- a/audio/configs/audio_policy_configuration.xml +++ b/audio/configs/audio_policy_configuration.xml @@ -112,6 +112,10 @@ + + + @@ -214,9 +218,9 @@ + sources="primary output,deep_buffer,fast,direct_pcm,compressed_offload,mmap_no_irq_out,hifi_playback,immersive_out"/> + sources="primary output,deep_buffer,fast,direct_pcm,compressed_offload,mmap_no_irq_out,hifi_playback,immersive_out"/> - + diff --git a/audio/configs/bluetooth_audio_policy_configuration.xml b/audio/configs/bluetooth_audio_policy_configuration.xml new file mode 100644 index 0000000..73292bc --- /dev/null +++ b/audio/configs/bluetooth_audio_policy_configuration.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/common.mk b/common.mk index da60523..7ca8fcb 100644 --- a/common.mk +++ b/common.mk @@ -97,9 +97,9 @@ PRODUCT_COPY_FILES += \ $(COMMON_PATH)/audio/configs/mixer_usb_gray.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_usb_gray.xml \ $(COMMON_PATH)/audio/configs/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ $(COMMON_PATH)/audio/configs/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \ + $(COMMON_PATH)/audio/configs/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.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 diff --git a/proprietary-files.txt b/proprietary-files.txt index d5cd89e..8d54ebe 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -116,6 +116,9 @@ vendor/lib64/soundfx/libshoebox.so vendor/lib64/soundfx/libqcbassboost.so vendor/lib64/soundfx/libswspatializer.so +# Audio (FX modules) - from cheetah-user 13 TQ2A.230405.003.E1 9802792 release-keys +vendor/lib/soundfx/libspatialaudio.so|379b98b020729d05cad4e84202f42335b96bb755 + # Audio Firmware vendor/firmware/dax_param.bin diff --git a/vendor.prop b/vendor.prop index 4efcefb..063fd9c 100644 --- a/vendor.prop +++ b/vendor.prop @@ -61,6 +61,7 @@ vendor.audio.feature.audiozoom.enable=false vendor.audio.feature.incall_music.enable=true ro.config.media_vol_steps=30 ro.config.vc_call_vol_steps=8 +ro.audio.spatializer_enabled=true # Bluetooth persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac