update ap6212 configuration, but can't work now

This commit is contained in:
August 2018-08-15 19:06:14 +08:00
parent 0ecc9cfb31
commit 4ff47aa650
7 changed files with 106 additions and 28 deletions

View file

@ -17,6 +17,8 @@
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
#ifdef BLUETOOTH_RTK
/*
#define BTM_DEF_LOCAL_NAME "Realtek Bluetooth"
*/
@ -70,4 +72,61 @@
#define BT_HCI_DEVICE_NODE_MAX_LEN 512
#define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE
#else
#define BTM_DEF_LOCAL_NAME "BPI-M64"
#define BTA_DM_COD {0x20, BTM_COD_MAJOR_AUDIO, BTM_COD_MINOR_SET_TOP_BOX}
#define BLE_VND_INCLUDED TRUE
// Turn off BLE_PRIVACY_SPT. Remote reconnect fails on
// often if this is enabled.
#define BLE_PRIVACY_SPT FALSE
// Force connection interval to 13.75ms
#define BTM_BLE_CONN_INT_MIN_DEF 11 /* 13.75ms = 11 * 1.25 */
#define BTM_BLE_CONN_INT_MAX_DEF BTM_BLE_CONN_INT_MIN_DEF
// Allow better battery life
#define BTM_BLE_CONN_SLAVE_LATENCY_DEF 24
// Detect disconnects faster
#define BTM_BLE_CONN_TIMEOUT_DEF 300
// Increase background scanning to reduce reconnect time
#define BTM_BLE_SCAN_SLOW_INT_1 110 /* 68.75 ms = 110 *0.625 */
#define BTM_BLE_SCAN_SLOW_WIN_1 8 /* 5 ms = 8 *0.625 */
// Disable HFP
#define BTIF_HF_SERVICES (BTA_HSP_SERVICE_MASK)
#define BTIF_HF_SERVICE_NAMES { BTIF_HSAG_SERVICE_NAME, NULL }
// Disable compiling code in Bluedroid for profiles we don't support
#define BTA_PAN_INCLUDED FALSE
#define BNEP_INCLUDED FALSE
#define AVDT_INCLUDED FALSE
#define PAN_INCLUDED FALSE
#define AVCT_INCLUDED FALSE
/* We will support a remote + 4 game controllers. To be able to
* allocate sufficient bandwidth for all devices we will restrict the
* Game Controllers to a sniff interval of 13.75ms.
*/
#define BTA_DM_PM_SNIFF4_MAX 22
#define BTA_DM_PM_SNIFF4_MIN 22
#define BTA_DM_PM_SNIFF4_ATTEMPT 1
#define BTA_DM_PM_SNIFF4_TIMEOUT 0
#define BTA_DM_PM_SNIFF_HH_OPEN_IDX BTA_DM_PM_SNIFF4
#define BTA_DM_PM_HH_OPEN_DELAY 0
#define BTA_DM_PM_SNIFF_HH_ACTIVE_IDX BTA_DM_PM_SNIFF4
#define BTA_DM_PM_HH_ACTIVE_DELAY 0
#define BTA_DM_PM_SNIFF_HH_IDLE_IDX BTA_DM_PM_SNIFF4
#define BTA_DM_PM_HH_IDLE_DELAY 0
// Change I/O capabilities to output only so pairing uses passkey instead of pin
#define BTM_LOCAL_IO_CAPS BTM_IO_CAP_OUT
#endif
#endif