From a97b34f687392b531f835a6a548fe1c765957b9e Mon Sep 17 00:00:00 2001 From: Verevka Date: Tue, 26 Sep 2017 20:54:22 +0300 Subject: [PATCH] op5: enable split A2DP to implement A2DP encoding offload * "Split A2DP" probably stands for splitting A2DP output stream out from A2DP HAL to primary audio HAL, which makes it possible to offload SBC / aptX / AAC ... encoding to DSP. * Primary audio HAL requires libbthost_if to transmit BT packets. Change-Id: I403a66ef2d2f6a358fbdd4c0654812e6bf30a2b3 --- BoardConfig.mk | 2 +- device.mk | 4 ++++ proprietary-files.txt | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index a1bdeeb1..e4bcc369 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -120,7 +120,7 @@ AUDIO_FEATURE_ENABLED_DTS_EAGLE := false AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true -AUDIO_FEATURE_ENABLED_SPLIT_A2DP := false +AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true AUDIO_FEATURE_ENABLED_3D_AUDIO := true AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true AUDIO_FEATURE_ENABLED_ANC_HEADSET := true diff --git a/device.mk b/device.mk index a105e12c..61b0b145 100644 --- a/device.mk +++ b/device.mk @@ -127,6 +127,10 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ external/ant-wireless/antradio-library/com.dsi.ant.antradio_library.xml:system/etc/permissions/com.dsi.ant.antradio_library.xml +# Bluetooth +PRODUCT_PACKAGES += \ + libbthost_if + # Camera PRODUCT_PACKAGES += \ MiuiCamera diff --git a/proprietary-files.txt b/proprietary-files.txt index 4e34e374..b999edd3 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -82,6 +82,8 @@ vendor/lib/libhwdaphal.so bin/btnvtool bin/hci_qcomm_init bin/wcnss_filter +lib/libbthost_if.so +lib64/libbthost_if.so vendor/lib64/libbtnv.so vendor/lib/libbtnv.so