From 0b6743baacf905e34ed0bddd49c5a91a1b9edc9c Mon Sep 17 00:00:00 2001 From: Vachounet Date: Wed, 23 Aug 2017 11:53:58 +0200 Subject: [PATCH] potter: update audio for O Change-Id: I90cb6cbf22a127141b6701fea71fa7aab5db2b6b --- BoardConfig.mk | 35 +++-------------------------------- device.mk | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 38 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 9b2c33c..5c3eeda 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -58,36 +58,11 @@ TARGET_KERNEL_CONFIG := potter_defconfig TARGET_KERNEL_SOURCE := kernel/motorola/msm8953 # Audio -AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true -AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true -AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true -AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true -AUDIO_FEATURE_ENABLED_ANC_HEADSET := true -AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true -AUDIO_FEATURE_ENABLED_DEV_ARBI := true -AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true -AUDIO_FEATURE_ENABLED_EXT_HDMI := true -AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true -AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true -AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true -AUDIO_FEATURE_ENABLED_FLUENCE := true -AUDIO_FEATURE_ENABLED_HFP := true -AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true -AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true +AUDIO_FEATURE_ENABLED_SND_MONITOR := true AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true -AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true -AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true -AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true -AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true -AUDIO_FEATURE_ENABLED_SSR := true -AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true -AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true -AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true -BOARD_SUPPORTS_SOUND_TRIGGER := true -AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true BOARD_USES_ALSA_AUDIO := true -USE_CUSTOM_AUDIO_POLICY := 1 -# USE_XML_AUDIO_POLICY_CONF := 1 +BOARD_USES_GENERIC_AUDIO := true +TARGET_USES_QCOM_MM_AUDIO := true # Bluetooth BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth @@ -157,10 +132,6 @@ TARGET_PER_MGR_ENABLED := true # Power TARGET_POWERHAL_VARIANT := qcom -# Qualcomm support -BOARD_USES_QCOM_HARDWARE := true -BOARD_USES_QC_TIME_SERVICES := true -TARGET_USE_SDCLANG := true # Radio BOARD_PROVIDES_LIBRIL := true diff --git a/device.mk b/device.mk index 72073a4..2af7a63 100644 --- a/device.mk +++ b/device.mk @@ -56,17 +56,23 @@ PRODUCT_AAPT_CONFIG := normal # Audio PRODUCT_PACKAGES += \ - audiod \ - audio.a2dp.default \ audio.primary.msm8953 \ - audio.r_submix.default \ + audio.a2dp.default \ audio.usb.default \ + audio.r_submix.default \ libaudio-resampler \ + +PRODUCT_PACKAGES += \ libqcomvisualizer \ libqcomvoiceprocessing \ - libqcompostprocbundle \ - libshim_adsp \ - tinymix + libqcomvoiceprocessingdescriptors \ + libqcompostprocbundle + +PRODUCT_PACKAGES += \ + android.hardware.audio@2.0-impl \ + android.hardware.audio.effect@2.0-impl \ + android.hardware.broadcastradio@1.0-impl \ + android.hardware.soundtrigger@2.0-impl PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \