From 9427e63c16953c6b61dcfe767f772578b075e0a9 Mon Sep 17 00:00:00 2001 From: Danny Wood Date: Fri, 28 Sep 2018 15:52:15 +0100 Subject: [PATCH] j7elte: Add bluetooth configuration Change-Id: I2b437630ae9444979fdcb2e35c060f9394a67657 --- BoardConfig.mk | 3 +++ bluetooth/bdroid_buildcfg.h | 28 ++++++++++++++++++++++++++++ bluetooth/bt_vendor.conf | 2 ++ device.mk | 7 +++++++ 4 files changed, 40 insertions(+) create mode 100644 bluetooth/bdroid_buildcfg.h create mode 100644 bluetooth/bt_vendor.conf diff --git a/BoardConfig.mk b/BoardConfig.mk index c913455..607f60e 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -16,3 +16,6 @@ include device/samsung/universal7580-common/BoardConfigCommon.mk LOCAL_PATH := device/samsung/j7elte + +# Bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h new file mode 100644 index 0000000..1598bf4 --- /dev/null +++ b/bluetooth/bdroid_buildcfg.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * Copyright (C) 2014 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _BDROID_BUILDCFG_H +#define _BDROID_BUILDCFG_H + +#define BTM_DEF_LOCAL_NAME "Samsung Galaxy J7 2015" + +#define BTM_WBS_INCLUDED TRUE /* Enable WBS */ +#define BTIF_HF_WBS_PREFERRED FALSE /* Don't use WBS by default */ + +#define BLE_VND_INCLUDED TRUE + +#endif diff --git a/bluetooth/bt_vendor.conf b/bluetooth/bt_vendor.conf new file mode 100644 index 0000000..6f9f365 --- /dev/null +++ b/bluetooth/bt_vendor.conf @@ -0,0 +1,2 @@ +# Firmware patch file name +FwPatchFileName = bcm43430A1_V0062.hcd diff --git a/device.mk b/device.mk index 7fc3be9..69ffbb1 100644 --- a/device.mk +++ b/device.mk @@ -16,6 +16,13 @@ LOCAL_PATH := device/samsung/j7elte $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) +# Bluetooth +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf + +PRODUCT_PACKAGES += \ + android.hardware.bluetooth@1.0-service + # Ramdisk PRODUCT_PACKAGES += \ init.target.rc -- 2.20.1