2018-07-12 22:11:03 -04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
|
|
|
* Not a Contribution, Apache license notifications and license are retained
|
|
|
|
* for attribution purposes only.
|
|
|
|
*
|
2021-09-12 15:27:59 -04:00
|
|
|
* Copyright (C) 2012 The Android Open Source Project
|
|
|
|
* Copyright (C) 2016 The CyanogenMod Project
|
|
|
|
* Copyright (C) 2020 The LineageOS Project
|
2018-07-12 22:11:03 -04:00
|
|
|
*
|
2021-09-12 15:27:59 -04:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2018-07-12 22:11:03 -04:00
|
|
|
*/
|
2020-12-12 01:30:54 -05:00
|
|
|
|
2018-07-12 22:11:03 -04:00
|
|
|
#ifndef _BDROID_BUILDCFG_H
|
|
|
|
#define _BDROID_BUILDCFG_H
|
2020-12-12 01:30:54 -05:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#pragma push_macro("PROPERTY_VALUE_MAX")
|
|
|
|
|
|
|
|
#include <cutils/properties.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
static inline const char* BtmGetDefaultName()
|
|
|
|
{
|
|
|
|
char product_model[PROPERTY_VALUE_MAX];
|
|
|
|
property_get("ro.product.model", product_model, "");
|
|
|
|
|
|
|
|
if (strstr(product_model, "Mi A2"))
|
|
|
|
return "Mi A2";
|
|
|
|
if (strstr(product_model, "MI 6X"))
|
|
|
|
return "MI 6X";
|
|
|
|
if (strstr(product_model, "MI PAD 4"))
|
|
|
|
return "MI PAD 4";
|
|
|
|
if (strstr(product_model, "MI PAD 4 PLUS"))
|
|
|
|
return "MI PAD 4 PLUS";
|
|
|
|
|
|
|
|
// Fallback to ro.product.model
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
#undef PROPERTY_VALUE_MAX
|
|
|
|
|
|
|
|
#define BTM_DEF_LOCAL_NAME BtmGetDefaultName()
|
2018-07-12 22:11:03 -04:00
|
|
|
// Disables read remote device feature
|
|
|
|
#define MAX_ACL_CONNECTIONS 16
|
2021-10-15 02:01:08 -04:00
|
|
|
#define MAX_L2CAP_CHANNELS 16
|
2018-07-12 22:11:03 -04:00
|
|
|
#define BLE_VND_INCLUDED TRUE
|
2020-12-12 01:30:54 -05:00
|
|
|
|
2021-10-15 02:01:08 -04:00
|
|
|
/* Increasing SEPs to 12 from 6 to support SHO/MCast i.e. two streams per codec */
|
|
|
|
#define AVDT_NUM_SEPS 12
|
2020-12-12 01:30:54 -05:00
|
|
|
#pragma pop_macro("PROPERTY_VALUE_MAX")
|
|
|
|
|
2018-07-12 22:11:03 -04:00
|
|
|
#endif
|