From d593e628392fadd54fe78fedc4aa9bb473977769 Mon Sep 17 00:00:00 2001 From: SungJun Park Date: Thu, 10 Jul 2014 19:56:16 -0700 Subject: Bluetooth: Add get baudrate opcode To optimize GKI dynamic memory allocation, it needs to control the memory allocation based on baudrate. So, add opcode to get baudrate from transport layer. CRs-Fixed: 690830 Change-Id: Iea2d1d2751f88e949a95c486a9d7a146a1cdb05e --- libbt-vendor/src/bt_vendor_qcom.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'libbt-vendor/src/bt_vendor_qcom.c') diff --git a/libbt-vendor/src/bt_vendor_qcom.c b/libbt-vendor/src/bt_vendor_qcom.c index f00d09c..2c7a406 100644 --- a/libbt-vendor/src/bt_vendor_qcom.c +++ b/libbt-vendor/src/bt_vendor_qcom.c @@ -877,6 +877,25 @@ static int op(bt_vendor_opcode_t opcode, void *param) #endif } break; + case BT_VND_OP_GET_LINESPEED: + { + retval = -1; + switch(btSocType) + { + case BT_SOC_ROME: + if(!is_soc_initialized()) { + ALOGE("BT_VND_OP_GET_LINESPEED: error" + " - transport driver not initialized!"); + }else { + retval = 3000000; + } + break; + default: + retval = userial_vendor_get_baud(); + break; + } + break; + } } return retval; -- cgit v1.2.3