From a3b5a23b30252306e8060e3d149555dac33fbffe Mon Sep 17 00:00:00 2001 From: Stricted Date: Sun, 23 Sep 2018 02:46:37 +0200 Subject: [PATCH] universal7580: add common bluetooth configuration Change-Id: Ibf15cda6cfd34f44d9aa210369e5bfd9891b5c47 --- BoardConfigCommon.mk | 6 ++++++ bluetooth/libbt_vndcfg.txt | 11 +++++++++++ device-common.mk | 5 +++++ 3 files changed, 22 insertions(+) create mode 100644 bluetooth/libbt_vndcfg.txt diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 783b4a7..a731017 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -130,6 +130,12 @@ WIFI_BAND := 802_11_ABG # MACLOADER BOARD_HAVE_SAMSUNG_WIFI := true +# Bluetooth +BOARD_CUSTOM_BT_CONFIG := $(LOCAL_PATH)/bluetooth/libbt_vndcfg.txt +BOARD_HAVE_BLUETOOTH := true +BOARD_HAVE_BLUETOOTH_BCM := true +BOARD_HAVE_SAMSUNG_BLUETOOTH := true + # Lineage Hardware BOARD_HARDWARE_CLASS := hardware/samsung/lineagehw $(LOCAL_PATH)/lineagehw diff --git a/bluetooth/libbt_vndcfg.txt b/bluetooth/libbt_vndcfg.txt new file mode 100644 index 0000000..2bea300 --- /dev/null +++ b/bluetooth/libbt_vndcfg.txt @@ -0,0 +1,11 @@ +BLUETOOTH_UART_DEVICE_PORT = "/dev/ttySAC3" +FW_PATCHFILE_LOCATION = "/vendor/firmware" +FW_PATCH_SETTLEMENT_DELAY_MS = 200 +UART_TARGET_BAUD_RATE = 3000000 +LPM_IDLE_TIMEOUT_MULTIPLE = 5 +SCO_USE_I2S_INTERFACE = TRUE +SCO_I2SPCM_IF_ROLE = 1 +BTVND_DBG = FALSE +BTHW_DBG = TRUE +VNDUSERIAL_DBG = FALSE +UPIO_DBG = FALSE diff --git a/device-common.mk b/device-common.mk index 434a344..94e824d 100644 --- a/device-common.mk +++ b/device-common.mk @@ -30,6 +30,11 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/audio/audio_policy.conf:system/etc/audio_policy.conf \ $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml +# Bluetooth +PRODUCT_PACKAGES += \ + android.hardware.bluetooth@1.0-impl \ + libbt-vendor + # Camera PRODUCT_PACKAGES += \ android.hardware.camera.provider@2.4-impl-legacy \ -- 2.20.1