aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekhterev Evgeny <pekhterev.e@gmail.com>2017-04-13 11:08:43 +0300
committernailyk-fr <nailyk_git@nailyk.fr>2017-04-27 09:48:00 +0000
commitb6846f98a5e1a10ed0019c8aaea923c9ec1eefac (patch)
tree4c5df30578bc3d6b9c7a39d8c0cc3ee26396af4b
parentaf55a53f7d06c8eab378a00e82323f7d2fd4487e (diff)
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
-rw-r--r--BoardConfigCommon.mk1
-rw-r--r--bluetooth/vnd_generic.txt18
2 files changed, 19 insertions, 0 deletions
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