libbt: remove MIN_NUMBER_A2DP_SDUS
[GitHub/LineageOS/android_hardware_samsung_slsi_libbt.git] / include / bdroid_buildcfg.h
1 /*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef _BDROID_BUILDCFG_H
18 #define _BDROID_BUILDCFG_H
19
20 /**
21 * SD-3510 Increase page timeout value when A2dp is streaming
22 * During A2DP streaming, BT sometimes fails to connect
23 * because of PAGE_TIMEOUT.
24 * BTA_DM_PAGE_TIMEOUT is originally defined in bta_dm_cfg.c
25 */
26 #define BTA_DM_PAGE_TIMEOUT 8192
27
28 /**
29 * SD-996 Increase MAX_L2CAP_CHANNELS
30 * L2CAP: MAX_L2CAP_CHANNELS is now defined to 20 in order to be able
31 * to connect to 7 HID devices or 5 HID devices and a Stereo Headset
32 * which support AV, AVRCP and HFG
33 * Originally defined in bt_target.h
34 */
35 #define MAX_L2CAP_CHANNELS (20)
36
37 /**
38 * SD-1101 Optimize RX SPP throughput
39 * Optimize RX SPP throughput by making sure that
40 * the Peer device do not run out of rfcomm credits
41 * Originally defined in bt_target.h
42 * SSB-5680: Re-optimize for OPP throughput
43 */
44 #define PORT_RX_BUF_LOW_WM (20)
45 #define PORT_RX_BUF_HIGH_WM (40)
46 #define PORT_RX_BUF_CRITICAL_WM (45)
47
48 /**
49 * SD-2893 Optimize MTU used by the RFCOMM socket
50 * Optimize the MTU used by the RFCOMM socket by
51 * defining a MTU that can be sent in one l2cap packet
52 * Originally defined in bta_jv_api.h
53 */
54 #define BTA_JV_DEF_RFC_MTU (1011)
55
56 /*
57 * SSB-213 New extension channel needed for Android-defined vendor specific commands.
58 * Toggles support for vendor specific extensions such as RPA offloading,
59 * feature discovery, multi-adv etc.
60 */
61 #define BLE_VND_INCLUDED TRUE
62
63 /**
64 * SSB-4621 Change number of credits allocated for Bluetooth LE data in the Android host
65 * Based in investigations initiated by MTK-86 it is recommended to change the number of
66 * credits allocated for BLE data from 1 (default) to 2.
67 */
68 #define L2C_DEF_NUM_BLE_BUF_SHARED 2
69
70 /**
71 * SSB-582 Improve data scheduling to HCI when A2DP is involved
72 * Ensure that A2DP data is scheduled in a way that suits the scheduling in Coex and BT-only scenarios
73 */
74 #define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA 6
75
76 #endif