summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Muir <muirj@google.com>2017-05-10 13:33:04 -0700
committerJohn Muir <muirj@google.com>2017-05-24 14:25:33 -0700
commit536ecca69a75afce1edc3725851850138f3cdb00 (patch)
treed0231bc37cc8c07c65b79d0543685af015b81dc2
parenteda55085f060824124f4370beaecf6cf602eb19f (diff)
downloadbt-536ecca69a75afce1edc3725851850138f3cdb00.tar.gz
BT: Moving chipset version parameters' initialization out of ALOG
This change is for devices based on msm8998 hardware only. This only impacts standalone VR devices based o that are using oc-dev: this commit is already merged in master. Initializing chipset version parameters separately, outside of ALOG. Original author: Manu Viswanadhan <manuv@codeaurora.org> Change-Id: I9beb396cd33593b0c2a90726126606f17a058ced Crs-Fixed: 1107759 Bug: 38055350 Test: Build passes, bluetooth functions.
-rw-r--r--msm8998/libbt-vendor/src/hw_rome.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/msm8998/libbt-vendor/src/hw_rome.c b/msm8998/libbt-vendor/src/hw_rome.c
index 57a41d4..6283161 100644
--- a/msm8998/libbt-vendor/src/hw_rome.c
+++ b/msm8998/libbt-vendor/src/hw_rome.c
@@ -153,30 +153,30 @@ int get_vs_hci_event(unsigned char *rsp)
{
case EDL_PATCH_VER_RES_EVT:
case EDL_APP_VER_RES_EVT:
- ALOGI("\t Current Product ID\t\t: 0x%08x",
- productid = (unsigned int)(rsp[PATCH_PROD_ID_OFFSET +3] << 24 |
- rsp[PATCH_PROD_ID_OFFSET+2] << 16 |
- rsp[PATCH_PROD_ID_OFFSET+1] << 8 |
- rsp[PATCH_PROD_ID_OFFSET] ));
+ productid = (unsigned int)(rsp[PATCH_PROD_ID_OFFSET +3] << 24 |
+ rsp[PATCH_PROD_ID_OFFSET+2] << 16 |
+ rsp[PATCH_PROD_ID_OFFSET+1] << 8 |
+ rsp[PATCH_PROD_ID_OFFSET] );
+ ALOGI("\t Current Product ID\t\t: 0x%08x", productid);
/* Patch Version indicates FW patch version */
- ALOGI("\t Current Patch Version\t\t: 0x%04x",
- (patchversion = (unsigned short)(rsp[PATCH_PATCH_VER_OFFSET + 1] << 8 |
- rsp[PATCH_PATCH_VER_OFFSET] )));
+ patchversion = (unsigned short)(rsp[PATCH_PATCH_VER_OFFSET + 1] << 8 |
+ rsp[PATCH_PATCH_VER_OFFSET] );
+ ALOGI("\t Current Patch Version\t\t: 0x%04x", patchversion);
/* ROM Build Version indicates ROM build version like 1.0/1.1/2.0 */
- ALOGI("\t Current ROM Build Version\t: 0x%04x", buildversion =
- (int)(rsp[PATCH_ROM_BUILD_VER_OFFSET + 1] << 8 |
- rsp[PATCH_ROM_BUILD_VER_OFFSET] ));
+ buildversion = (int)(rsp[PATCH_ROM_BUILD_VER_OFFSET + 1] << 8 |
+ rsp[PATCH_ROM_BUILD_VER_OFFSET] );
+ ALOGI("\t Current ROM Build Version\t: 0x%04x", buildversion);
/* In case rome 1.0/1.1, there is no SOC ID version available */
if (paramlen - 10)
{
- ALOGI("\t Current SOC Version\t\t: 0x%08x", soc_id =
- (unsigned int)(rsp[PATCH_SOC_VER_OFFSET +3] << 24 |
- rsp[PATCH_SOC_VER_OFFSET+2] << 16 |
- rsp[PATCH_SOC_VER_OFFSET+1] << 8 |
- rsp[PATCH_SOC_VER_OFFSET] ));
+ soc_id = (unsigned int)(rsp[PATCH_SOC_VER_OFFSET +3] << 24 |
+ rsp[PATCH_SOC_VER_OFFSET+2] << 16 |
+ rsp[PATCH_SOC_VER_OFFSET+1] << 8 |
+ rsp[PATCH_SOC_VER_OFFSET] );
+ ALOGI("\t Current SOC Version\t\t: 0x%08x", soc_id);
}
/* Rome Chipset Version can be decided by Patch version and SOC version,