diff --git a/BoardConfig.mk b/BoardConfig.mk index cc71b1c..9a6b373 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -70,6 +70,7 @@ USE_XML_AUDIO_POLICY_CONF := 1 # Bluetooth BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include +TARGET_FWK_SUPPORTS_FULL_VALUEADDS := true # Camera TARGET_USES_QTI_CAMERA_DEVICE := true diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml deleted file mode 100644 index e1d4e22..0000000 --- a/audio/audio_policy_configuration.xml +++ /dev/null @@ -1,349 +0,0 @@ - - - - - - - - - - - - - - - - - Earpiece - Speaker - Telephony Tx - Built-In Mic - Built-In Back Mic - FM Tuner - Telephony Rx - - Speaker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bluetooth/include/bdroid_buildcfg.h b/bluetooth/include/bdroid_buildcfg.h index 757c50e..33a8ca9 100644 --- a/bluetooth/include/bdroid_buildcfg.h +++ b/bluetooth/include/bdroid_buildcfg.h @@ -1,8 +1,6 @@ /* - * * Copyright (c) 2013, The Linux Foundation. All rights reserved. - * Not a Contribution, Apache license notifications and license are retained - * for attribution purposes only. + * Not a Contribution. * * Copyright (C) 2012 The Android Open Source Project * @@ -23,13 +21,11 @@ #define _BDROID_BUILDCFG_H // Disables read remote device feature #define MAX_ACL_CONNECTIONS 16 -#define MAX_L2CAP_CHANNELS 16 -#define BTM_WBS_INCLUDED TRUE -#define BTIF_HF_WBS_PREFERRED TRUE +#define MAX_L2CAP_CHANNELS 32 #define BLE_VND_INCLUDED TRUE +#define GATT_MAX_PHY_CHANNEL 10 // skips conn update at conn completion #define BT_CLEAN_TURN_ON_DISABLED 1 -/* Increasing SEPs to 12 from 6 to support SHO/MCast i.e. two streams per codec */ -#define AVDT_NUM_SEPS 12 +#define AVDT_NUM_SEPS 35 #endif diff --git a/device.mk b/device.mk index 54bbf8d..4766031 100644 --- a/device.mk +++ b/device.mk @@ -44,14 +44,12 @@ PRODUCT_PACKAGES += \ audio.a2dp.default PRODUCT_COPY_FILES += \ - frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/a2dp_audio_policy_configuration.xml \ - frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/a2dp_in_audio_policy_configuration.xml \ - frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/usb_audio_policy_configuration.xml \ - frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/bluetooth_audio_policy_configuration.xml \ $(LOCAL_PATH)/audio/audio_policy_engine_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_engine_configuration.xml \ - $(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_platform_info.xml \ - $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/audio_policy_configuration.xml \ - $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_configuration.xml + $(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_platform_info.xml + +# Bluetooth +PRODUCT_PACKAGES += \ + BluetoothQti # Camera PRODUCT_PACKAGES += \ diff --git a/overlay/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml b/overlay/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml new file mode 100644 index 0000000..a97df40 --- /dev/null +++ b/overlay/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml @@ -0,0 +1,34 @@ + + + + false + false + true + false + diff --git a/product_prop.mk b/product_prop.mk index 946db3d..b9a304c 100644 --- a/product_prop.mk +++ b/product_prop.mk @@ -13,14 +13,6 @@ PRODUCT_PRODUCT_PROPERTIES += \ ro.adb.secure=0 endif -# Audio -PRODUCT_PRODUCT_PROPERTIES += \ - ro.bluetooth.a2dp_offload.supported=false \ - persist.bluetooth.a2dp_offload.disabled=true \ - persist.bluetooth.bluetooth_audio_hal.disabled=true \ - persist.vendor.qcom.bluetooth.enable.splita2d=false \ - vendor.audio.feature.a2dp_offload.enable = false - # Media PRODUCT_PRODUCT_PROPERTIES += \ debug.stagefright.omx_default_rank.sw-audio=16 diff --git a/proprietary-files.txt b/proprietary-files.txt index fadd7a5..177bd67 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -5,10 +5,6 @@ vendor/lib/soundfx/libvolumelistener.so:product/vendor_overlay/29/lib/soundfx/li # Alarm -product/app/PowerOffAlarm/PowerOffAlarm.apk -# Bluetooth (aptX) -product/lib64/libaptX_encoder.so|df1c89d7af1bb35808d5fe3496b04ba066c10cbc -product/lib64/libaptXHD_encoder.so|e13fa70c97caaa24d061678bdee608eb8850a69e - # CNE etc/cne/Nexus/ATT/ATT_profiles.xml etc/cne/Nexus/ROW/ROW_profiles.xml diff --git a/system_prop.mk b/system_prop.mk index f7e91d9..e91d6e8 100644 --- a/system_prop.mk +++ b/system_prop.mk @@ -1,7 +1,11 @@ # Bluetooth PRODUCT_PROPERTY_OVERRIDES += \ + persist.vendor.bt.a2dp.aac_whitelist=false \ persist.vendor.btstack.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aptxadaptive-aac-ldac \ persist.vendor.btstack.enable.splita2dp=true \ + persist.vendor.btstack.enable.twsplus=true \ + persist.vendor.btstack.enable.twsplussho=true \ + ro.bluetooth.library_name=libbluetooth_qti.so \ vendor.bluetooth.soc=cherokee # Camera