From c034f3b60902b02e715dac2e74167298f86a8659 Mon Sep 17 00:00:00 2001 From: Volodymyr Zhdanov Date: Tue, 15 Sep 2020 15:28:55 +0300 Subject: [PATCH] sm6250-common: build audio stack from source --- BoardConfigCommon.mk | 5 +++++ common.mk | 37 ++++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index a531da5..06870ea 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -27,6 +27,11 @@ AUDIO_FEATURE_ENABLED_HDMI_SPK := true AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true #AUDIO_FEATURE_ENABLED_AHAL_EXT := true +AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true +AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true +BOARD_SUPPORTS_SOUND_TRIGGER := true +BOARD_USES_ALSA_AUDIO := true + # Audio policy USE_CUSTOM_AUDIO_POLICY := 1 USE_XML_AUDIO_POLICY_CONF := 1 diff --git a/common.mk b/common.mk index 28e3c5b..05e1fe1 100644 --- a/common.mk +++ b/common.mk @@ -25,7 +25,35 @@ PRODUCT_SHIPPING_API_LEVEL := 29 # Audio PRODUCT_PACKAGES += \ - libvolumelistener + libvolumelistener \ + libqcomvisualizer \ + libqcomvoiceprocessing \ + libqcompostprocbundle + +PRODUCT_PACKAGES += \ + audio.primary.atoll \ + audio.a2dp.default \ + audio.usb.default \ + audio.r_submix.default \ + libaudio-resampler \ + libtinycompress + +PRODUCT_PACKAGES += \ + android.hardware.audio@5.0-impl:32 \ + android.hardware.audio.effect@5.0-impl:32 \ + android.hardware.soundtrigger@2.2-impl \ + android.hardware.audio@2.0-service + +PRODUCT_PACKAGES += \ + liba2dpoffload \ + libbatterylistener \ + libcirrusspkrprot \ + libcomprcapture \ + libexthwplugin \ + libhdmiedid \ + libhfp \ + libsndmonitor \ + libspkrprot PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml @@ -53,8 +81,15 @@ PRODUCT_PACKAGES += \ # Bluetooth PRODUCT_PACKAGES += \ + audio.bluetooth.default \ + libbthost_if \ BluetoothQti +PRODUCT_PACKAGES += \ + android.hardware.bluetooth.audio@2.0-impl \ + vendor.qti.hardware.bluetooth_audio@2.0.vendor \ + vendor.qti.hardware.btconfigstore@1.0.vendor + PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml