From 06cd2ea4b523e3893a33da0fe6e70c1730c9fc15 Mon Sep 17 00:00:00 2001 From: Soumya Managoli Date: Fri, 6 Jul 2018 10:57:52 +0530 Subject: [PATCH] ASoC: msm: qdsp6v2: Update LSM param hdr size q6lsm_pack_params requires param hdr size to be filled and sent as argument. Change is to update size with param_hdr_v3 struct size. Change-Id: Id2380f3ceb887e1fc73b7f5f8e28ac93029082e4 Signed-off-by: Soumya Managoli --- sound/soc/msm/qdsp6v2/q6lsm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/msm/qdsp6v2/q6lsm.c b/sound/soc/msm/qdsp6v2/q6lsm.c index 1161bb31c434..a0fa233bb71e 100644 --- a/sound/soc/msm/qdsp6v2/q6lsm.c +++ b/sound/soc/msm/qdsp6v2/q6lsm.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2017, Linux Foundation. All rights reserved. + * Copyright (c) 2013-2018, Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -741,6 +741,7 @@ void q6lsm_sm_set_param_data(struct lsm_client *client, param_hdr.instance_id = INSTANCE_ID_0; param_hdr.param_id = p_info->param_id; param_hdr.param_size = client->sound_model.size; + *offset = sizeof(struct param_hdr_v3); ret = q6lsm_pack_params((u8 *) client->sound_model.data, ¶m_hdr, NULL, offset, LSM_SESSION_CMD_SET_PARAMS_V2);