summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNagarjuna Kristam <nkristam@nvidia.com>2015-10-07 14:40:34 +0530
committerMichael Bestas <mkbestas@lineageos.org>2019-12-11 19:55:41 +0200
commit27def02df7dfa71fa8ae41e3c644ec9f747da106 (patch)
treeed4cbb15610ffc3c78efe7cd5ae7b3fa6688ff14
parent18b02e75ef60abbbd1b97483d4e9e0363a7f5ed0 (diff)
downloadandroid_hardware_broadcom_libbt-staging/lineage-17.0_merge-android-10.0.0_r9.tar.gz
android_hardware_broadcom_libbt-staging/lineage-17.0_merge-android-10.0.0_r9.tar.bz2
android_hardware_broadcom_libbt-staging/lineage-17.0_merge-android-10.0.0_r9.zip
WBS config VSC requires 3 byte as parameter input, irrespective of whether config is enabled or not. Correct the same when WBS config command is sent to disable it. Change-Id: I9acad7b657c607e4010fda2324863d612f7ddea8
-rw-r--r--src/hardware.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hardware.c b/src/hardware.c
index b5451ba..f8ec118 100644
--- a/src/hardware.c
+++ b/src/hardware.c
@@ -1678,11 +1678,12 @@ static int hw_set_SCO_codec(uint16_t codec)
else
{
/* Disable mSBC */
- *p++ = (SCO_CODEC_PARAM_SIZE - 2); /* set the parameter size */
+ *p++ = (SCO_CODEC_PARAM_SIZE); /* set the parameter size */
UINT8_TO_STREAM(p,0); /* disable */
+ UINT16_TO_STREAM(p,0); /* No need to specify codec info: */
/* set the totall size of this packet */
- p_buf->len = HCI_CMD_PREAMBLE_SIZE + SCO_CODEC_PARAM_SIZE - 2;
+ p_buf->len = HCI_CMD_PREAMBLE_SIZE + SCO_CODEC_PARAM_SIZE;
p_set_SCO_codec_cback = hw_set_CVSD_codec_cback;
if ((codec != SCO_CODEC_CVSD) && (codec != SCO_CODEC_NONE))