--- /dev/null
+BLUETOOTH_HCI_USE_USB = TRUE
+USE_CONTROLLER_BDADDR = TRUE
+SCO_USE_I2S_INTERFACE = FALSE
+FW_PATCHFILE_LOCATION = "/system/lib/firmware"
+BTVND_DBG = FALSE
+BTHW_DBG = TRUE
+VNDUSERIAL_DBG = FALSE
+UPIO_DBG = FALSE
if (is_proceeding == FALSE)
{
+#if (BLUETOOTH_HCI_USE_USB == TRUE)
+ is_proceeding = hw_config_read_bdaddr(p_buf);
+#else
is_proceeding = hw_config_set_bdaddr(p_buf);
+#endif
}
break;
/* fall through intentionally */
case HW_CFG_START:
+#if (BLUETOOTH_HCI_USE_USB == TRUE)
+ /* read local name */
+ UINT16_TO_STREAM(p, HCI_READ_LOCAL_NAME);
+ *p = 0; /* parameter length */
+
+ p_buf->len = HCI_CMD_PREAMBLE_SIZE;
+ hw_cfg_cb.state = HW_CFG_READ_LOCAL_NAME;
+
+ is_proceeding = bt_vendor_cbacks->xmit_cb(HCI_READ_LOCAL_NAME, \
+ p_buf, hw_config_cback);
+ break;
+#endif
if (UART_TARGET_BAUD_RATE > 3000000)
{
/* set UART clock to 48MHz */
HC_BT_HDR *p_buf = NULL;
uint8_t *p, ret;
+#if (BLUETOOTH_HCI_USE_USB == TRUE)
+ /* Nothing specific is required for SCO connection, return SUCCESS */
+ if (bt_vendor_cbacks)
+ bt_vendor_cbacks->scocfg_cb(BT_VND_OP_RESULT_SUCCESS);
+ return;
+#endif
+
#if (!defined(SCO_USE_I2S_INTERFACE) || (SCO_USE_I2S_INTERFACE == FALSE))
uint16_t cmd_u16 = HCI_CMD_PREAMBLE_SIZE + SCO_PCM_PARAM_SIZE;
#else
SRC := $(call my-dir)/include/$(addprefix vnd_, $(addsuffix .txt,$(basename $(TARGET_DEVICE))))
ifeq (,$(wildcard $(SRC)))
# configuration file does not exist. Use default one
+ifeq ($(BLUETOOTH_HCI_USE_USB), true)
+SRC := $(call my-dir)/include/vnd_generic_usb.txt
+else
SRC := $(call my-dir)/include/vnd_generic.txt
endif
+endif
GEN := $(intermediates)/vnd_buildcfg.h
TOOL := $(TOP_DIR)external/bluetooth/bluedroid/tools/gen-buildcfg.sh