lsm: miscellaneous fixes for multi-stage adsp VA

Fix compilation warnings from multi-stage VA code changes.
Correct sound model param size value to avoid failure from
second stage sound model registration.

Change-Id: I7f589f0ddece167233b61236b3e5b6585927f62d
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
This commit is contained in:
Dhananjay Kumar
2018-06-28 19:24:46 +05:30
parent 4fae34670a
commit 66ae4136f5
2 changed files with 5 additions and 4 deletions

View File

@@ -741,7 +741,8 @@ static int q6lsm_do_open_v3(struct lsm_client *client)
{
int rc, app_type;
struct lsm_stream_cmd_open_tx_v3 *open_v3;
size_t cmd_size = 0, stage_idx = LSM_STAGE_INDEX_FIRST;
size_t cmd_size = 0;
int stage_idx = LSM_STAGE_INDEX_FIRST;
uint32_t topology_id = 0, *uint32_ptr = NULL;
cmd_size = sizeof(struct lsm_stream_cmd_open_tx_v3);
@@ -866,7 +867,7 @@ void q6lsm_sm_set_param_data(struct lsm_client *client,
param_hdr.module_id = p_info->module_id;
param_hdr.instance_id = p_info->instance_id;
param_hdr.param_id = p_info->param_id;
param_hdr.param_size = sm->size;
param_hdr.param_size = p_info->param_size;
ret = q6lsm_pack_params(sm->data, &param_hdr,
NULL, offset, LSM_SESSION_CMD_SET_PARAMS_V2);