From 4a839cb4df3ad68aaee7b3cdbee93c4067e33a91 Mon Sep 17 00:00:00 2001 From: Omkar Chandorkar Date: Sat, 9 Sep 2023 15:55:03 +0900 Subject: [PATCH] sm6150-common: Introduce Dolby Atmos support Change-Id: I46b62d08ad51c321c997792301524fc0c18d6ba6 Co-authored-by: Sugakesshaa Signed-off-by: Omkar Chandorkar Signed-off-by: therealmharc --- configs/audio/audio_effects_dolby.xml | 125 ++++++++++++++++++++++++++ sm6150.mk | 9 +- 2 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 configs/audio/audio_effects_dolby.xml diff --git a/configs/audio/audio_effects_dolby.xml b/configs/audio/audio_effects_dolby.xml new file mode 100644 index 0000000..ca7e544 --- /dev/null +++ b/configs/audio/audio_effects_dolby.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sm6150.mk b/sm6150.mk index c91b07b..8d820f5 100644 --- a/sm6150.mk +++ b/sm6150.mk @@ -63,8 +63,15 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ libaudio-resampler +ifeq ($(TARGET_USES_DOLBY),true) +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/audio/audio_effects_dolby.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml +else +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml +endif + PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ $(LOCAL_PATH)/configs/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \ $(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ $(LOCAL_PATH)/configs/audio/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt