From 7723d44913d58ced2b89411f99e30c70fdb1bdbb Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Tue, 20 Jul 2021 11:36:47 +0200 Subject: [PATCH] sm6250-common: Build audio stack Change-Id: Id1e28604c0c83093e309656a2059c517084984f5 --- BoardConfigCommon.mk | 16 ++++++++++++++++ atoll.mk | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 356bb87..07ac9f8 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -21,6 +21,22 @@ TARGET_2ND_CPU_ABI := armeabi-v7a TARGET_2ND_CPU_ABI2 := armeabi TARGET_2ND_CPU_VARIANT := cortex-a76 +# Audio +AUDIO_FEATURE_ENABLED_AHAL_EXT := false +AUDIO_FEATURE_ENABLED_DLKM := true +AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false +AUDIO_FEATURE_ENABLED_DTS_EAGLE := false +AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := false +AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true +AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true +AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false +AUDIO_FEATURE_ENABLED_INSTANCE_ID := true +AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true +AUDIO_FEATURE_ENABLED_SSR := false +BOARD_SUPPORTS_SOUND_TRIGGER := true +BOARD_USES_ALSA_AUDIO := true +USE_CUSTOM_AUDIO_POLICY := 1 + # Bootloader TARGET_BOOTLOADER_BOARD_NAME := atoll TARGET_NO_BOOTLOADER := true diff --git a/atoll.mk b/atoll.mk index 0b205c2..25d4742 100644 --- a/atoll.mk +++ b/atoll.mk @@ -30,6 +30,44 @@ $(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk) PRODUCT_PACKAGES += \ fs_config_files +# Audio +PRODUCT_PACKAGES += \ + android.hardware.audio@6.0-impl \ + android.hardware.audio.effect@6.0-impl \ + android.hardware.audio.service \ + android.hardware.bluetooth.audio@2.0-impl \ + android.hardware.soundtrigger@2.2-impl + +PRODUCT_PACKAGES += \ + audio.a2dp.default \ + audio.bluetooth.default \ + audio.primary.atoll \ + audio.r_submix.default \ + audio.usb.default \ + +PRODUCT_PACKAGES += \ + liba2dpoffload \ + libaudiopreprocessing \ + libaudio-resampler \ + libbatterylistener \ + libbundlewrapper \ + libcomprcapture \ + libdownmix \ + libdynproc \ + libeffectproxy \ + libexthwplugin \ + libhdmiedid \ + libhfp \ + libldnhncr \ + libqcompostprocbundle \ + libqcomvisualizer \ + libqcomvoiceprocessing \ + libreverbwrapper \ + libsndmonitor \ + libspkrprot \ + libvisualizer \ + libvolumelistener + # Rootdir PRODUCT_PACKAGES += \ init.qcom.early_boot.sh \