exynos9610: Fix audio through Bluetooth during calls
authorarch-dev <sebastiano.galeazzo@gmail.com>
Sun, 8 Aug 2021 13:44:21 +0000 (15:44 +0200)
committerNolen Johnson <johnsonnolen@gmail.com>
Mon, 4 Apr 2022 15:39:30 +0000 (11:39 -0400)
Change-Id: I7c5d018db222f4fd339ab6545d41bae37d62cc75

BoardConfigCommon.mk
bluetooth/bdroid_buildcfg.h [new file with mode: 0644]
overlay/frameworks/base/core/res/res/values/config.xml

index 2f028b0bee670c8b7d59ee32fa8191df5b1129c6..dcc237d8fdde6999538a3d62aee4bb38bcd9a1ad 100644 (file)
@@ -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 (file)
index 0000000..3d92ab0
--- /dev/null
@@ -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
index b95654709cedabc065f4f006e99950f8e161eee5..302f308daa764eafa49911ced015f01c724f6f3c 100644 (file)
 
     <bool translatable="false" name="config_wifi_softap_ieee80211ac_supported">true</bool>
     <bool name="config_enableWifiDisplay">true</bool>
+
+    <!-- Boolean indicating if current platform supports BLE peripheral mode -->
+    <bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
 </resources>