From 46bd645cd4b506147d4c55c9d9ae01e4c50af48c Mon Sep 17 00:00:00 2001 From: basamaryan Date: Sun, 29 Oct 2023 21:43:27 +0100 Subject: [PATCH] sm6150-common: audio/media: Conditionally bring in changes from sweet V14.0.9.0.TKFMIXM Guarded with TARGET_USES_DOLBY Change-Id: Ie8d215fa37a9258cfec5522360a4c0215c7d37b0 Signed-off-by: donjohanliebert --- configs/audio/audio_effects_dolby.xml | 137 +++++++ ...media_codecs_vendor_sdmmagpie_v1_dolby.xml | 355 ++++++++++++++++++ sm6150.mk | 18 +- 3 files changed, 508 insertions(+), 2 deletions(-) create mode 100644 configs/audio/audio_effects_dolby.xml create mode 100644 configs/media/media_codecs_vendor_sdmmagpie_v1_dolby.xml diff --git a/configs/audio/audio_effects_dolby.xml b/configs/audio/audio_effects_dolby.xml new file mode 100644 index 0000000..64f5eb4 --- /dev/null +++ b/configs/audio/audio_effects_dolby.xml @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_vendor_sdmmagpie_v1_dolby.xml b/configs/media/media_codecs_vendor_sdmmagpie_v1_dolby.xml new file mode 100644 index 0000000..d1404d6 --- /dev/null +++ b/configs/media/media_codecs_vendor_sdmmagpie_v1_dolby.xml @@ -0,0 +1,355 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sm6150.mk b/sm6150.mk index 4eb2bfa..9af459f 100644 --- a/sm6150.mk +++ b/sm6150.mk @@ -62,8 +62,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 @@ -225,10 +232,17 @@ PRODUCT_COPY_FILES += \ hardware/qcom-caf/sm8150/media/conf_files/sm6150/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ hardware/qcom-caf/sm8150/media/conf_files/sm6150/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml +ifeq ($(TARGET_USES_DOLBY),true) +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/media/media_codecs_vendor_sdmmagpie_v1_dolby.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml +else +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/media/media_codecs_vendor_sdmmagpie_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml +endif + PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/media/media_codecs_performance_sdmmagpie_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ $(LOCAL_PATH)/configs/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \ - $(LOCAL_PATH)/configs/media/media_codecs_vendor_sdmmagpie_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ $(LOCAL_PATH)/configs/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml # Network