From 522d08df0c614a758b470bf9475a91d7bb6e1548 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Tue, 22 Aug 2017 22:07:43 +0200 Subject: [PATCH] msm8976-common: Update audio for O * Build audio HALs * Remove dead packages * Update audio flags for AOSP HAL --- BoardConfigCommon.mk | 3 ++- msm8976.mk | 13 +++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 9407255..887fec1 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -87,7 +87,8 @@ AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true BOARD_USES_ALSA_AUDIO := true -USE_CUSTOM_AUDIO_POLICY := 1 +BOARD_USES_GENERIC_AUDIO := true +TARGET_USES_QCOM_MM_AUDIO := true USE_XML_AUDIO_POLICY_CONF := 1 # Bluetooth diff --git a/msm8976.mk b/msm8976.mk index 2370961..79a5ac1 100644 --- a/msm8976.mk +++ b/msm8976.mk @@ -70,18 +70,23 @@ PRODUCT_COPY_FILES += \ # Audio PRODUCT_PACKAGES += \ - audiod \ - audio.a2dp.default \ audio.primary.msm8952 \ audio.r_submix.default \ + audio.a2dp.default \ audio.usb.default \ + audio.r_submix.default + +PRODUCT_PACKAGES += \ libaudio-resampler \ libaudioroute \ libqcompostprocbundle \ libqcomvisualizer \ - libqcomvoiceprocessing \ libtinycompress \ - tinymix + +PRODUCT_PACKAGES += \ + android.hardware.audio@2.0-impl \ + android.hardware.audio.effect@2.0-impl \ + android.hardware.broadcastradio@1.0-impl PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \