From b6846f98a5e1a10ed0019c8aaea923c9ec1eefac Mon Sep 17 00:00:00 2001 From: Pekhterev Evgeny Date: Thu, 13 Apr 2017 11:08:43 +0300 Subject: shinano-common: Add BT vendor config * Resolves issues with bluetooth audio in calls. * Taken from sonyxperiadev; see: https://github.com/sonyxperiadev/device-sony-kitakami/blob/6033244701b60757df33f22b8b6b83815a11ea54/bluetooth/vnd_generic.txt Change-Id: I8f4f186f2d257bab7242961d542e5724761472a3 --- BoardConfigCommon.mk | 1 + bluetooth/vnd_generic.txt | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 bluetooth/vnd_generic.txt diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 17aae23..6a1a32d 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -42,6 +42,7 @@ BOARD_HAVE_BCM_FM := true BOARD_HAVE_BLUETOOTH := true BOARD_HAVE_BLUETOOTH_BCM := true BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/sony/shinano-common/bluetooth +BOARD_CUSTOM_BT_CONFIG := $(DEVICE_PATH)/bluetooth/vnd_generic.txt # CM Hardware BOARD_HARDWARE_CLASS += device/sony/shinano-common/cmhw diff --git a/bluetooth/vnd_generic.txt b/bluetooth/vnd_generic.txt new file mode 100644 index 0000000..31b1ff8 --- /dev/null +++ b/bluetooth/vnd_generic.txt @@ -0,0 +1,18 @@ +BLUETOOTH_UART_DEVICE_PORT = "/dev/ttyHS0" +FW_PATCHFILE_LOCATION = "/system/etc/firmware/" +FW_PATCHFILE_NAME = "BCM43xx.hcd" +BT_WAKE_VIA_USERIAL_IOCTL = TRUE +USERIAL_IOCTL_BT_WAKE_ASSERT = 0x5441 +USERIAL_IOCTL_BT_WAKE_DEASSERT = 0x5442 +USERIAL_IOCTL_BT_WAKE_GET_ST = 0x5443 +FW_PATCH_SETTLEMENT_DELAY_MS = 100 +UART_TARGET_BAUD_RATE = 3000000 +LPM_IDLE_TIMEOUT_MULTIPLE = 5 +LPM_BT_WAKE_POLARITY = 1 +LPM_HOST_WAKE_POLARITY = 1 +SCO_USE_I2S_INTERFACE = FALSE +SCO_I2SPCM_IF_ROLE = 0 +BTVND_DBG = FALSE +BTHW_DBG = TRUE +VNDUSERIAL_DBG = FALSE +UPIO_DBG = FALSE -- cgit v1.2.3