Skip to content

Commit

Permalink
raphael: switch to qcom bt stack
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush Dubey <ayushdubey70@gmail.com>
  • Loading branch information
TheScarastic authored and Ayushd70 committed Jul 5, 2020
1 parent edade10 commit 9051e40
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 376 deletions.
1 change: 1 addition & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
349 changes: 0 additions & 349 deletions audio/audio_policy_configuration.xml

This file was deleted.

12 changes: 4 additions & 8 deletions bluetooth/include/bdroid_buildcfg.h
Original file line number Diff line number Diff line change
@@ -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
*
Expand All @@ -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
12 changes: 5 additions & 7 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 += \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2014, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the
disclaimer below) provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of the Linux Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<resources>
<bool name="profile_supported_avrcp_controller">false</bool>
<bool name="profile_supported_avrcp_target">false</bool>
<bool name="profile_supported_ba">true</bool>
<bool name="profile_supported_sap">false</bool>
</resources>
8 changes: 0 additions & 8 deletions product_prop.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions proprietary-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions system_prop.mk
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9051e40

Please sign in to comment.