Parent: 7a9f2aed122b6139f4ce7191c2a930131c210e4f
Author: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-03-31 16:47:54
Tree: 11376d824c85c26896c13e4cdef8cfb4d7c31d17
android/hal-health: Add HDP .register_application method Implementation of register_application is different compared to other apis. Due to limited IPC_MTU and variable length of fields from 'bthl_reg_param_t *', it is difficult to put them in single command and send though IPC. So we split this command multiple calls. First command will be called with opcode of HAL_OP_HEALTH_REG_APP with 'struct hal_cmd_health_reg_app' data. Later command will be called with opcode of HAL_OP_HEALTH_MDEP with 'struct hal_cmd_health_mdep' data for number_of_mdeps times. App id will be sent in response to HAL_OP_HEALTH_REG_APP command. This avoids increasing value of IPC_MTU and mainly because of optional parameters in 'bthl_reg_param_t'. Incase of unfilled optional parameters, fixed size arrays in hal commands will be empty.
Diffstat
| M | android/hal-health.c | | | 83 | ++++++++++++++++++++++++++++++++++++++++- |
1 files changed, 82 insertions(+), 1 deletions(-)