android_device_samsung_a20/universal7885-common/bluetooth/bdroid_buildcfg.h
roynatech2544 7bfa92b915
Revert "[APTX] universal7885: enable a2dp sink in bt include."
This reverts commit 81c42df3388171b90e31752aacf46ba6696fa681.

Revert reason: A2dp sink is not working on hardware level.
2022-03-22 18:55:57 +09:00

28 lines
648 B
C

#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
#pragma push_macro("PROPERTY_VALUE_MAX")
#include <cutils/properties.h>
#include <string.h>
static inline const char* BtmGetDefaultName()
{
char product_device[PROPERTY_VALUE_MAX];
property_get("ro.product.device", product_device, "");
if (strstr(product_device, "a20e"))
return "Galaxy A20e";
if (strstr(product_device, "a20"))
return "Galaxy A20";
// Fallback to Moto SDM Generic
return "Samsung Galaxy";
}
#define BTM_DEF_LOCAL_NAME BtmGetDefaultName()
#define BTM_ESCO_TRANSPORT_UNIT_SIZE_PCM16
#pragma pop_macro("PROPERTY_VALUE_MAX")
#endif