From 23094912ff471197ef43b8828a8e4e85707b2b55 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 30 Jun 2018 10:49:31 +0100 Subject: [PATCH] sm6250-common: Import BT config header * Straight from CAF (as per LA.UM.6.3.r4-04300-sdm845.0), with BTM_DEF_LOCAL_NAME unset so that ro.product.model is used instead. Change-Id: I20a8460c9d936cc3d94f74e469f8babf1c02bda4 --- BoardConfigCommon.mk | 3 +++ bluetooth/include/bdroid_buildcfg.h | 33 +++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 bluetooth/include/bdroid_buildcfg.h diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 9c9477a..5cee619 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -29,6 +29,9 @@ AUDIO_FEATURE_ENABLED_AHAL_EXT := true USE_CUSTOM_AUDIO_POLICY := 1 USE_XML_AUDIO_POLICY_CONF := 1 +# Bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth/include + # Bootloader TARGET_NO_BOOTLOADER := true diff --git a/bluetooth/include/bdroid_buildcfg.h b/bluetooth/include/bdroid_buildcfg.h new file mode 100644 index 0000000..9660ad5 --- /dev/null +++ b/bluetooth/include/bdroid_buildcfg.h @@ -0,0 +1,33 @@ +/* + * + * Copyright (c) 2013, The Linux Foundation. All rights reserved. + * Not a Contribution, Apache license notifications and license are retained + * for attribution purposes only. + * + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _BDROID_BUILDCFG_H +#define _BDROID_BUILDCFG_H + +// Disables read remote device feature +#define MAX_ACL_CONNECTIONS 16 +#define MAX_L2CAP_CHANNELS 16 +#define BLE_VND_INCLUDED TRUE +// 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 +#endif