From 9e55377de574e6181df7869b6336d77e4c2ba775 Mon Sep 17 00:00:00 2001 From: isaluja Date: Fri, 29 Aug 2014 02:46:20 -0700 Subject: libbt-vendor : Modified hardware config sequence Update uart baud rate to 3M after HCI reset. CSP:832610 Change-Id: I568cd6a1ea2601bcd0ac6cba6bf4208900698f86 Signed-off-by: Malayasen Rout --- src/hardware.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/hardware.c') diff --git a/src/hardware.c b/src/hardware.c index e2eb7d7..ee54c6a 100644 --- a/src/hardware.c +++ b/src/hardware.c @@ -217,7 +217,7 @@ static uint8_t bt_sco_param[SCO_I2SPCM_PARAM_SIZE] = */ static const fw_settlement_entry_t fw_settlement_table[] = { {"BCM43241", 200}, - {"BCM43341", 200}, + {"BCM43341", 100}, {(const char *) NULL, 100} // Giving the generic fw settlement delay setting. }; @@ -734,7 +734,13 @@ void hw_config_cback(void *p_mem) ALOGI("Setting fw settlement delay to %d ", delay); ms_delay(delay); - /* fall through intentionally */ + p_buf->len = HCI_CMD_PREAMBLE_SIZE; + UINT16_TO_STREAM(p, HCI_RESET); + *p = 0; /* parameter length */ + hw_cfg_cb.state = HW_CFG_START; + is_proceeding = bt_vendor_cbacks->xmit_cb(HCI_RESET, p_buf, hw_config_cback); + break; + case HW_CFG_START: if (UART_TARGET_BAUD_RATE > 3000000) { -- cgit v1.2.3