1 /*
2  * Copyright (C) 2014 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 #define BTM_DEF_LOCAL_NAME "Nexus Player"
21 #define BTA_DM_COD {0x20, BTM_COD_MAJOR_AUDIO, BTM_COD_MINOR_SET_TOP_BOX}
22 
23 #define BLE_VND_INCLUDED TRUE
24 
25 // Turn off BLE_PRIVACY_SPT.  Remote reconnect fails on
26 // often if this is enabled.
27 #define BLE_PRIVACY_SPT FALSE
28 
29 // Force connection interval to 13.75ms
30 #define BTM_BLE_CONN_INT_MIN_DEF 11 /* 13.75ms = 11 * 1.25 */
31 #define BTM_BLE_CONN_INT_MAX_DEF BTM_BLE_CONN_INT_MIN_DEF
32 
33 // Allow better battery life
34 #define BTM_BLE_CONN_SLAVE_LATENCY_DEF 24
35 
36 // Detect disconnects faster
37 #define BTM_BLE_CONN_TIMEOUT_DEF 300
38 
39 // Increase background scanning to reduce reconnect time
40 #define BTM_BLE_SCAN_SLOW_INT_1    110    /* 68.75 ms   = 110 *0.625 */
41 #define BTM_BLE_SCAN_SLOW_WIN_1    8      /* 5 ms = 8 *0.625 */
42 
43 // Disable HFP
44 #define BTIF_HF_SERVICES (BTA_HSP_SERVICE_MASK)
45 #define BTIF_HF_SERVICE_NAMES  { BTIF_HSAG_SERVICE_NAME, NULL }
46 
47 // Disable compiling code in Bluedroid for profiles we don't support
48 #define BTA_PAN_INCLUDED FALSE
49 #define BNEP_INCLUDED FALSE
50 #define AVDT_INCLUDED FALSE
51 #define PAN_INCLUDED FALSE
52 #define AVCT_INCLUDED FALSE
53 
54 /* We will support a remote +  4 game controllers.  To be able to
55  * allocate sufficient bandwidth for all devices we will restrict the
56  * Game Controllers to a sniff interval of 13.75ms.
57  */
58 #define BTA_DM_PM_SNIFF4_MAX     22
59 #define BTA_DM_PM_SNIFF4_MIN     22
60 #define BTA_DM_PM_SNIFF4_ATTEMPT 1
61 #define BTA_DM_PM_SNIFF4_TIMEOUT 0
62 
63 #define BTA_DM_PM_SNIFF_HH_OPEN_IDX BTA_DM_PM_SNIFF4
64 #define BTA_DM_PM_HH_OPEN_DELAY 0
65 
66 #define BTA_DM_PM_SNIFF_HH_ACTIVE_IDX BTA_DM_PM_SNIFF4
67 #define BTA_DM_PM_HH_ACTIVE_DELAY 0
68 
69 #define BTA_DM_PM_SNIFF_HH_IDLE_IDX BTA_DM_PM_SNIFF4
70 #define BTA_DM_PM_HH_IDLE_DELAY 0
71 
72 // Change I/O capabilities to output only so pairing uses passkey instead of pin
73 #define BTM_LOCAL_IO_CAPS BTM_IO_CAP_OUT
74 
75 #endif
76