OSDN Git Service

android/hal-health: Add HDP .register_application method
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Mon, 31 Mar 2014 13:13:35 +0000 (16:13 +0300)
committerSzymon Janc <szymon.janc@tieto.com>
Mon, 31 Mar 2014 13:47:54 +0000 (15:47 +0200)
commita7191058a08f7e1d08e8b6757b4ed4c0127a9eb5
tree11376d824c85c26896c13e4cdef8cfb4d7c31d17
parent7a9f2aed122b6139f4ce7191c2a930131c210e4f
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.
android/hal-health.c