From 173692b1e33e5c8be9cd2001660d903bda206922 Mon Sep 17 00:00:00 2001 From: arch-dev Date: Sun, 8 Aug 2021 15:44:21 +0200 Subject: [PATCH] exynos9610: Fix audio through Bluetooth during calls Change-Id: I7c5d018db222f4fd339ab6545d41bae37d62cc75 --- BoardConfigCommon.mk | 2 +- bluetooth/bdroid_buildcfg.h | 33 +++++++++++++++++++ .../base/core/res/res/values/config.xml | 3 ++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 bluetooth/bdroid_buildcfg.h diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 2f028b0..dcc237d 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -52,7 +52,7 @@ TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a53 TARGET_USES_64_BIT_BINDER := true ## Bluetooth -BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := hardware/samsung_slsi/libbt/include +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth BOARD_HAVE_BLUETOOTH_SLSI := true ## Boot Image diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h new file mode 100644 index 0000000..3d92ab0 --- /dev/null +++ b/bluetooth/bdroid_buildcfg.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2021 The LineageOS 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 + +#define BTM_WBS_INCLUDED TRUE /* Enable WBS */ +#define BTIF_HF_WBS_PREFERRED FALSE /* Don't prefer WBS */ + +/* + * Toggles support for vendor specific extensions such as RPA offloading, + * feature discovery, multi-adv etc. + */ +#define BLE_VND_INCLUDED TRUE + +#define BTM_SCO_ENHANCED_SYNC_ENABLED FALSE + +#define BTM_ESCO_TRANSPORT_UNIT_SIZE_PCM16 + +#endif diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index b956547..302f308 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -242,4 +242,7 @@ true true + + + true -- 2.20.1