From: Stricted Date: Sun, 23 Sep 2018 00:51:14 +0000 (+0200) Subject: s5neolte: add bluetooth configuration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a877db40ba73007420d2424c8b04d3e23b4c26df;p=GitHub%2FLineageOS%2Fandroid_device_samsung_s5neolte.git s5neolte: add bluetooth configuration Change-Id: Iebcb4132923f6c280a697aeb3f70afd19009f328 --- diff --git a/BoardConfig.mk b/BoardConfig.mk index c06c4a5..3732c34 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -18,3 +18,6 @@ include device/samsung/universal7580-common/BoardConfigCommon.mk LOCAL_PATH := device/samsung/s5neolte + +# 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..dd560b6 --- /dev/null +++ b/bluetooth/bdroid_buildcfg.h @@ -0,0 +1,30 @@ +/* + * 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 S5 NEO" + +#define BTM_WBS_INCLUDED TRUE /* Enable WBS */ +#define BTIF_HF_WBS_PREFERRED TRUE /* Use WBS */ + +#define BLE_INCLUDED TRUE +#define BTA_GATT_INCLUDED TRUE +#define SMP_INCLUDED TRUE + +#endif diff --git a/bluetooth/bt_vendor.conf b/bluetooth/bt_vendor.conf new file mode 100644 index 0000000..375c2db --- /dev/null +++ b/bluetooth/bt_vendor.conf @@ -0,0 +1,2 @@ +# Firmware patch file name +FwPatchFileName = bcm43455_V0147_0248.hcd diff --git a/device.mk b/device.mk index d0b80c7..463eb17 100644 --- a/device.mk +++ b/device.mk @@ -18,6 +18,13 @@ LOCAL_PATH := device/samsung/s5neolte $(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